58538c
# Run optional test
58538c
%if ! (0%{?rhel})
58538c
%bcond_without perl_Filter_enables_optional_test
58538c
%else
58538c
%bcond_with perl_Filter_enables_optional_test
58538c
%endif
58538c
58538c
Name:           perl-Filter
58538c
Epoch:          2
58538c
Version:        1.59
58538c
Release:        440%{?dist}
58538c
Summary:        Perl source filters
58538c
License:        GPL+ or Artistic
58538c
URL:            https://metacpan.org/release/Filter
58538c
Source0:        https://cpan.metacpan.org/authors/id/R/RU/RURBAN/Filter-%{version}.tar.gz
58538c
BuildRequires:  coreutils
58538c
BuildRequires:  findutils
58538c
BuildRequires:  gcc
58538c
BuildRequires:  make
58538c
BuildRequires:  perl-devel
58538c
BuildRequires:  perl-generators
58538c
BuildRequires:  perl-interpreter
58538c
BuildRequires:  perl(Config)
58538c
BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
58538c
BuildRequires:  perl(Getopt::Long)
58538c
BuildRequires:  perl(strict)
58538c
BuildRequires:  sed
58538c
# Run-time
58538c
BuildRequires:  perl(:VERSION) >= 5.6
58538c
BuildRequires:  perl(Carp)
58538c
BuildRequires:  perl(Exporter)
58538c
BuildRequires:  perl(warnings)
58538c
BuildRequires:  perl(XSLoader)
58538c
# Tests
58538c
BuildRequires:  perl(Cwd)
58538c
BuildRequires:  perl(FindBin)
58538c
BuildRequires:  perl(lib)
58538c
BuildRequires:  perl(Test::More) >= 0.88
58538c
%if %{with perl_Filter_enables_optional_test}
58538c
# Optional tests
58538c
BuildRequires:  m4
58538c
BuildRequires:  perl(POSIX)
58538c
%if !%{defined perl_bootstrap}
58538c
# Class::XSAccessor not used
58538c
# List::MoreUtils not used
58538c
# Perl::MinimumVersion 1.20 not used
58538c
# Test::CPAN::Meta 0.12 not used
58538c
# Test::Kwalitee not used
58538c
# Test::MinimumVersion 0.008 not used
58538c
BuildRequires:  perl(Test::Pod) >= 1.00
58538c
# Test::Pod::Coverage 1.04 not used
58538c
# Text::CSV_XS not used
58538c
%endif
58538c
BuildRequires:  perl(vars)
58538c
%endif
58538c
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
58538c
Requires:       perl(Carp)
58538c
# For Filer::sh
58538c
Suggests:       bash
58538c
# For Filter::cpp
58538c
Suggests:       gcc
58538c
# For Filter::m4
58538c
Suggests:       m4
58538c
58538c
%{?perl_default_filter}
58538c
58538c
%description
58538c
Source filters alter the program text of a module before Perl sees it, much as
58538c
a C preprocessor alters the source text of a C program before the compiler
58538c
sees it.
58538c
58538c
%prep
58538c
%setup -q -n Filter-%{version}
58538c
# Clean examples
58538c
find examples -type f -exec chmod -x -- {} +
58538c
sed -i -e '1 s|.*|%(perl -MConfig -e 'print $Config{startperl}')|' \
58538c
    examples/filtdef
