]>
Commit | Line | Data |
---|---|---|
e62f7651 JB |
1 | # TODO: fix strange modules install dir? |
2 | # | |
3 | # Conditional build: | |
4 | %bcond_with tests # do perform "make test" (some tests fail, probably specific env. is expected) | |
5 | # | |
e62f7651 JB |
6 | Summary: Device::Cdio - Perl bindings for CD input and control library (libcdio) |
7 | Summary(pl.UTF-8): Device::Cdio - wiązania Perla do biblioteki wejścia i sterowania CD (libcdio) | |
8 | Name: perl-Device-Cdio | |
082006af | 9 | Version: 2.0.0 |
d69f0990 | 10 | Release: 5 |
e62f7651 JB |
11 | License: GPL v3+ |
12 | Group: Development/Languages/Perl | |
082006af JR |
13 | Source0: http://search.cpan.org/CPAN/authors/id/R/RO/ROCKY/Device-Cdio-v%{version}.tar.gz |
14 | # Source0-md5: 9f421fbd736a7099eb0525cd64c8b6e4 | |
e62f7651 | 15 | URL: http://search.cpan.org/dist/Device-Cdio/ |
54df41c7 | 16 | BuildRequires: libcdio-devel >= 2.0.0 |
e62f7651 JB |
17 | BuildRequires: perl-ExtUtils-CBuilder >= 0.28 |
18 | BuildRequires: perl-ExtUtils-PkgConfig >= 1.03 | |
19 | BuildRequires: perl-Module-Build >= 0.38 | |
20 | %if %{with tests} | |
21 | BuildRequires: perl-Test-Pod >= 1.14 | |
22 | BuildRequires: perl-Test-Pod-Coverage >= 1.08 | |
23 | %endif | |
24 | BuildRequires: perl-devel >= 1:5.8.0 | |
25 | BuildRequires: rpm-perlprov >= 4.1-13 | |
0bb2a463 | 26 | BuildRequires: swig-perl |
082006af | 27 | Requires: libcdio >= 2.0.0 |
e62f7651 JB |
28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
29 | ||
30 | %description | |
31 | Device::Cdio contains Perl bindings for CD input and control library | |
32 | (libcdio). | |
33 | ||
34 | %description -l pl.UTF-8 | |
35 | Device::Cdio zawiera wiązania Perla do biblioteki wejścia i sterowania | |
36 | CD (libcdio). | |
37 | ||
38 | %prep | |
39 | %setup -q -n Device-Cdio-v%{version} | |
0bb2a463 JB |
40 | |
41 | # force swig rebuild | |
42 | %{__rm} *_wrap.c | |
e62f7651 JB |
43 | |
44 | %build | |
45 | %{__perl} Build.PL \ | |
46 | installdirs=vendor \ | |
47 | destdir=$RPM_BUILD_ROOT \ | |
48 | config='optimize=%{rpmcflags}' | |
49 | ./Build | |
50 | ||
51 | %{?with_tests:./Build test} | |
52 | ||
53 | %install | |
54 | rm -rf $RPM_BUILD_ROOT | |
55 | ||
56 | ./Build install | |
57 | ||
58 | %clean | |
59 | rm -rf $RPM_BUILD_ROOT | |
60 | ||
61 | %files | |
62 | %defattr(644,root,root,755) | |
63 | %doc ChangeLog Changes README.md THANKS | |
64 | %{perl_vendorarch}/Device/Cdio.pm | |
65 | %{perl_vendorarch}/Device/Cdio | |
66 | %{perl_vendorarch}/perlcdio.pm | |
67 | %attr(755,root,root) %{perl_vendorarch}/perlcdio.so | |
68 | %{perl_vendorarch}/perliso9660.pm | |
69 | %attr(755,root,root) %{perl_vendorarch}/perliso9660.so | |
70 | %{perl_vendorarch}/perlmmc.pm | |
71 | %attr(755,root,root) %{perl_vendorarch}/perlmmc.so | |
72 | %{_mandir}/man3/Device::Cdio*.3pm* | |
73 | %{_mandir}/man3/perlcdio.3pm* | |
74 | %{_mandir}/man3/perliso9660.3pm* | |
75 | %{_mandir}/man3/perlmmc.3pm* |