Compare commits
1 Commits
c8s-stream
...
c10
| Author | SHA1 | Date | |
|---|---|---|---|
| 79076c06b0 |
2
.gitignore
vendored
2
.gitignore
vendored
@ -1 +1 @@
|
||||
SOURCES/IO-Compress-Lzma-2.096.tar.gz
|
||||
IO-Compress-Lzma-2.206.tar.gz
|
||||
|
||||
@ -1 +0,0 @@
|
||||
ce5d84795e3dea63a227b2493c79ba4c9d279e06 SOURCES/IO-Compress-Lzma-2.096.tar.gz
|
||||
@ -1,11 +1,15 @@
|
||||
# Perform optional tests
|
||||
%if 0%{?rhel} >= 9
|
||||
%bcond_with perl_IO_Compress_Lzma_enables_optional_test
|
||||
%else
|
||||
%bcond_without perl_IO_Compress_Lzma_enables_optional_test
|
||||
%endif
|
||||
|
||||
Name: perl-IO-Compress-Lzma
|
||||
Version: 2.096
|
||||
Release: 1%{?dist}
|
||||
Version: 2.206
|
||||
Release: 7%{?dist}
|
||||
Summary: Read and write lzma compressed data
|
||||
License: GPL+ or Artistic
|
||||
License: GPL-1.0-or-later OR Artistic-1.0-Perl
|
||||
URL: https://metacpan.org/release/IO-Compress-Lzma
|
||||
Source0: https://cpan.metacpan.org/modules/by-module/IO/IO-Compress-Lzma-%{version}.tar.gz
|
||||
BuildArch: noarch
|
||||
@ -55,13 +59,26 @@ BuildRequires: perl(Test::NoWarnings)
|
||||
BuildRequires: perl(Test::Pod) >= 1.00
|
||||
BuildRequires: /usr/bin/7z
|
||||
%endif
|
||||
# Runtime
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
||||
# Dependencies
|
||||
# (none)
|
||||
|
||||
# Remove private test modules
|
||||
%global __provides_exclude_from %{?__provides_exclude_from:%__provides_exclude_from|}^%{_libexecdir}
|
||||
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\((CompTestUtils|any\.pl|destroy\.pl|encode\.pl|generic\.pl|multi\.pl|newtied\.pl|oneshot\.pl|prime\.pl|tied\.pl|truncate\.pl)\\)$
|
||||
|
||||
%description
|
||||
This distribution provides a Perl interface to allow reading and writing of
|
||||
compressed data created with the lzma library.
|
||||
|
||||
%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 IO-Compress-Lzma-%{version}
|
||||
|
||||
@ -76,6 +93,12 @@ chmod -c -x examples/*
|
||||
perl -pi -e 's|^#!/usr/local/bin/perl\b|#!/usr/bin/perl|' \
|
||||
examples/lzcat examples/lzstream examples/xzcat examples/xzstream
|
||||
|
||||
# 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
|
||||
make %{?_smp_mflags}
|
||||
@ -84,6 +107,15 @@ make %{?_smp_mflags}
|
||||
make pure_install DESTDIR=%{buildroot}
|
||||
find %{buildroot} -type f -name .packlist -delete
|
||||
%{_fixperms} -c %{buildroot}
|
||||
# Install tests
|
||||
mkdir -p %{buildroot}%{_libexecdir}/%{name}
|
||||
cp -a t %{buildroot}%{_libexecdir}/%{name}
|
||||
cp -a examples %{buildroot}%{_libexecdir}/%{name}
|
||||
cat > %{buildroot}%{_libexecdir}/%{name}/test << 'EOF'
|
||||
#!/bin/sh
|
||||
cd %{_libexecdir}/%{name} && exec prove -I . -j "$(getconf _NPROCESSORS_ONLN)"
|
||||
EOF
|
||||
chmod +x %{buildroot}%{_libexecdir}/%{name}/test
|
||||
|
||||
%check
|
||||
make test COMPRESS_ZLIB_RUN_MOST=1
|
||||
@ -98,7 +130,85 @@ make test COMPRESS_ZLIB_RUN_MOST=1
|
||||
%{_mandir}/man3/IO::Uncompress::UnLzma.3*
|
||||
%{_mandir}/man3/IO::Uncompress::UnXz.3*
|
||||
|
||||
%files tests
|
||||
%{_libexecdir}/%{name}
|
||||
|
||||
%changelog
|
||||
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 2.206-7
|
||||
- Bump release for October 2024 mass rebuild:
|
||||
Resolves: RHEL-64018
|
||||
|
||||
* Mon Aug 26 2024 Jitka Plesnikova <jplesnik@redhat.com> - 2.206-6
|
||||
- Fix filters of dependencies
|
||||
|
||||
* Fri Jul 12 2024 Michal Josef Špaček <mspacek@redhat.com> - 2.206-5
|
||||
- Package tests
|
||||
|
||||
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 2.206-4
|
||||
- Bump release for June 2024 mass rebuild
|
||||
|
||||
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.206-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||
|
||||
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.206-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||
|
||||
* Wed Jul 26 2023 Paul Howarth <paul@city-fan.org> - 2.206-1
|
||||
- Update to 2.206
|
||||
- Drop rt.cpan.org from SUPPORT section
|
||||
|
||||
* 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
|
||||
- Add perl 5.38 to CI matrix
|
||||
- Add on workflow_dispatch
|
||||
- Add some OO examples
|
||||
|
||||
* Thu Feb 9 2023 Paul Howarth <paul@city-fan.org> - 2.204-1
|
||||
- Update to 2.204 (no functional changes)
|
||||
- Use SPDX-format license tag
|
||||
|
||||
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.201-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
||||
|
||||
* 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-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||
|
||||
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.101-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
||||
|
||||
* Fri May 21 2021 Jitka Plesnikova <jplesnik@redhat.com> - 2.101-3
|
||||
- Perl 5.34 rebuild
|
||||
|
||||
* Fri Mar 19 2021 Jitka Plesnikova <jplesnik@redhat.com> - 2.101-2
|
||||
- Disable optional tests on ELN
|
||||
|
||||
* Sat Feb 20 2021 Paul Howarth <paul@city-fan.org> - 2.101-1
|
||||
- Update to 2.101 (no changes)
|
||||
|
||||
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.100-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||
|
||||
* Thu Jan 7 2021 Paul Howarth <paul@city-fan.org> - 2.100-1
|
||||
- Update to 2.100
|
||||
- Trim whitespace
|
||||
- Avoid indirect calls
|
||||
- Fix typo
|
||||
|
||||
* Sat Aug 1 2020 Paul Howarth <paul@city-fan.org> - 2.096-1
|
||||
- Update to 2.096
|
||||
- Add test for Zip with XZ compression
|
||||
Loading…
Reference in New Issue
Block a user