]> git.pld-linux.org Git - packages/perl-Audio-MPD.git/blob - perl-Audio-MPD.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-Audio-MPD.git] / perl-Audio-MPD.spec
1 %bcond_with     tests   # disable "make test"
2 #
3 %define         pdir    Audio
4 %define         pnam    MPD
5 Summary:        Audio::MPD - a Perl module for developing MPD
6 Summary(pl.UTF-8):      Audio::MPD - moduł Perla do rozwijania aplikacji dla MPD
7 Name:           perl-Audio-MPD
8 Version:        1.111200
9 Release:        1
10 # same as perl
11 License:        GPL v1+ or Artistic
12 Group:          Development/Languages/Perl
13 Source0:        http://search.cpan.org/CPAN/authors/id/J/JQ/JQUELIN/%{pdir}-%{pnam}-%{version}.tar.gz
14 # Source0-md5:  5abd3988173b1f5b925b3e0bb56f6f3c
15 URL:            http://search.cpan.org/dist/Audio-MPD/
16 %{?with_tests:BuildRequires:    perl-Audio-MPD-Common}
17 %{?with_tests:BuildRequires:    perl-Class-Accessor}
18 BuildRequires:  perl-Module-Build >= 1:0.3601
19 %{?with_tests:BuildRequires:    perl-Test-Pod-Coverage}
20 %{?with_tests:BuildRequires:    perl-Test-Pod}
21 BuildRequires:  perl-devel >= 1:5.8.0
22 BuildRequires:  rpm-perlprov >= 4.1-13
23 BuildArch:      noarch
24 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26 %description
27 Audio::MPD is a Perl module for developing MPD (Music Player Daemon)
28 clients and other scripts that control the MPD server.
29
30 %description -l pl.UTF-8
31 Audio::MPD to moduł Perla do rozwijania klientów i innych skryptów
32 sterujących serwerem MPD (Music Player Daemon).
33
34 %prep
35 %setup -q -n %{pdir}-%{pnam}-%{version}
36
37 %build
38 %{__perl} Build.PL \
39         destdir=$RPM_BUILD_ROOT \
40         installdirs=vendor
41
42 ./Build
43
44 %{?with_tests:./Build test}
45
46 %install
47 rm -rf $RPM_BUILD_ROOT
48
49 ./Build install
50
51 %clean
52 rm -rf $RPM_BUILD_ROOT
53
54 %files
55 %defattr(644,root,root,755)
56 %doc Changes README
57 %attr(755,root,root) %{_bindir}/*
58 %{perl_vendorlib}/Audio/MPD.pm
59 %{perl_vendorlib}/Audio/MPD/*
60 %{_mandir}/man1/*
61 %{_mandir}/man3/*
This page took 0.129222 seconds and 4 git commands to generate.