%define upstream_name Test-Corpus-Audio-MPD %define upstream_version 1.120990 Name: perl-%{upstream_name} Version: %perl_convert_version %{upstream_version} Release: %mkrel 11 Summary: Automate launching of fake mdp for testing purposes License: GPL+ or Artistic Group: Development/Perl Url: https://metacpan.org/release/%{upstream_name} Source0: https://cpan.metacpan.org/modules/by-module/Test/%{upstream_name}-%{upstream_version}.tar.gz BuildRequires: perl(Exporter) BuildRequires: perl(File::Copy) BuildRequires: perl(File::ShareDir) >= 1.0.0 BuildRequires: perl(File::ShareDir::PathClass) BuildRequires: perl(File::Temp) BuildRequires: perl(Module::Build) >= 0.360.100 BuildRequires: perl(Path::Class) BuildRequires: perl(Readonly) BuildRequires: perl(Test::More) >= 0.880.0 BuildRequires: perl(base) BuildRequires: perl(strict) BuildRequires: perl(warnings) BuildArch: noarch %description This module will try to launch a new mpd server for testing purposes. This mpd server will then be used during POE::Component::Client::MPD or Audio::MPD tests. In order to achieve this, the module will create a fake _mpd.conf_ file with the correct paths (ie, where you untarred the module tarball). It will then check if some mpd server is already running, and stop it if the 'MPD_TEST_OVERRIDE' environment variable is true (die otherwise). Last it will run the test mpd with its newly created configuration file. Everything described above is done automatically when the module is 'use'-d. %prep %setup -q -n %{upstream_name}-%{upstream_version} %build %{__perl} Build.PL installdirs=vendor ./Build %check ./Build test %install ./Build install destdir=%{buildroot} %files %doc Changes LICENSE META.json META.yml MYMETA.yml README %{_mandir}/man3/* %perl_vendorlib/* %changelog * Tue Mar 22 2022 umeabot <umeabot> 1.120.990-11.mga9 + Revision: 1817363 - Mageia 9 Mass Rebuild * Wed Feb 12 2020 umeabot <umeabot> 1.120.990-10.mga8 + Revision: 1497335 - Mageia 8 Mass Rebuild * Wed Sep 19 2018 umeabot <umeabot> 1.120.990-9.mga7 + Revision: 1271700 - Mageia 7 Mass Rebuild * Sun Jun 19 2016 pterjan <pterjan> 1.120.990-8.mga6 + Revision: 1034216 - Rebuild for perl 5.22.2 * Mon Feb 08 2016 umeabot <umeabot> 1.120.990-7.mga6 + Revision: 948845 - Mageia 6 Mass Rebuild * Sun Oct 19 2014 umeabot <umeabot> 1.120.990-6.mga5 + Revision: 788485 - Rebuild to potentially add missing dependencies * Wed Oct 15 2014 umeabot <umeabot> 1.120.990-5.mga5 + Revision: 739728 - Second Mageia 5 Mass Rebuild * Tue Sep 16 2014 umeabot <umeabot> 1.120.990-4.mga5 + Revision: 686419 - Mageia 5 Mass Rebuild * Fri Oct 18 2013 umeabot <umeabot> 1.120.990-3.mga4 + Revision: 515102 - Mageia 4 Mass Rebuild * Sun Jan 13 2013 umeabot <umeabot> 1.120.990-2.mga3 + Revision: 373448 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Tue Jun 05 2012 jquelin <jquelin> 1.120.990-1.mga3 + Revision: 255508 - update to 1.120990 * Thu Nov 24 2011 jquelin <jquelin> 1.113.282-1.mga2 + Revision: 171647 - update to 1.113282 * Wed Jun 15 2011 jquelin <jquelin> 1.111.260-1.mga2 + Revision: 107459 - update to 1.111260 * Sun Mar 13 2011 jquelin <jquelin> 1.110.710-1.mga1 + Revision: 70494 - update to 1.110710 * Wed Mar 02 2011 jquelin <jquelin> 1.110.600-1.mga1 + Revision: 62558 - update to 1.110600 * Sat Jan 22 2011 jquelin <jquelin> 1.100.500-1.mga1 + Revision: 32426 - mageia rebuild - imported package perl-Test-Corpus-Audio-MPD