3 %bcond_without tests # do not perform "make test"
6 %define pnam Component-CD-Detect
7 %include /usr/lib/rpm/macros.perl
8 Summary: POE::Component::CD::Detect - detects CD insertions and provides TOC
9 Summary(pl.UTF-8): POE::Component::CD::Detect - wykrywanie włożenia CD i odczytanie TOC
10 Name: perl-POE-Component-CD-Detect
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: 92b8377a52c3a67e9084c51ba9c2cdf2
17 URL: http://search.cpan.org/dist/POE-Component-CD-Detect/
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRequires: perl-POE >= 0.22
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 This POE component detects the insertion of a CD into a given drive
28 and issues a callback to the caller with the disc's table of contents.
30 %description -l pl.UTF-8
31 Ten komponent POE wykrywa fakt włożenia płyty CD do danego napędu i
32 wywołuje funkcję callback podaną przy wywołaniu przekazując spis
33 zawartości płyty (TOC).
36 %setup -q -n %{pdir}-%{pnam}-%{version}
39 %{__perl} Makefile.PL \
43 %{?with_tests:%{__make} test}
46 rm -rf $RPM_BUILD_ROOT
49 DESTDIR=$RPM_BUILD_ROOT
52 rm -rf $RPM_BUILD_ROOT
55 %defattr(644,root,root,755)
56 %doc Changes LICENSE README
57 %{perl_vendorlib}/%{pdir}/Component/CD/*.pm