3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
7 %define pnam Component-CD-Detect
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 BuildRequires: perl-devel >= 1:5.8.0
18 BuildRequires: rpm-perlprov >= 4.1-13
20 BuildRequires: perl-POE >= 0.22
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 This POE component detects the insertion of a CD into a given drive and
27 issues a callback to the caller with the disc's table of contents.
29 %description -l pl.UTF-8
30 Ten komponent POE wykrywa fakt włożenia płyty CD do danego napędu i
31 wywołuje funkcję callback podaną przy wywołaniu przekazując spis
32 zawartości płyty (TOC).
35 %setup -q -n %{pdir}-%{pnam}-%{version}
38 %{__perl} Makefile.PL \
42 %{?with_tests:%{__make} test}
45 rm -rf $RPM_BUILD_ROOT
48 DESTDIR=$RPM_BUILD_ROOT
51 rm -rf $RPM_BUILD_ROOT
54 %defattr(644,root,root,755)
55 %doc Changes LICENSE README
56 %{perl_vendorlib}/%{pdir}/Component/CD/*.pm