58538c
58538c
%build
58538c
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 OPTIMIZE="$RPM_OPT_FLAGS"
58538c
make %{?_smp_mflags}
58538c
58538c
%install
58538c
make pure_install DESTDIR=$RPM_BUILD_ROOT
58538c
find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -delete
58538c
%{_fixperms} $RPM_BUILD_ROOT/*
58538c
58538c
%check
58538c
make test
58538c
58538c
%files
58538c
%doc examples Changes README
58538c
%{perl_vendorarch}/auto/*
58538c
%{perl_vendorarch}/Filter*
58538c
%{_mandir}/man3/*
58538c
58538c
%changelog
58538c
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2:1.59-440
58538c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
58538c
58538c
* Sun Jun 02 2019 Jitka Plesnikova <jplesnik@redhat.com> - 2:1.59-439
58538c
- Perl 5.30 re-rebuild of bootstrapped packages
58538c
58538c
* Thu May 30 2019 Jitka Plesnikova <jplesnik@redhat.com> - 2:1.59-438
58538c
- Increase release to favour standalone package
58538c
58538c
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2:1.59-2
58538c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
58538c
58538c
* Mon Aug 06 2018 Petr Pisar <ppisar@redhat.com> - 2:1.59-1
58538c
- 1.59 bump
58538c
58538c
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2:1.58-418
58538c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
58538c
58538c
* Sat Jun 30 2018 Jitka Plesnikova <jplesnik@redhat.com> - 2:1.58-417
58538c
- Perl 5.28 re-rebuild of bootstrapped packages
58538c
58538c
* Wed Jun 27 2018 Jitka Plesnikova <jplesnik@redhat.com> - 2:1.58-416
58538c
- Increase release to favour standalone package
58538c
58538c
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2:1.58-2
58538c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
58538c
58538c
* Thu Nov 16 2017 Petr Pisar <ppisar@redhat.com> - 2:1.58-1
58538c
- 1.58 bump
58538c
58538c
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2:1.57-6
58538c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
58538c
58538c
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2:1.57-5
58538c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
58538c
58538c
* Wed Jun 07 2017 Jitka Plesnikova <jplesnik@redhat.com> - 2:1.57-4
58538c
- Perl 5.26 re-rebuild of bootstrapped packages
58538c
58538c
* Sat Jun 03 2017 Jitka Plesnikova <jplesnik@redhat.com> - 2:1.57-3
58538c
- Perl 5.26 rebuild
58538c
58538c
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2:1.57-2
58538c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
58538c
58538c
* Mon Jan 23 2017 Petr Pisar <ppisar@redhat.com> - 2:1.57-1
58538c
- 1.57 bump
58538c
58538c
* Wed May 18 2016 Jitka Plesnikova <jplesnik@redhat.com> - 2:1.55-366
58538c
- Perl 5.24 re-rebuild of bootstrapped packages
58538c
58538c
* Sat May 14 2016 Jitka Plesnikova <jplesnik@redhat.com> - 2:1.55-365
58538c
- Increase release to favour standalone package
58538c
58538c
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2:1.55-2
58538c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
58538c
58538c
* Mon Jul 27 2015 Petr Pisar <ppisar@redhat.com> - 2:1.55-1
58538c
- 1.55 bump
58538c
58538c
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2:1.54-347
58538c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
58538c
58538c
* Wed Jun 10 2015 Jitka Plesnikova <jplesnik@redhat.com> - 2:1.54-346
58538c
- Perl 5.22 re-rebuild of bootstrapped packages
58538c
58538c
* Thu Jun 04 2015 Jitka Plesnikova <jplesnik@redhat.com> - 2:1.54-345
58538c
- Increase release to favour standalone package
58538c
58538c
* Wed Jun 03 2015 Jitka Plesnikova <jplesnik@redhat.com> - 2:1.54-2
58538c
- Perl 5.22 rebuild
58538c
58538c
* Fri Jan 23 2015 Petr Pisar <ppisar@redhat.com> - 2:1.54-1
58538c
- 1.54 bump
58538c
58538c
* Fri Jan 02 2015 Petr Pisar <ppisar@redhat.com> - 2:1.53-1
58538c
- 1.53 bump
58538c
58538c
* Thu Dec 11 2014 Petr Pisar <ppisar@redhat.com> - 2:1.51-1
58538c
- 1.51 bump
58538c
58538c
* Sun Sep 07 2014 Jitka Plesnikova <jplesnik@redhat.com> - 2:1.50-6
58538c
- Perl 5.20 re-rebuild of bootstrapped packages
58538c
58538c
* Wed Sep 03 2014 Jitka Plesnikova <jplesnik@redhat.com> - 2:1.50-5
58538c
- Increase Epoch to favour standalone package
58538c
58538c
* Tue Aug 26 2014 Jitka Plesnikova <jplesnik@redhat.com> - 1:1.50-4
58538c
- Perl 5.20 rebuild
58538c
58538c
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.50-3
58538c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
58538c
58538c
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.50-2
58538c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
58538c
58538c
* Thu Jun 05 2014 Petr Pisar <ppisar@redhat.com> - 1:1.50-1
58538c
- 1.50 bump
58538c
58538c
* Wed Aug 14 2013 Jitka Plesnikova <jplesnik@redhat.com> - 1:1.49-5
58538c
- Perl 5.18 re-rebuild of bootstrapped packages
58538c
58538c
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.49-4
58538c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
58538c
58538c
* Fri Jul 12 2013 Petr Pisar <ppisar@redhat.com> - 1:1.49-3
58538c
- Link minimal build-root packages against libperl.so explicitly
58538c
58538c
* Fri Jul 12 2013 Petr Pisar <ppisar@redhat.com> - 1:1.49-2
58538c
- Perl 5.18 rebuild
58538c
58538c
* Fri Jul 12 2013 Petr Pisar <ppisar@redhat.com> - 1:1.49-1
58538c
- Increase epoch to compete with perl.spec
58538c
58538c
* Thu Apr 04 2013 Petr Pisar <ppisar@redhat.com> - 1.49-1
58538c
- 1.49 bump
58538c
58538c
* Wed Apr 03 2013 Petr Pisar <ppisar@redhat.com> - 1.48-1
58538c
- 1.48 bump
58538c
58538c
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.45-5
58538c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
58538c
58538c
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.45-4
58538c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
58538c
58538c
* Tue Jul 10 2012 Petr Pisar <ppisar@redhat.com> - 1.45-3
58538c
- Perl 5.16 re-rebuild of bootstrapped packages
58538c
58538c
* Wed Jun 27 2012 Petr Pisar <ppisar@redhat.com> - 1.45-2
58538c
- Perl 5.16 rebuild
58538c
58538c
* Tue Jun 19 2012 Petr Pisar <ppisar@redhat.com> - 1.45-1
58538c
- 1.45 bump
58538c
58538c
* Wed Jun 06 2012 Petr Pisar <ppisar@redhat.com> - 1.43-3
58538c
- Perl 5.16 rebuild
58538c
58538c
* Thu May 31 2012 Petr Pisar <ppisar@redhat.com> - 1.43-2
58538c
- Skip optional Test::Pod on bootstraping perl
58538c
58538c
* Mon Feb 27 2012 Petr Pisar <ppisar@redhat.com> - 1.43-1
58538c
- 1.43 bump
58538c
58538c
* Tue Feb 14 2012 Petr Pisar <ppisar@redhat.com> 1.39-1
58538c
- Specfile autogenerated by cpanspec 1.78.