Compare commits

...

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

2
.gitignore vendored

@ -1 +1 @@
SOURCES/Compress-Raw-Lzma-2.212.tar.gz
SOURCES/Compress-Raw-Lzma-2.101.tar.gz

@ -1 +1 @@
9af2b8751e4476c6a19fa2354d87e3665bc072df SOURCES/Compress-Raw-Lzma-2.212.tar.gz
b1f6943b9ad60c76142dfb734f3634fce4fa877f SOURCES/Compress-Raw-Lzma-2.101.tar.gz

@ -2,10 +2,10 @@
%bcond_without perl_Compress_Raw_Lzma_enables_optional_test
Name: perl-Compress-Raw-Lzma
Version: 2.212
Version: 2.101
Release: 3%{?dist}
Summary: Low-level interface to lzma compression library
License: GPL-1.0-or-later OR Artistic-1.0-Perl
License: GPL+ or Artistic
URL: https://metacpan.org/release/Compress-Raw-Lzma
Source0: https://cpan.metacpan.org/modules/by-module/Compress/Compress-Raw-Lzma-%{version}.tar.gz
# Module Build
@ -45,35 +45,19 @@ BuildRequires: perl(Test::NoWarnings)
BuildRequires: perl(Test::Pod) >= 1.00
BuildRequires: xz
%endif
# Dependencies
# Runtime
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires: perl(XSLoader)
# Built-against version is embedded in module, so we have a strict version dependency
%if 0%{?fedora} < 40 && 0%{?rhel} < 10
%global xz_epoch %{nil}
%else
%global xz_epoch 1:
%endif
Requires: xz-libs%{?_isa} = %{xz_epoch}%((pkg-config --modversion liblzma 2>/dev/null || echo 0) | tr -dc '[0-9.]')
Requires: xz-libs%{?_isa} = %((pkg-config --modversion liblzma 2>/dev/null || echo 0) | tr -dc '[0-9.]')
# Don't "provide" private Perl libs
%{?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\\(CompTestUtils\\)
%description
This module provides a Perl interface to the lzma compression library.
It is used by IO::Compress::Lzma.
%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 Compress-Raw-Lzma-%{version}
@ -81,12 +65,6 @@ with "%{_libexecdir}/%{name}/test".
rm -rv t/Test/
perl -i -ne 'print $_ unless m{^t/Test/}' MANIFEST
# Help generators to recognize Perl scripts
for F in t/*.t; 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 \
@ -100,27 +78,7 @@ perl Makefile.PL \
find %{buildroot} -type f -name '*.bs' -empty -delete
%{_fixperms} -c %{buildroot}
# Install tests
mkdir -p %{buildroot}%{_libexecdir}/%{name}
cp -a t %{buildroot}%{_libexecdir}/%{name}
rm %{buildroot}%{_libexecdir}/%{name}/t/99pod.t
rm %{buildroot}%{_libexecdir}/%{name}/t/meta*
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
export HARNESS_OPTIONS=j$(perl -e 'if ($ARGV[0] =~ /.*-j([0-9][0-9]*).*/) {print $1} else {print 1}' -- '%{?_smp_mflags}')
make test
%files
@ -129,116 +87,13 @@ make test
%{perl_vendorarch}/Compress/
%{_mandir}/man3/Compress::Raw::Lzma.3*
%files tests
%{_libexecdir}/%{name}
%changelog
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 2.212-3
- Bump release for October 2024 mass rebuild:
Resolves: RHEL-64018
* Fri Oct 25 2024 MSVSphere Packaging Team <packager@msvsphere-os.ru> - 2.212-2
- Rebuilt for MSVSphere 10
* Thu Aug 08 2024 Troy Dawson <tdawson@redhat.com> - 2.212-2
- Bump release for Aug 2024 java mass rebuild
* Tue Jul 16 2024 Jitka Plesnikova <jplesnik@redhat.com> - 2.212-1
- Update to 2.212
* Fri Jul 12 2024 Jitka Plesnikova <jplesnik@redhat.com> - 2.206-8
- Package tests
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 2.206-7
- Bump release for June 2024 mass rebuild
* Mon Jan 29 2024 Richard W.M. Jones <rjones@redhat.com> - 2.206-6
- Rebuild against xz 5.4.6 (RHBZ#2260521)
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.206-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.206-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Wed Nov 01 2023 Richard W.M. Jones <rjones@redhat.com> - 2.206-3
- Rebuild against xz 5.4.5 (RHBZ#2247487)
* Wed Aug 02 2023 Richard W.M. Jones <rjones@redhat.com> - 2.206-2
- Rebuild against xz 5.4.4 (RHBZ#2228542)
* Wed Jul 26 2023 Paul Howarth <paul@city-fan.org> - 2.206-1
- Update to 2.206
- Drop rt.cpan.org from SUPPORT section
- Add instructions to deal with build failure on Ubuntu/Debian (GH#7)
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.205-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Mon Jul 17 2023 Paul Howarth <paul@city-fan.org> - 2.205-1
- Update to 2.205
- Test::More isn't warns in Perl 5.38
- Add perl 5.38 to CI matrix
- Add on workflow_dispatch
- Update action/checkout version
* Tue Jul 11 2023 Jitka Plesnikova <jplesnik@redhat.com> - 2.204-7
- Perl 5.38 rebuild
* Thu May 04 2023 Richard W.M. Jones <rjones@redhat.com> - 2.204-6
- Rebuild against xz-5.4.3-1.fc39
* Thu Apr 27 2023 Yaakov Selkowitz <yselkowi@redhat.com> - 2.204-5
- Rebuild against the new xz in ELN
* Mon Apr 17 2023 Adam Williamson <awilliam@redhat.com> - 2.204-4
- Really rebuild against the new xz this time
* Mon Apr 17 2023 Adam Williamson <awilliam@redhat.com> - 2.204-3
- Rebuild for new xz
* Thu Feb 9 2023 Paul Howarth <paul@city-fan.org> - 2.204-2
- Update for disttag
* Thu Feb 9 2023 Paul Howarth <paul@city-fan.org> - 2.204-1
- Update to 2.204
- Use GIMME_V instead of GIMME
* Mon Jan 23 2023 Paul Howarth <paul@city-fan.org> - 2.201-7
- Rebuild against xz-5.4.1
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.201-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Thu Dec 01 2022 Jitka Plesnikova <jplesnik@redhat.com> - 2.201-5
- Rebuild against xz-5.2.9
* Wed Oct 12 2022 Stephen Gallagher <sgallagh@redhat.com> - 2.201-4
- Rebuild against xz-5.2.7
* Wed Aug 31 2022 Petr Pisar <ppisar@redhat.com> - 2.201-3
- Rebuild against xz-5.2.6
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.201-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Sat Jun 25 2022 Paul Howarth <paul@city-fan.org> - 2.201-1
Update to 2.201 (no functional changes)
* Tue May 31 2022 Jitka Plesnikova <jplesnik@redhat.com> - 2.103-2
- Perl 5.36 rebuild
* Mon Apr 4 2022 Paul Howarth <paul@city-fan.org> - 2.103-1
- Update to 2.103 (no changes)
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.101-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.101-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 2.101-3
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
Related: rhbz#1991688
* Fri May 21 2021 Jitka Plesnikova <jplesnik@redhat.com> - 2.101-2
- Perl 5.34 rebuild
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 2.101-2
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
* Sat Feb 20 2021 Paul Howarth <paul@city-fan.org> - 2.101-1
- Update to 2.101 (no changes)

Loading…
Cancel
Save