3 %bcond_without autodeps # don't BR packages needed only for resolving deps
4 %bcond_without tests # do not perform "make test"
6 %include /usr/lib/rpm/macros.perl
8 %define pnam MPD-Common
9 Summary: Audio::MPD::Common - a bunch of common helper classes for mpd
10 Summary(pl.UTF-8): Audio::MPD::Common - zwstaw wspólnych klas pomocniczych dla mpd
11 Name: perl-Audio-MPD-Common
15 License: GPL v1+ or Artistic
16 Group: Development/Languages/Perl
17 Source0: http://www.cpan.org/modules/by-module/Audio/%{pdir}-%{pnam}-%{version}.tar.gz
18 # Source0-md5: 30d319cb5acb5c3e066ccd63c3465549
19 URL: http://search.cpan.org/dist/Audio-MPD-Common/
20 BuildRequires: perl-devel >= 1:5.8.0
21 BuildRequires: rpm-perlprov >= 4.1-13
22 %if %{with autodeps} || %{with tests}
23 BuildRequires: perl-Class-Accessor
24 BuildRequires: perl-Readonly
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 Depending on whether you're using a POE-aware environment or not,
31 people wanting to tinker with mpd (Music Player Daemon) will use
32 either POE::Component::Client::MPD or Audio::MPD.
34 But even if the run-cores of those two modules differ completely, they
35 are using the exact same common classes to represent the various mpd
36 states and information. Therefore, those common classes have been
37 outsourced to Audio::MPD::Common.
39 %description -l pl.UTF-8
40 W zależności od korzystania ze środowiska POE osoby chcące manipulować
41 przy demonie mpd (Music Player Daemon) używają
42 POE::Component::Client::MPD lub Audio::MPD.
44 Ale nawet jeśli oba te moduły różnią się całkowicie sposobem
45 działania, używają dokładnie tych samych wspólnych klas
46 reprezentujących różne stany i informacje o mpd. W związku z tym
47 wspólne klasy zostały wydzielone do pakietu Audio::MPD::Common.
50 %setup -q -n %{pdir}-%{pnam}-%{version}
54 destdir=$RPM_BUILD_ROOT \
58 %{?with_tests:./Build test}
61 rm -rf $RPM_BUILD_ROOT
66 rm -rf $RPM_BUILD_ROOT
69 %defattr(644,root,root,755)
71 %dir %{perl_vendorlib}/Audio/MPD
72 %{perl_vendorlib}/Audio/MPD/*.pm
73 %{perl_vendorlib}/Audio/MPD/Common