You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
380 lines
13 KiB
380 lines
13 KiB
3 months ago
|
# Run optional test
|
||
|
%if ! (0%{?rhel})
|
||
|
%bcond_without perl_Filter_enables_optional_test
|
||
|
%else
|
||
|
%bcond_with perl_Filter_enables_optional_test
|
||
|
%endif
|
||
|
|
||
|
Name: perl-Filter
|
||
|
Epoch: 2
|
||
|
Version: 1.64
|
||
|
Release: 511%{?dist}
|
||
|
Summary: Perl source filters
|
||
|
License: GPL-1.0-or-later OR Artistic-1.0-Perl
|
||
|
URL: https://metacpan.org/release/Filter
|
||
|
Source0: https://cpan.metacpan.org/authors/id/R/RU/RURBAN/Filter-%{version}.tar.gz
|
||
|
BuildRequires: coreutils
|
||
|
BuildRequires: findutils
|
||
|
BuildRequires: gcc
|
||
|
BuildRequires: make
|
||
|
BuildRequires: perl-devel
|
||
|
BuildRequires: perl-generators
|
||
|
BuildRequires: perl-interpreter
|
||
|
BuildRequires: perl(Config)
|
||
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
|
||
|
BuildRequires: perl(Getopt::Long)
|
||
|
BuildRequires: perl(strict)
|
||
|
# Run-time
|
||
|
BuildRequires: perl(:VERSION) >= 5.6
|
||
|
BuildRequires: perl(Carp)
|
||
|
BuildRequires: perl(Exporter)
|
||
|
BuildRequires: perl(warnings)
|
||
|
BuildRequires: perl(XSLoader)
|
||
|
# Tests
|
||
|
BuildRequires: perl(Cwd)
|
||
|
BuildRequires: perl(FindBin)
|
||
|
BuildRequires: perl(lib)
|
||
|
BuildRequires: perl(perl5db.pl)
|
||
|
BuildRequires: perl(Test::More) >= 0.88
|
||
|
%if %{with perl_Filter_enables_optional_test}
|
||
|
# Optional tests
|
||
|
BuildRequires: m4
|
||
|
BuildRequires: perl(POSIX)
|
||
|
%if !%{defined perl_bootstrap}
|
||
|
# Class::XSAccessor not used
|
||
|
# List::MoreUtils not used
|
||
|
# Perl::MinimumVersion 1.20 not used
|
||
|
# Test::CPAN::Meta 0.12 not used
|
||
|
# Test::Kwalitee not used
|
||
|
# Test::MinimumVersion 0.008 not used
|
||
|
BuildRequires: perl(Test::Pod) >= 1.00
|
||
|
# Test::Pod::Coverage 1.04 not used
|
||
|
# Text::CSV_XS not used
|
||
|
%endif
|
||
|
BuildRequires: perl(vars)
|
||
|
%endif
|
||
|
Requires: perl(Carp)
|
||
|
# For Filer::sh
|
||
|
Suggests: bash
|
||
|
# For Filter::cpp
|
||
|
Suggests: gcc
|
||
|
# For Filter::m4
|
||
|
Suggests: m4
|
||
|
|
||
|
%{?perl_default_filter}
|
||
|
|
||
|
# Filter modules bundled for tests
|
||
|
%global __provides_exclude_from %{?__provides_exclude_from:%__provides_exclude_from|}^%{_libexecdir}
|
||
|
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(rt_101033\\)
|
||
|
|
||
|
%description
|
||
|
Source filters alter the program text of a module before Perl sees it, much as
|
||
|
a C preprocessor alters the source text of a C program before the compiler
|
||
|
sees it.
|
||
|
|
||
|
%package tests
|
||
|
Summary: Tests for %{name}
|
||
|
Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
|
||
|
Requires: perl-Test-Harness
|
||
|
Requires: perl(perl5db.pl)
|
||
|
# Optional tests
|
||
|
%if %{with perl_Filter_enables_optional_test}
|
||
|
Requires: m4
|
||
|
Requires: perl(POSIX)
|
||
|
%endif
|
||
|
|
||
|
%description tests
|
||
|
Tests from %{name}. Execute them
|
||
|
with "%{_libexecdir}/%{name}/test".
|
||
|
|
||
|
%prep
|
||
|
%setup -q -n Filter-%{version}
|
||
|
# Clean examples
|
||
|
find examples -type f -exec chmod -x -- {} +
|
||
|
|
||
|
# Help generators to recognize Perl scripts
|
||
|
for F in t/*.t t/*.pl decrypt/encrypt; do
|
||
|
perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!.*perl\b}{$Config{startperl}}' "$F"
|
||
|
chmod +x "$F"
|
||
|
done
|
||
|
|
||
|
%build
|
||
|
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 OPTIMIZE="$RPM_OPT_FLAGS"
|
||
|
%{make_build}
|
||
|
|
||
|
%install
|
||
|
%{make_install}
|
||
|
find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -delete
|
||
|
%{_fixperms} $RPM_BUILD_ROOT/*
|
||
|
|
||
|
# Install tests
|
||
|
mkdir -p %{buildroot}%{_libexecdir}/%{name}
|
||
|
cp -a t %{buildroot}%{_libexecdir}/%{name}
|
||
|
mkdir -p %{buildroot}%{_libexecdir}/%{name}/decrypt
|
||
|
cp -a decrypt/encrypt %{buildroot}%{_libexecdir}/%{name}/decrypt/
|
||
|
# Remove author tests
|
||
|
rm %{buildroot}%{_libexecdir}/%{name}/t/z_*
|
||
|
cat > %{buildroot}%{_libexecdir}/%{name}/test << 'EOF'
|
||
|
#!/bin/bash
|
||
|
set -e
|
||
|
unset FULLPERL PERL_CORE
|
||
|
# Some tests write into temporary files/directories. The easiest solution
|
||
|
# is to copy the tests into a writable directory and execute them from there.
|
||
|
DIR=$(mktemp -d)
|
||
|
pushd "$DIR"
|
||
|
cp -a %{_libexecdir}/%{name}/* ./
|
||
|
prove -I . -j "$(getconf _NPROCESSORS_ONLN)"
|
||
|
popd
|
||
|
rm -rf "$DIR"
|
||
|
EOF
|
||
|
chmod +x %{buildroot}%{_libexecdir}/%{name}/test
|
||
|
|
||
|
%check
|
||
|
unset AUTHOR_TESTING FULLPERL IS_MAINTAINER PERL_CORE RELEASE_TESTING TRAVIS
|
||
|
export HARNESS_OPTIONS=j$(perl -e 'if ($ARGV[0] =~ /.*-j([0-9][0-9]*).*/) {print $1} else {print 1}' -- '%{?_smp_mflags}')
|
||
|
make test
|
||
|
|
||
|
%files
|
||
|
%doc examples Changes README
|
||
|
%{perl_vendorarch}/auto/*
|
||
|
%{perl_vendorarch}/Filter*
|
||
|
%{_mandir}/man3/*
|
||
|
|
||
|
%files tests
|
||
|
%{_libexecdir}/%{name}
|
||
|
|
||
|
%changelog
|
||
|
* Fri Aug 09 2024 Jitka Plesnikova <jplesnik@redhat.com> - 2:1.64-511
|
||
|
- Perl 5.40 re-rebuild of bootstrapped packages
|
||
|
|
||
|
* Thu Jul 18 2024 Jitka Plesnikova <jplesnik@redhat.com> - 2:1.64-510
|
||
|
- Increase release to favour standalone package
|
||
|
|
||
|
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 2:1.64-504
|
||
|
- Bump release for June 2024 mass rebuild
|
||
|
|
||
|
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2:1.64-503
|
||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||
|
|
||
|
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2:1.64-502
|
||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||
|
|
||
|
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2:1.64-501
|
||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
||
|
|
||
|
* Wed Jul 12 2023 Jitka Plesnikova <jplesnik@redhat.com> - 2:1.64-500
|
||
|
- Perl 5.38 re-rebuild of bootstrapped packages
|
||
|
|
||
|
* Tue Jul 11 2023 Jitka Plesnikova <jplesnik@redhat.com> - 2:1.64-499
|
||
|
- Increase release to favour standalone package
|
||
|
|
||
|
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2:1.64-2
|
||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
||
|
|
||
|
* Thu Aug 18 2022 Jitka Plesnikova <jplesnik@redhat.com> - 2:1.64-1
|
||
|
- 1.64 bump
|
||
|
|
||
|
* Mon Aug 15 2022 Jitka Plesnikova <jplesnik@redhat.com> - 2:1.63-1
|
||
|
- 1.63 bump
|
||
|
|
||
|
* Thu Aug 11 2022 Jitka Plesnikova <jplesnik@redhat.com> - 2:1.62-1
|
||
|
- 1.62 bump
|
||
|
|
||
|
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2:1.61-2
|
||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||
|
|
||
|
* Fri Jun 17 2022 Jitka Plesnikova <jplesnik@redhat.com> - 2:1.61-1
|
||
|
- 1.61 bump
|
||
|
- Package tests
|
||
|
|
||
|
* Fri Jun 03 2022 Jitka Plesnikova <jplesnik@redhat.com> - 2:1.60-489
|
||
|
- Perl 5.36 re-rebuild of bootstrapped packages
|
||
|
|
||
|
* Mon May 30 2022 Jitka Plesnikova <jplesnik@redhat.com> - 2:1.60-488
|
||
|
- Increase release to favour standalone package
|
||
|
|
||
|
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2:1.60-6
|
||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||
|
|
||
|
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2:1.60-5
|
||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
||
|
|
||
|
* Mon May 24 2021 Jitka Plesnikova <jplesnik@redhat.com> - 2:1.60-4
|
||
|
- Perl 5.34 re-rebuild of bootstrapped packages
|
||
|
|
||
|
* Fri May 21 2021 Jitka Plesnikova <jplesnik@redhat.com> - 2:1.60-3
|
||
|
- Perl 5.34 rebuild
|
||
|
|
||
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2:1.60-2
|
||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||
|
|
||
|
* Wed Aug 05 2020 Petr Pisar <ppisar@redhat.com> - 2:1.60-1
|
||
|
- 1.60 bump
|
||
|
|
||
|
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2:1.59-458
|
||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||
|
|
||
|
* Fri Jun 26 2020 Jitka Plesnikova <jplesnik@redhat.com> - 2:1.59-457
|
||
|
- Perl 5.32 re-rebuild of bootstrapped packages
|
||
|
|
||
|
* Mon Jun 22 2020 Jitka Plesnikova <jplesnik@redhat.com> - 2:1.59-456
|
||
|
- Increase release to favour standalone package
|
||
|
|
||
|
* Wed Feb 05 2020 Petr Pisar <ppisar@redhat.com> - 2:1.59-443
|
||
|
- Build-require Perl debugger for the tests
|
||
|
|
||
|
* Tue Feb 04 2020 Tom Stellard <tstellar@redhat.com> - 2:1.59-442
|
||
|
- Spec file cleanups: Use make_build and make_install macros
|
||
|
- https://docs.fedoraproject.org/en-US/packaging-guidelines/#_parallel_make
|
||
|
- https://fedoraproject.org/wiki/Perl/Tips#ExtUtils::MakeMake
|
||
|
|
||
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2:1.59-441
|
||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||
|
|
||
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2:1.59-440
|
||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||
|
|
||
|
* Sun Jun 02 2019 Jitka Plesnikova <jplesnik@redhat.com> - 2:1.59-439
|
||
|
- Perl 5.30 re-rebuild of bootstrapped packages
|
||
|
|
||
|
* Thu May 30 2019 Jitka Plesnikova <jplesnik@redhat.com> - 2:1.59-438
|
||
|
- Increase release to favour standalone package
|
||
|
|
||
|
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2:1.59-2
|
||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||
|
|
||
|
* Mon Aug 06 2018 Petr Pisar <ppisar@redhat.com> - 2:1.59-1
|
||
|
- 1.59 bump
|
||
|
|
||
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2:1.58-418
|
||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||
|
|
||
|
* Sat Jun 30 2018 Jitka Plesnikova <jplesnik@redhat.com> - 2:1.58-417
|
||
|
- Perl 5.28 re-rebuild of bootstrapped packages
|
||
|
|
||
|
* Wed Jun 27 2018 Jitka Plesnikova <jplesnik@redhat.com> - 2:1.58-416
|
||
|
- Increase release to favour standalone package
|
||
|
|
||
|
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2:1.58-2
|
||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
||
|
|
||
|
* Thu Nov 16 2017 Petr Pisar <ppisar@redhat.com> - 2:1.58-1
|
||
|
- 1.58 bump
|
||
|
|
||
|
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2:1.57-6
|
||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
||
|
|
||
|
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2:1.57-5
|
||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
||
|
|
||
|
* Wed Jun 07 2017 Jitka Plesnikova <jplesnik@redhat.com> - 2:1.57-4
|
||
|
- Perl 5.26 re-rebuild of bootstrapped packages
|
||
|
|
||
|
* Sat Jun 03 2017 Jitka Plesnikova <jplesnik@redhat.com> - 2:1.57-3
|
||
|
- Perl 5.26 rebuild
|
||
|
|
||
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2:1.57-2
|
||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
||
|
|
||
|
* Mon Jan 23 2017 Petr Pisar <ppisar@redhat.com> - 2:1.57-1
|
||
|
- 1.57 bump
|
||
|
|
||
|
* Wed May 18 2016 Jitka Plesnikova <jplesnik@redhat.com> - 2:1.55-366
|
||
|
- Perl 5.24 re-rebuild of bootstrapped packages
|
||
|
|
||
|
* Sat May 14 2016 Jitka Plesnikova <jplesnik@redhat.com> - 2:1.55-365
|
||
|
- Increase release to favour standalone package
|
||
|
|
||
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2:1.55-2
|
||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
||
|
|
||
|
* Mon Jul 27 2015 Petr Pisar <ppisar@redhat.com> - 2:1.55-1
|
||
|
- 1.55 bump
|
||
|
|
||
|
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2:1.54-347
|
||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
||
|
|
||
|
* Wed Jun 10 2015 Jitka Plesnikova <jplesnik@redhat.com> - 2:1.54-346
|
||
|
- Perl 5.22 re-rebuild of bootstrapped packages
|
||
|
|
||
|
* Thu Jun 04 2015 Jitka Plesnikova <jplesnik@redhat.com> - 2:1.54-345
|
||
|
- Increase release to favour standalone package
|
||
|
|
||
|
* Wed Jun 03 2015 Jitka Plesnikova <jplesnik@redhat.com> - 2:1.54-2
|
||
|
- Perl 5.22 rebuild
|
||
|
|
||
|
* Fri Jan 23 2015 Petr Pisar <ppisar@redhat.com> - 2:1.54-1
|
||
|
- 1.54 bump
|
||
|
|
||
|
* Fri Jan 02 2015 Petr Pisar <ppisar@redhat.com> - 2:1.53-1
|
||
|
- 1.53 bump
|
||
|
|
||
|
* Thu Dec 11 2014 Petr Pisar <ppisar@redhat.com> - 2:1.51-1
|
||
|
- 1.51 bump
|
||
|
|
||
|
* Sun Sep 07 2014 Jitka Plesnikova <jplesnik@redhat.com> - 2:1.50-6
|
||
|
- Perl 5.20 re-rebuild of bootstrapped packages
|
||
|
|
||
|
* Wed Sep 03 2014 Jitka Plesnikova <jplesnik@redhat.com> - 2:1.50-5
|
||
|
- Increase Epoch to favour standalone package
|
||
|
|
||
|
* Tue Aug 26 2014 Jitka Plesnikova <jplesnik@redhat.com> - 1:1.50-4
|
||
|
- Perl 5.20 rebuild
|
||
|
|
||
|
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.50-3
|
||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
||
|
|
||
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.50-2
|
||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
||
|
|
||
|
* Thu Jun 05 2014 Petr Pisar <ppisar@redhat.com> - 1:1.50-1
|
||
|
- 1.50 bump
|
||
|
|
||
|
* Wed Aug 14 2013 Jitka Plesnikova <jplesnik@redhat.com> - 1:1.49-5
|
||
|
- Perl 5.18 re-rebuild of bootstrapped packages
|
||
|
|
||
|
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.49-4
|
||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
||
|
|
||
|
* Fri Jul 12 2013 Petr Pisar <ppisar@redhat.com> - 1:1.49-3
|
||
|
- Link minimal build-root packages against libperl.so explicitly
|
||
|
|
||
|
* Fri Jul 12 2013 Petr Pisar <ppisar@redhat.com> - 1:1.49-2
|
||
|
- Perl 5.18 rebuild
|
||
|
|
||
|
* Fri Jul 12 2013 Petr Pisar <ppisar@redhat.com> - 1:1.49-1
|
||
|
- Increase epoch to compete with perl.spec
|
||
|
|
||
|
* Thu Apr 04 2013 Petr Pisar <ppisar@redhat.com> - 1.49-1
|
||
|
- 1.49 bump
|
||
|
|
||
|
* Wed Apr 03 2013 Petr Pisar <ppisar@redhat.com> - 1.48-1
|
||
|
- 1.48 bump
|
||
|
|
||
|
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.45-5
|
||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
||
|
|
||
|
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.45-4
|
||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
||
|
|
||
|
* Tue Jul 10 2012 Petr Pisar <ppisar@redhat.com> - 1.45-3
|
||
|
- Perl 5.16 re-rebuild of bootstrapped packages
|
||
|
|
||
|
* Wed Jun 27 2012 Petr Pisar <ppisar@redhat.com> - 1.45-2
|
||
|
- Perl 5.16 rebuild
|
||
|
|
||
|
* Tue Jun 19 2012 Petr Pisar <ppisar@redhat.com> - 1.45-1
|
||
|
- 1.45 bump
|
||
|
|
||
|
* Wed Jun 06 2012 Petr Pisar <ppisar@redhat.com> - 1.43-3
|
||
|
- Perl 5.16 rebuild
|
||
|
|
||
|
* Thu May 31 2012 Petr Pisar <ppisar@redhat.com> - 1.43-2
|
||
|
- Skip optional Test::Pod on bootstraping perl
|
||
|
|
||
|
* Mon Feb 27 2012 Petr Pisar <ppisar@redhat.com> - 1.43-1
|
||
|
- 1.43 bump
|
||
|
|
||
|
* Tue Feb 14 2012 Petr Pisar <ppisar@redhat.com> 1.39-1
|
||
|
- Specfile autogenerated by cpanspec 1.78.
|