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.
233 lines
8.0 KiB
233 lines
8.0 KiB
# noarch, but to avoid debug* files interfering with manifest test:
|
|
%global debug_package %{nil}
|
|
|
|
%if 0%{?fedora} && 0%{?fedora} < 37
|
|
# Similarly for .package_note* files (#2059504)
|
|
%undefine _package_note_file
|
|
%endif
|
|
|
|
Name: perl-Test-DistManifest
|
|
Version: 1.014
|
|
Release: 27%{?dist}
|
|
Summary: Author test that validates a package MANIFEST
|
|
License: GPL-1.0-or-later OR Artistic-1.0-Perl
|
|
URL: https://metacpan.org/release/Test-DistManifest
|
|
Source0: https://cpan.metacpan.org/modules/by-module/Test/Test-DistManifest-%{version}.tar.gz
|
|
BuildArch: noarch
|
|
# Build:
|
|
BuildRequires: coreutils
|
|
BuildRequires: findutils
|
|
BuildRequires: make
|
|
BuildRequires: perl-generators
|
|
BuildRequires: perl-interpreter
|
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
|
|
BuildRequires: perl(strict)
|
|
BuildRequires: perl(warnings)
|
|
# Run-time:
|
|
BuildRequires: perl(Cwd)
|
|
BuildRequires: perl(ExtUtils::Manifest)
|
|
BuildRequires: perl(File::Find)
|
|
BuildRequires: perl(File::Spec)
|
|
BuildRequires: perl(File::Spec::Unix)
|
|
BuildRequires: perl(Module::Manifest) >= 0.07
|
|
BuildRequires: perl(Test::Builder)
|
|
# Tests only:
|
|
BuildRequires: perl(if)
|
|
BuildRequires: perl(Test::Builder::Tester)
|
|
BuildRequires: perl(Test::More)
|
|
# Test::Warnings not used without $ENV{AUTHOR_TESTING}
|
|
# Dependencies:
|
|
|
|
# Remove private modules
|
|
%global __provides_exclude_from %{?__provides_exclude_from:%__provides_exclude_from|}^%{_libexecdir}
|
|
|
|
%description
|
|
This Perl module provides a simple method of testing that a MANIFEST matches
|
|
the distribution.
|
|
|
|
%package tests
|
|
Summary: Tests for %{name}
|
|
Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
|
|
Requires: perl-Test-Harness
|
|
|
|
%description tests
|
|
Tests from %{name}. Execute them
|
|
with "%{_libexecdir}/%{name}/test".
|
|
|
|
%prep
|
|
%setup -q -n Test-DistManifest-%{version}
|
|
# Help generators to recognize Perl scripts
|
|
for F in $(find t/ -name '*.t'); do
|
|
perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!\s*perl}{$Config{startperl}}' "$F"
|
|
chmod +x "$F"
|
|
done
|
|
|
|
%build
|
|
PERL_MM_FALLBACK_SILENCE_WARNING=1 perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
|
|
%{make_build}
|
|
|
|
%install
|
|
%{make_install}
|
|
# Install tests
|
|
mkdir -p %{buildroot}%{_libexecdir}/%{name}
|
|
cp -a t %{buildroot}%{_libexecdir}/%{name}
|
|
rm -f %{buildroot}%{_libexecdir}/%{name}/t/00*
|
|
cat > %{buildroot}%{_libexecdir}/%{name}/test << 'EOF'
|
|
#!/bin/sh
|
|
cd %{_libexecdir}/%{name} && exec prove -I . -j "$(getconf _NPROCESSORS_ONLN)" -r
|
|
EOF
|
|
chmod +x %{buildroot}%{_libexecdir}/%{name}/test
|
|
%{_fixperms} -c %{buildroot}
|
|
|
|
%check
|
|
make test
|
|
|
|
%files
|
|
%license LICENSE
|
|
%doc Changes CONTRIBUTING README examples/
|
|
%{perl_vendorlib}/Test/
|
|
%{_mandir}/man3/Test::DistManifest.3*
|
|
|
|
%files tests
|
|
%{_libexecdir}/%{name}
|
|
|
|
%changelog
|
|
* Wed Sep 20 2023 Arkady L. Shane <tigro@msvsphere-os.ru> - 1.014-27
|
|
- Rebuilt for MSVSphere 9.2
|
|
|
|
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.014-27
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
* Thu Dec 08 2022 Michal Josef Špaček <mspacek@redhat.com> - 1.014-26
|
|
- Package tests
|
|
- Update license to SPDX format
|
|
|
|
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.014-25
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
* Tue May 31 2022 Jitka Plesnikova <jplesnik@redhat.com> - 1.014-24
|
|
- Perl 5.36 rebuild
|
|
|
|
* Tue Mar 1 2022 Paul Howarth <paul@city-fan.org> - 1.014-23
|
|
- Work around package note files breaking t/02manifest.t (#2059504)
|
|
|
|
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.014-22
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.014-21
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
* Fri May 21 2021 Jitka Plesnikova <jplesnik@redhat.com> - 1.014-20
|
|
- Perl 5.34 rebuild
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.014-19
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.014-18
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
* Tue Jun 23 2020 Jitka Plesnikova <jplesnik@redhat.com> - 1.014-17
|
|
- Perl 5.32 rebuild
|
|
|
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.014-16
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
* Thu Sep 26 2019 Paul Howarth <paul@city-fan.org> - 1.014-15
|
|
- Spec tidy-up
|
|
- Use author-independent source URL
|
|
- Install into vendor directory
|
|
- Use %%{make_build} and %%{make_install}
|
|
- Drop redundant find commands in %%install section
|
|
- Drop redundant explicit dependencies and filtering of them
|
|
- Avoid need to remove *.list files in %%check
|
|
- Make %%files list more explicit
|
|
|
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.014-14
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
* Fri May 31 2019 Jitka Plesnikova <jplesnik@redhat.com> - 1.014-13
|
|
- Perl 5.30 rebuild
|
|
|
|
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.014-12
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.014-11
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
* Thu Jun 28 2018 Jitka Plesnikova <jplesnik@redhat.com> - 1.014-10
|
|
- Perl 5.28 rebuild
|
|
|
|
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.014-9
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.014-8
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
* Mon Jun 05 2017 Jitka Plesnikova <jplesnik@redhat.com> - 1.014-7
|
|
- Perl 5.26 rebuild
|
|
|
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.014-6
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
* Sun May 15 2016 Jitka Plesnikova <jplesnik@redhat.com> - 1.014-5
|
|
- Perl 5.24 rebuild
|
|
|
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.014-4
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.014-3
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
* Sat Jun 06 2015 Jitka Plesnikova <jplesnik@redhat.com> - 1.014-2
|
|
- Perl 5.22 rebuild
|
|
|
|
* Wed Feb 11 2015 Petr Pisar <ppisar@redhat.com> - 1.014-1
|
|
- 1.014 bump
|
|
|
|
* Mon Feb 09 2015 Petr Pisar <ppisar@redhat.com> - 1.013-1
|
|
- 1.013 bump
|
|
|
|
* Thu Aug 28 2014 Jitka Plesnikova <jplesnik@redhat.com> - 1.012-8
|
|
- Perl 5.20 rebuild
|
|
|
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.012-7
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
* Fri Aug 02 2013 Petr Pisar <ppisar@redhat.com> - 1.012-6
|
|
- Perl 5.18 rebuild
|
|
- Remove more debuginfo remnants
|
|
|
|
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.012-5
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
* Tue Nov 20 2012 Marcela Mašláňová <mmaslano@redhat.com> - 1.012-4
|
|
- Remove doubled requires
|
|
|
|
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.012-3
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
* Thu Jun 14 2012 Petr Pisar <ppisar@redhat.com> - 1.012-2
|
|
- Perl 5.16 rebuild
|
|
|
|
* Mon Apr 23 2012 Petr Pisar <ppisar@redhat.com> - 1.012-1
|
|
- 1.012 bump
|
|
|
|
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.011-4
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
* Mon Jul 25 2011 Iain Arnell <iarnell@gmail.com> 1.011-3
|
|
- update filtering for rpm 4.9
|
|
|
|
* Wed Jul 20 2011 Petr Sabata <contyk@redhat.com> - 1.011-2
|
|
- Perl mass rebuild
|
|
|
|
* Wed Apr 27 2011 Petr Pisar <ppisar@redhat.com> - 1.011-1
|
|
- 1.011 bump
|
|
- Move to ExtUtils::MakeMaker
|
|
|
|
* Tue Jan 25 2011 Petr Pisar <ppisar@redhat.com> 1.009-1
|
|
- Specfile autogenerated by cpanspec 1.78.
|
|
- Remove BuildRoot stuff
|
|
- Install into perl core directory
|
|
- Hack %%check for rpmbuild bug #672538
|