3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
7 %define pnam build-perl
8 Summary: Calculate dependencies for Perl sources
9 Summary(pl.UTF-8): Znajdowanie zależności dla źródeł perlowych
10 Name: perl-rpm-build-perl
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-authors/id/A/AT/ATOURBIN/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: 1cfb4f6a0842d04ef39fd945abacce91
17 # https://rt.cpan.org/Ticket/Attachment/1513584/807128/rpm-build-perl-0.82-Adjust-to-perl-5.22.patch
18 Patch0: %{name}-perl5.22.patch
19 # https://rt.cpan.org/Ticket/Attachment/1213691/640915/0001-Fix-non-deterministic-failures-on-newer-perls.patch
20 Patch1: %{name}-non-deterministic-failures.patch
21 URL: http://search.cpan.org/dist/rpm-build-perl/
22 BuildRequires: perl-devel >= 1:5.8.0
23 BuildRequires: rpm-perlprov >= 4.1-13
25 BuildRequires: perl-Encode
26 BuildRequires: perl-Test-Simple
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 Calculate dependencies for Perl sources.
33 %description -l pl.UTF-8
34 Moduł ten znajduje zależności dla źródeł perlowych.
37 %setup -q -n %{pdir}-%{pnam}-%{version}
42 %{__perl} Makefile.PL \
46 OPTIMIZE="%{rpmcflags}"
48 %{?with_tests:%{__make} test}
51 rm -rf $RPM_BUILD_ROOT
53 %{__make} pure_install \
54 DESTDIR=$RPM_BUILD_ROOT
57 rm -rf $RPM_BUILD_ROOT
60 %defattr(644,root,root,755)
62 %attr(755,root,root) %{_bindir}/perl.clean
63 %attr(755,root,root) %{_bindir}/perl.prov
64 %attr(755,root,root) %{_bindir}/perl.prov.files
65 %attr(755,root,root) %{_bindir}/perl.req
66 %attr(755,root,root) %{_bindir}/perl.req.files
67 %{perl_vendorarch}/B/Clobbers.pm
68 %{perl_vendorarch}/B/ConstOptree.pm
69 %{perl_vendorarch}/B/PerlReq.pm
70 %{perl_vendorarch}/B/Walker.pm
71 %dir %{perl_vendorarch}/PerlReq
72 %{perl_vendorarch}/PerlReq/Utils.pm
73 %{perl_vendorarch}/fake.pm
74 %dir %{perl_vendorarch}/auto/B
75 %dir %{perl_vendorarch}/auto/B/ConstOptree
76 %attr(755,root,root) %{perl_vendorarch}/auto/B/ConstOptree/ConstOptree.so
77 %{_mandir}/man1/perl.prov.1p*
78 %{_mandir}/man1/perl.req.1p*
79 %{_mandir}/man3/B::Clobbers.3pm*
80 %{_mandir}/man3/B::ConstOptree.3pm*
81 %{_mandir}/man3/B::PerlReq.3pm*
82 %{_mandir}/man3/B::Walker.3pm*
83 %{_mandir}/man3/PerlReq::Utils.3pm*