Sophie

Sophie

distrib > Mandriva > current > i586 > media > contrib-release-src > by-pkgid > 0118ce056bc4c826c0fb56aab67b74a5 > files > 2

perl-Test-Corpus-Audio-MPD-1.100.500-1mdv2010.1.src.rpm

%define upstream_name    Test-Corpus-Audio-MPD
%define upstream_version 1.100500

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    %mkrel 1

Summary:    Automate launching of fake mdp for testing purposes
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Test/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(English)
BuildRequires: perl(File::Basename)
BuildRequires: perl(File::Copy)
BuildRequires: perl(File::ShareDir)
BuildRequires: perl(File::Temp)
BuildRequires: perl(Readonly)
BuildRequires: perl(Path::Class)
BuildRequires: perl(Test::More)
BuildRequires: perl(base)

BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}

%description
This module will try to launch a new mpd server for testing purposes. This
mpd server will then be used during the POE::Component::Client::MPD manpage
or the Audio::MPD manpage tests.

In order to achieve this, the module will create a fake _mpd.conf_ file
with the correct pathes (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
%{__rm} -rf %{buildroot}
./Build install destdir=%{buildroot}

%clean
rm -rf %buildroot

%files
%defattr(-,root,root)
%doc Changes LICENSE README
%{_mandir}/man3/*
%perl_vendorlib/*


%changelog
* Wed Feb 24 2010 Jérôme Quelin <jquelin@mandriva.org> 1.100.500-1mdv2010.1
+ Revision: 510524
- update to 1.100500

* Sat Feb 13 2010 Jérôme Quelin <jquelin@mandriva.org> 1.100.430-1mdv2010.1
+ Revision: 505334
- adding missing buildrequires:
- update to 1.100430

* Sat Nov 21 2009 Jérôme Quelin <jquelin@mandriva.org> 1.93.230-1mdv2010.1
+ Revision: 467869
- update to 1.093230

* Fri Nov 06 2009 Jérôme Quelin <jquelin@mandriva.org> 1.92.920-1mdv2010.1
+ Revision: 460707
- import perl-Test-Corpus-Audio-MPD


* Fri Nov 06 2009 cpan2dist 1.092920-1mdv
- initial mdv release, generated with cpan2dist