From 815fdadd015aab7cb8c1ad20f70e86b18ab0a400 Mon Sep 17 00:00:00 2001 From: Jitka Plesnikova <jples...@redhat.com> Date: Mon, 19 Oct 2015 14:35:33 +0200 Subject: Filter requirements from file Perlito/Python/Prelude.pm
--- perl-v6.spec | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/perl-v6.spec b/perl-v6.spec index 5499dee..e7b3590 100644 --- a/perl-v6.spec +++ b/perl-v6.spec @@ -3,18 +3,26 @@ Name: perl-v6 Version: 0.045 -Release: 10%{?dist} +Release: 11%{?dist} Summary: Perl 6 implementation License: GPL+ or Artistic Group: Development/Libraries URL: http://search.cpan.org/dist/v6/ Source0: http://www.cpan.org/authors/id/F/FG/FGLOCK/v6-%{version}.tar.gz BuildArch: noarch +BuildRequires: coreutils +BuildRequires: findutils +BuildRequires: make +BuildRequires: perl BuildRequires: perl(ExtUtils::MakeMaker) # Run-time BuildRequires: perl(Encode) BuildRequires: perl(Filter::Util::Call) +BuildRequires: perl(overload) BuildRequires: perl(Scalar::Util) +BuildRequires: perl(strict) +BuildRequires: perl(utf8) +BuildRequires: perl(warnings) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) # Do not export private modules @@ -93,6 +101,12 @@ Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $versi %global __requires_exclude %__requires_exclude|^perl\\(Perlito::Python::Emitter\\) %global __requires_exclude %__requires_exclude|^perl\\(Perlito::Ruby::Emitter\\) +# Do not generate requires from Perlito/Python/Prelude.pm, because it +# contains "use v6" and generators process it as Perl version 6.0 instead +# of Perl module +%global __requires_exclude_from %{?__requires_exclude_from:__requires_exclude_from|}^$ +%global __requires_exclude_from %__requires_exclude_from|^%{perl_vendorlib}/Perlito/Python/Prelude.pm + %description The v6 module is a front-end to the "Perlito" compiler. @@ -106,9 +120,8 @@ find -type f -exec chmod -x {} + make %{?_smp_mflags} %install -make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT +make pure_install DESTDIR=$RPM_BUILD_ROOT find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; -find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; %{_fixperms} $RPM_BUILD_ROOT/* %check @@ -121,6 +134,9 @@ make test %{_mandir}/man3/* %changelog +* Fri Oct 16 2015 Jitka Plesnikova <jples...@redhat.com> - 0.045-11 +- Filter requirements from file Perlito/Python/Prelude.pm + * Thu Jun 18 2015 Fedora Release Engineering <rel-...@lists.fedoraproject.org> - 0.045-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild -- cgit v0.11.2 http://pkgs.fedoraproject.org/cgit/perl-v6.git/commit/?h=master&id=815fdadd015aab7cb8c1ad20f70e86b18ab0a400 -- Fedora Extras Perl SIG http://www.fedoraproject.org/wiki/Extras/SIGs/Perl perl-devel mailing list perl-devel@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/perl-devel