X-Git-Url: https://git.pld-linux.org/?a=blobdiff_plain;f=perl-rpm-build-perl.spec;h=afbbbe41afe0c31d7fc0ddf6e92eeb4d6a8380cb;hb=1d0ddf801385a6ebad9f57e3fa6be3ed7961ef12;hp=919173c6f732b0b0357591cdd782cba5d8c241a1;hpb=4410668d212d62e55a60c4d0430ab6d2a67fec56;p=packages%2Fperl-rpm-build-perl.git diff --git a/perl-rpm-build-perl.spec b/perl-rpm-build-perl.spec index 919173c..afbbbe4 100644 --- a/perl-rpm-build-perl.spec +++ b/perl-rpm-build-perl.spec @@ -6,18 +6,26 @@ %define pdir rpm %define pnam build-perl Summary: Calculate dependencies for Perl sources -Summary(pl.UTF-8): Znajdź zależności dla dla źródeł perlowych +Summary(pl.UTF-8): Znajdowanie zależności dla źródeł perlowych Name: perl-rpm-build-perl -Version: 0.80 -Release: 1 -License: Artistic/GPL +Version: 0.82 +Release: 7 +License: GPL v2+ Group: Development/Languages/Perl -Source0: http://search.cpan.org/CPAN/authors/id/A/AT/ATOURBIN/%{pdir}-%{pnam}-%{version}.tar.gz -# Source0-md5: 0ce2716ea447362fa2879684b5daafe7 +Source0: http://www.cpan.org/modules/by-authors/id/A/AT/ATOURBIN/%{pdir}-%{pnam}-%{version}.tar.gz +# Source0-md5: 1cfb4f6a0842d04ef39fd945abacce91 +# https://rt.cpan.org/Ticket/Attachment/1513584/807128/rpm-build-perl-0.82-Adjust-to-perl-5.22.patch +Patch0: %{name}-perl5.22.patch +# https://rt.cpan.org/Ticket/Attachment/1213691/640915/0001-Fix-non-deterministic-failures-on-newer-perls.patch +Patch1: %{name}-non-deterministic-failures.patch +Patch2: rpm-build-perl-0.82-Port-to-OpSIBLING-like-macros-required-since-Perl-5..patch URL: http://search.cpan.org/dist/rpm-build-perl/ BuildRequires: perl-devel >= 1:5.8.0 BuildRequires: rpm-perlprov >= 4.1-13 -BuildArch: noarch +%if %{with tests} +BuildRequires: perl-Encode +BuildRequires: perl-Test-Simple +%endif BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description @@ -28,11 +36,16 @@ Moduł ten znajduje zależności dla źródeł perlowych. %prep %setup -q -n %{pdir}-%{pnam}-%{version} +%patch0 -p1 +%patch1 -p1 +%patch2 -p1 %build %{__perl} Makefile.PL \ INSTALLDIRS=vendor -%{__make} +%{__make} \ + CC="%{__cc}" \ + OPTIMIZE="%{rpmcflags}" %{?with_tests:%{__make} test} @@ -48,10 +61,25 @@ rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc Changes README -%attr(755,root,root) %{_bindir}/perl.* -%dir %{perl_vendorlib}/B -%{perl_vendorlib}/B/*.pm -%dir %{perl_vendorlib}/PerlReq -%{perl_vendorlib}/PerlReq/*.pm -%{perl_vendorlib}/*.pm -%{_mandir}/man?/* +%attr(755,root,root) %{_bindir}/perl.clean +%attr(755,root,root) %{_bindir}/perl.prov +%attr(755,root,root) %{_bindir}/perl.prov.files +%attr(755,root,root) %{_bindir}/perl.req +%attr(755,root,root) %{_bindir}/perl.req.files +%{perl_vendorarch}/B/Clobbers.pm +%{perl_vendorarch}/B/ConstOptree.pm +%{perl_vendorarch}/B/PerlReq.pm +%{perl_vendorarch}/B/Walker.pm +%dir %{perl_vendorarch}/PerlReq +%{perl_vendorarch}/PerlReq/Utils.pm +%{perl_vendorarch}/fake.pm +%dir %{perl_vendorarch}/auto/B +%dir %{perl_vendorarch}/auto/B/ConstOptree +%attr(755,root,root) %{perl_vendorarch}/auto/B/ConstOptree/ConstOptree.so +%{_mandir}/man1/perl.prov.1p* +%{_mandir}/man1/perl.req.1p* +%{_mandir}/man3/B::Clobbers.3pm* +%{_mandir}/man3/B::ConstOptree.3pm* +%{_mandir}/man3/B::PerlReq.3pm* +%{_mandir}/man3/B::Walker.3pm* +%{_mandir}/man3/PerlReq::Utils.3pm*