|
|
|
@ -1,33 +1,39 @@
|
|
|
|
|
# We need to patch the test suite if we have an old version of Test::More
|
|
|
|
|
%global old_test_more %(perl -MTest::More -e 'print (($Test::More::VERSION < 0.88) ? 1 : 0);' 2>/dev/null || echo 0)
|
|
|
|
|
|
|
|
|
|
Name: perl-Test-Portability-Files
|
|
|
|
|
Version: 0.10
|
|
|
|
|
Release: 11%{?dist}
|
|
|
|
|
Version: 0.07
|
|
|
|
|
Release: 2%{?dist}
|
|
|
|
|
Summary: Check file names portability
|
|
|
|
|
License: GPL+ or Artistic
|
|
|
|
|
URL: https://metacpan.org/release/Test-Portability-Files
|
|
|
|
|
Source0: https://cpan.metacpan.org/authors/id/A/AB/ABRAXXA/Test-Portability-Files-%{version}.tar.gz
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
|
URL: http://search.cpan.org/dist/Test-Portability-Files/
|
|
|
|
|
Source0: http://www.cpan.org/authors/id/A/AB/ABRAXXA/Test-Portability-Files-%{version}.tar.gz
|
|
|
|
|
Patch1: Test-Portability-Files-0.06-old-Test::More.patch
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
# Build
|
|
|
|
|
BuildRequires: coreutils
|
|
|
|
|
BuildRequires: findutils
|
|
|
|
|
BuildRequires: make
|
|
|
|
|
BuildRequires: perl
|
|
|
|
|
BuildRequires: perl-generators
|
|
|
|
|
BuildRequires: perl-interpreter
|
|
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
|
|
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
|
|
|
BuildRequires: perl(strict)
|
|
|
|
|
BuildRequires: perl(warnings)
|
|
|
|
|
# Runtime
|
|
|
|
|
BuildRequires: perl(Exporter)
|
|
|
|
|
BuildRequires: perl(ExtUtils::Manifest)
|
|
|
|
|
BuildRequires: perl(File::Basename)
|
|
|
|
|
BuildRequires: perl(File::Find)
|
|
|
|
|
BuildRequires: perl(File::Spec)
|
|
|
|
|
BuildRequires: perl(strict)
|
|
|
|
|
BuildRequires: perl(Test::Builder)
|
|
|
|
|
BuildRequires: perl(warnings)
|
|
|
|
|
# Test Suite
|
|
|
|
|
BuildRequires: perl(blib)
|
|
|
|
|
BuildRequires: perl(File::Temp)
|
|
|
|
|
BuildRequires: perl(IO::Handle)
|
|
|
|
|
BuildRequires: perl(IPC::Open3)
|
|
|
|
|
BuildRequires: perl(Test::More) >= 0.88
|
|
|
|
|
BuildRequires: perl(utf8)
|
|
|
|
|
# Dependencies
|
|
|
|
|
BuildRequires: perl(Test::More) >= 0.47
|
|
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
@ -39,81 +45,36 @@ a distribution can select which tests to execute.
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n Test-Portability-Files-%{version}
|
|
|
|
|
|
|
|
|
|
# We need to patch the test suite if we have an old version of Test::More
|
|
|
|
|
%if %{old_test_more}
|
|
|
|
|
%patch1
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
|
|
|
|
|
%{make_build}
|
|
|
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
|
|
|
|
make
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%{make_install}
|
|
|
|
|
%{_fixperms} -c %{buildroot}
|
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
make pure_install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
|
find $RPM_BUILD_ROOT -type f -name .packlist -delete
|
|
|
|
|
%{_fixperms} $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
make test
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%doc Changes README
|
|
|
|
|
%{perl_vendorlib}/Test/
|
|
|
|
|
%{_mandir}/man3/Test::Portability::Files.3*
|
|
|
|
|
%{_mandir}/man3/Test::Portability::Files.3pm*
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.10-11
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri May 21 2021 Jitka Plesnikova <jplesnik@redhat.com> - 0.10-10
|
|
|
|
|
- Perl 5.34 rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.10-9
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.10-8
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Jun 22 2020 Jitka Plesnikova <jplesnik@redhat.com> - 0.10-7
|
|
|
|
|
- Perl 5.32 rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Mar 10 2020 Jitka Plesnikova <jplesnik@redhat.com> - 0.10-6
|
|
|
|
|
- Add missing BR
|
|
|
|
|
|
|
|
|
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.10-5
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.10-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu May 30 2019 Jitka Plesnikova <jplesnik@redhat.com> - 0.10-3
|
|
|
|
|
- Perl 5.30 rebuild
|
|
|
|
|
|
|
|
|
|
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.10-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Jan 07 2019 Jitka Plesnikova <jplesnik@redhat.com> - 0.10-1
|
|
|
|
|
- 0.10 bump
|
|
|
|
|
|
|
|
|
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.09-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Jun 27 2018 Jitka Plesnikova <jplesnik@redhat.com> - 0.09-3
|
|
|
|
|
- Perl 5.28 rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.09-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Jan 2 2018 Paul Howarth <paul@city-fan.org> - 0.09-1
|
|
|
|
|
- Update to 0.09
|
|
|
|
|
- Add windows_reserved option to test for Windows reserved filenames
|
|
|
|
|
- Add tests, now requires Perl 5.008
|
|
|
|
|
- Drop EL-5 support
|
|
|
|
|
- Drop BuildRoot: and Group: tags
|
|
|
|
|
- Drop explicit buildroot cleaning in %%install section
|
|
|
|
|
- Drop explicit %%clean section
|
|
|
|
|
- Drop workaround for building with Test::More < 0.88
|
|
|
|
|
|
|
|
|
|
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.07-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sun Jun 04 2017 Jitka Plesnikova <jplesnik@redhat.com> - 0.07-3
|
|
|
|
|
- Perl 5.26 rebuild
|
|
|
|
|
* Thu Apr 18 2024 MSVSphere Packaging Team <packager@msvsphere-os.ru> - 0.07-2
|
|
|
|
|
- Rebuilt for MSVSphere 8.9
|
|
|
|
|
|
|
|
|
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.07-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|