Compare commits

...

No commits in common. 'i10cs' and 'c9' have entirely different histories.
i10cs ... c9

2
.gitignore vendored

@ -1 +1 @@
SOURCES/version-0.9932.tar.gz SOURCES/version-0.9928.tar.gz

@ -1 +1 @@
8f9b8df3d49efa35ce3ea2044a2615a6f5f24c37 SOURCES/version-0.9932.tar.gz 540e5a6fa25528823dac3b0614f75a5eda3bf830 SOURCES/version-0.9928.tar.gz

@ -6,16 +6,15 @@
%endif %endif
Name: perl-version Name: perl-version
Epoch: 8 Epoch: 7
Version: 0.99.32 Version: 0.99.28
%global module_version 0.9932 %global module_version 0.9928
Release: 4%{?dist} Release: 4%{?dist}
Summary: Perl extension for Version Objects Summary: Perl extension for Version Objects
License: GPL-1.0-or-later OR Artistic-1.0-Perl License: GPL+ or Artistic
URL: https://metacpan.org/release/version URL: https://metacpan.org/release/version
Source0: https://cpan.metacpan.org/authors/id/L/LE/LEONT/version-%{module_version}.tar.gz Source0: https://cpan.metacpan.org/authors/id/L/LE/LEONT/version-%{module_version}.tar.gz
# Build # Build
BuildRequires: coreutils
BuildRequires: findutils BuildRequires: findutils
BuildRequires: gcc BuildRequires: gcc
BuildRequires: make BuildRequires: make
@ -44,7 +43,6 @@ BuildRequires: perl(base)
BuildRequires: perl(Data::Dumper) BuildRequires: perl(Data::Dumper)
BuildRequires: perl(File::Basename) BuildRequires: perl(File::Basename)
BuildRequires: perl(File::Spec) BuildRequires: perl(File::Spec)
BuildRequires: perl(I18N::Langinfo)
BuildRequires: perl(IO::Handle) BuildRequires: perl(IO::Handle)
BuildRequires: perl(lib) BuildRequires: perl(lib)
BuildRequires: perl(List::Util) BuildRequires: perl(List::Util)
@ -54,6 +52,7 @@ BuildRequires: perl(Test::More) >= 0.45
%if %{with perl_version_enables_optional_test} && ! %{defined perl_bootstrap} %if %{with perl_version_enables_optional_test} && ! %{defined perl_bootstrap}
BuildRequires: perl(Test::Taint) BuildRequires: perl(Test::Taint)
%endif %endif
Requires: perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version))
Requires: perl(B) Requires: perl(B)
Requires: perl(Carp) Requires: perl(Carp)
Requires: perl(locale) Requires: perl(locale)
@ -64,7 +63,6 @@ Requires: perl(XSLoader)
%{?perl_default_filter} %{?perl_default_filter}
# version::vxs is private module (see bug #633775) # version::vxs is private module (see bug #633775)
%global __provides_exclude %{?__provides_exclude:%__provides_exclude|}perl\\(version::vxs\\) %global __provides_exclude %{?__provides_exclude:%__provides_exclude|}perl\\(version::vxs\\)
%global __provides_exclude_from %{?__provides_exclude_from:%__provides_exclude_from|}^%{_libexecdir}
%description %description
Version objects were added to Perl in 5.10. This module implements version Version objects were added to Perl in 5.10. This module implements version
@ -74,26 +72,9 @@ should not be used due to incompatible API changes. Version 0.77 introduces
the new 'parse' and 'declare' methods to standardize usage. You are the new 'parse' and 'declare' methods to standardize usage. You are
strongly urged to set 0.77 as a minimum in your code. strongly urged to set 0.77 as a minimum in your code.
%package tests
Summary: Tests for %{name}
Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
Requires: perl-Test-Harness
Requires: perl(I18N::Langinfo)
%description tests
Tests from %{name}. Execute them
with "%{_libexecdir}/%{name}/test".
%prep %prep
%setup -q -n version-%{module_version} %setup -q -n version-%{module_version}
# Help file to recognise the Perl scripts
for F in t/*.t t/survey_locales; do
perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!.*perl\b}{$Config{startperl}}' "$F"
chmod +x "$F"
done
perl -MConfig -i -pe 's/\A#!.*perl/$Config{startperl}/' t/*.pm
%build %build
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" UNINST=0 NO_PACKLIST=1 NO_PERLLOCAL=1 perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" UNINST=0 NO_PACKLIST=1 NO_PERLLOCAL=1
%{make_build} %{make_build}
@ -103,25 +84,7 @@ perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" UNINST=0 NO_PACKLIST=
find %{buildroot} -type f -name '*.bs' -size 0 -delete find %{buildroot} -type f -name '*.bs' -size 0 -delete
%{_fixperms} %{buildroot}/* %{_fixperms} %{buildroot}/*
# Install tests
mkdir -p %{buildroot}/%{_libexecdir}/%{name}
cp -a t %{buildroot}/%{_libexecdir}/%{name}
cat > %{buildroot}/%{_libexecdir}/%{name}/test << 'EOF'
#!/bin/bash
set -e
# 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 %check
export HARNESS_OPTIONS=j$(perl -e 'if ($ARGV[0] =~ /.*-j([0-9][0-9]*).*/) {print $1} else {print 1}' -- '%{?_smp_mflags}')
make test make test
%files %files
@ -137,75 +100,13 @@ make test
%{_mandir}/man3/version.3pm* %{_mandir}/man3/version.3pm*
%{_mandir}/man3/version::Internals.3pm* %{_mandir}/man3/version::Internals.3pm*
%files tests
%{_libexecdir}/%{name}
%changelog %changelog
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 8:0.99.32-4 * Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 7:0.99.28-4
- Bump release for October 2024 mass rebuild: - Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
Resolves: RHEL-64018 Related: rhbz#1991688
* Fri Oct 25 2024 MSVSphere Packaging Team <packager@msvsphere-os.ru> - 8:0.99.32-3
- Rebuilt for MSVSphere 10
* Fri Aug 09 2024 Jitka Plesnikova <jplesnik@redhat.com> - 8:0.99.32-3
- Perl 5.40 re-rebuild of bootstrapped packages
* Thu Jul 18 2024 Jitka Plesnikova <jplesnik@redhat.com> - 8:0.99.32-2
- Perl 5.40 rebuild
* Thu Jul 18 2024 Jitka Plesnikova <jplesnik@redhat.com> - 8:0.99.32-1
- 0.9932 bump
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 8:0.99.30-4
- Bump release for June 2024 mass rebuild
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 8:0.99.30-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 8:0.99.30-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Tue Sep 12 2023 Jitka Plesnikova <jplesnik@redhat.com> - 8:0.9930-1
- 0.9930 bump (rhbz#2238421)
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 8:0.99.29-501
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Wed Jul 12 2023 Jitka Plesnikova <jplesnik@redhat.com> - 8:0.99.29-500
- Perl 5.38 re-rebuild of bootstrapped packages
* Tue Jul 11 2023 Jitka Plesnikova <jplesnik@redhat.com> - 8:0.99.29-499
- Increase release to favour standalone package
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 8:0.99.29-491
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 8:0.99.29-490
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Fri Jun 03 2022 Jitka Plesnikova <jplesnik@redhat.com> - 8:0.99.29-489
- Perl 5.36 re-rebuild of bootstrapped packages
* Mon May 30 2022 Jitka Plesnikova <jplesnik@redhat.com> - 8:0.99.29-488
- Increase release to favour standalone package
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 8:0.99.29-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Tue Jul 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 8:0.99.29-4
- Second attempt - Rebuilt for
https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Mon May 24 2021 Jitka Plesnikova <jplesnik@redhat.com> - 8:0.99.29-3
- Perl 5.34 re-rebuild of bootstrapped packages
* Fri May 21 2021 Jitka Plesnikova <jplesnik@redhat.com> - 8:0.99.29-2
- Increase epoch to favour standalone package
* Mon Apr 19 2021 Jitka Plesnikova <jplesnik@redhat.com> - 7:0.99.29-1 * Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 7:0.99.28-3
- 0.9929 bump - Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
- Package tests
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 7:0.99.28-2 * Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 7:0.99.28-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild

Loading…
Cancel
Save