]> git.pld-linux.org Git - packages/perl-rpm-build-perl.git/blobdiff - perl-rpm-build-perl.spec
- rebuild with perl 5.30.0
[packages/perl-rpm-build-perl.git] / perl-rpm-build-perl.spec
index 919173c6f732b0b0357591cdd782cba5d8c241a1..afbbbe41afe0c31d7fc0ddf6e92eeb4d6a8380cb 100644 (file)
@@ -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*
This page took 0.084467 seconds and 4 git commands to generate.