Compare commits

...

33 Commits
master ... main

Author SHA1 Message Date
Fedora Release Engineering
a658b39544 Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-07-20 20:15:38 +00:00
Jitka Plesnikova
8291e5404f Perl 5.38 re-rebuild of bootstrapped packages 2023-07-12 14:27:57 +02:00
Jitka Plesnikova
1b8760cfeb Perl 5.38 rebuild 2023-07-11 16:14:28 +02:00
Fedora Release Engineering
5cf3cda690 Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-01-20 00:52:47 +00:00
Jitka Plesnikova
11c1b43504 Remove perl(MODULE_COMPAT), it will be replaced by generators 2023-01-13 11:25:11 +01:00
Michal Josef Špaček
730e174fa5 Package tests 2022-11-28 11:58:56 +01:00
Michal Josef Špaček
967a0a35b3 Cleanup build in spec file 2022-11-25 12:50:06 +01:00
Michal Josef Špaček
8f2e3df2df Update license to SPDX format 2022-11-25 12:43:39 +01:00
Fedora Release Engineering
21b0082519 Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-07-22 04:13:17 +00:00
Jitka Plesnikova
fb8c7815d0 Perl 5.36 re-rebuild of bootstrapped packages 2022-06-03 12:43:00 +02:00
Jitka Plesnikova
d3665f4891 Perl 5.36 rebuild 2022-05-30 19:24:27 +02:00
Fedora Release Engineering
6004765a1f - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-01-21 00:19:16 +00:00
Fedora Release Engineering
6721ac49fe - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-07-22 19:02:27 +00:00
Jitka Plesnikova
4f02c2f566 Perl 5.34 re-rebuild of bootstrapped packages 2021-05-24 10:01:24 +02:00
Jitka Plesnikova
22d2b9b272 Perl 5.34 rebuild 2021-05-21 12:40:23 +02:00
Fedora Release Engineering
628c362919 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-01-27 00:09:49 +00:00
Petr Písař
028a424d8d A comment on an OFL license 2020-08-24 15:50:32 +02:00
Fedora Release Engineering
c53ce19743 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-07-28 14:25:26 +00:00
Petr Písař
9be45c2443 2.28 bump 2020-07-20 16:16:40 +02:00
Jitka Plesnikova
0dff3045b1 Perl 5.32 re-rebuild of bootstrapped packages 2020-06-26 16:50:33 +02:00
Jitka Plesnikova
e1771d752b Perl 5.32 rebuild 2020-06-22 19:19:42 +02:00
Petr Písař
c4b2c360f5 A dummy release to overcome a Koji failure 2020-05-27 18:00:23 +02:00
Petr Písař
e03d2d24b5 Do not build-required unused sed 2020-05-27 15:40:36 +02:00
Petr Písař
d4c83f1656 Correct editting MANIFEST 2020-05-27 15:35:39 +02:00
Petr Písař
9738de991b 2.27 bump 2020-05-27 15:27:24 +02:00
Petr Písař
8e85f55edf NO_PERLLOCAL=1 needs a recent ExtUtils::MakeMaker 2020-02-04 09:44:18 +01:00
Jitka Plesnikova
b13eda4037 Use make_install macro 2020-02-04 09:09:10 +01:00
Tom Stellard
9cc5364018 Use make_build macro
https://docs.fedoraproject.org/en-US/packaging-guidelines/#_parallel_make
2020-02-04 01:13:45 +00:00
Fedora Release Engineering
2c851184ee - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-01-29 22:33:48 +00:00
Fedora Release Engineering
5c80f0a8c6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-07-26 01:29:58 +00:00
Jitka Plesnikova
90e900337d Perl 5.30 re-rebuild of bootstrapped packages 2019-06-02 22:53:37 +02:00
Jitka Plesnikova
ef1e2ad1d9 Perl 5.30 rebuild 2019-05-30 13:31:31 +02:00
Fedora Release Engineering
93a8aa9eb8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-02-01 19:20:24 +00:00
8 changed files with 164 additions and 16 deletions

1
.fmf/version Normal file
View File

@ -0,0 +1 @@
1

2
.gitignore vendored
View File

@ -11,3 +11,5 @@ Compress-Bzip2-2.09.tar.gz
/Compress-Bzip2-2.24.tar.gz
/Compress-Bzip2-2.25.tar.gz
/Compress-Bzip2-2.26.tar.gz
/Compress-Bzip2-2.27.tar.gz
/Compress-Bzip2-2.28.tar.gz

7
gating.yaml Normal file
View File

@ -0,0 +1,7 @@
--- !Policy
product_versions:
- fedora-*
decision_context: bodhi_update_push_stable
subject_type: koji_build
rules:
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.tier0.functional}

View File

@ -0,0 +1,2 @@
from Config import *
addFilter("-tests.noarch: W: no-documentation");

View File

@ -6,31 +6,32 @@
%endif
Name: perl-Compress-Bzip2
Version: 2.26
Release: 9%{?dist}
Version: 2.28
Release: 15%{?dist}
Summary: Interface to Bzip2 compression library
# bzlib-src/win-tst-dlltest.c (unbundled): Public Domain
# bzlib-src/LICENSE (unbundled): BSD
# bzlib-src/manual.ps (unbundled): GPL+ with exception
# other files: GPL+ or Artistic
License: GPL+ or Artistic
# bzlib-src/LICENSE (unbundled): BSD-4-Clause
# bzlib-src/manual.ps (unbundled): GPL+ with exception and OFL
# other files: GPL-1.0-or-later OR Artistic-1.0-Perl
License: GPL-1.0-or-later OR Artistic-1.0-Perl
URL: https://metacpan.org/release/Compress-Bzip2
Source0: https://cpan.metacpan.org/authors/id/R/RU/RURBAN/Compress-Bzip2-%{version}.tar.gz
BuildRequires: bzip2-devel >= 1.0.5
BuildRequires: coreutils
BuildRequires: findutils
BuildRequires: gcc
BuildRequires: make
BuildRequires: perl-interpreter
BuildRequires: perl-devel
BuildRequires: perl-generators
BuildRequires: perl-interpreter
BuildRequires: perl(:VERSION) >= 5.8.1
BuildRequires: perl(Config)
BuildRequires: perl(File::Copy)
BuildRequires: perl(File::Spec)
BuildRequires: perl(File::Spec::Functions)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
BuildRequires: perl(strict)
# VMS::Filespec not needed
BuildRequires: sed
# Run-time:
BuildRequires: perl(AutoLoader)
BuildRequires: perl(Carp)
@ -49,7 +50,6 @@ BuildRequires: perl(Test::More)
%if !%{defined perl_bootstrap} && %{with perl_Compress_Bzip2_enables_optional_test}
BuildRequires: perl(Test::LeakTrace)
%endif
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires: perl(constant) >= 1.04
%{?perl_default_filter}
@ -62,20 +62,63 @@ library. A relevant subset of the functionality provided by Bzip2 is available
in Compress::Bzip2. Compress::Bzip2 is not well integrated into PerlIO, use
the preferred IO::Compress::Bzip2 instead.
%package tests
Summary: Tests for %{name}
BuildArch: noarch
Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
Requires: bash
Requires: bzip2
Requires: coreutils
Requires: perl-Test-Harness
%description tests
Tests from %{name}. Execute them
with "%{_libexecdir}/%{name}/test".
%prep
%setup -q -n Compress-Bzip2-%{version}
# Remove bundled bzip2 library
find bzlib-src -mindepth 1 -type f \! -name 'sample*' -delete
sed -i -e '/^bzlib-src\//d' MANIFEST
perl -i -ne 'print $_ unless m{^bzlib-src/}' MANIFEST
find bzlib-src -type f >>MANIFEST
# Help generators to recognize Perl scripts
for F in t/*.t; do
perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!\s*perl}{$Config{startperl}}' "$F"
chmod +x "$F"
done
%build
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 OPTIMIZE="$RPM_OPT_FLAGS"
make %{?_smp_mflags}
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 \
OPTIMIZE="$RPM_OPT_FLAGS"
%make_build
%install
make pure_install DESTDIR=%{buildroot}
find %{buildroot} -type f -name '*.bs' -empty -delete
%make_install
# Install tests
mkdir -p %{buildroot}/%{_libexecdir}/%{name}
cp -a t %{buildroot}/%{_libexecdir}/%{name}
# Remove author tests
rm -f %{buildroot}/%{_libexecdir}/%{name}/t/900*
# Remove memory usage test
rm -f %{buildroot}/%{_libexecdir}/%{name}/t/090-memory-usage.pl
mkdir -p %{buildroot}/%{_libexecdir}/%{name}/bzlib-src
for F in sample0.bz2 sample0.ref sample1.bz2 sample1.ref sample2.bz2 sample2.ref sample3.bz2 sample3.ref; do
cp "bzlib-src/$F" %{buildroot}/%{_libexecdir}/%{name}/bzlib-src/
done
cp -a config.in %{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
%{_fixperms} %{buildroot}
%check
@ -88,7 +131,91 @@ make test
%{perl_vendorarch}/auto/Compress/
%{_mandir}/man3/*.3pm*
%files tests
%{_libexecdir}/%{name}
%changelog
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.28-15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Wed Jul 12 2023 Jitka Plesnikova <jplesnik@redhat.com> - 2.28-14
- Perl 5.38 re-rebuild of bootstrapped packages
* Tue Jul 11 2023 Jitka Plesnikova <jplesnik@redhat.com> - 2.28-13
- Perl 5.38 rebuild
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.28-12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Fri Nov 25 2022 Michal Josef Špaček <mspacek@redhat.com> - 2.28-11
- Cleanup build in spec file
- Package tests
- Update license to SPDX format
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.28-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Fri Jun 03 2022 Jitka Plesnikova <jplesnik@redhat.com> - 2.28-9
- Perl 5.36 re-rebuild of bootstrapped packages
* Mon May 30 2022 Jitka Plesnikova <jplesnik@redhat.com> - 2.28-8
- Perl 5.36 rebuild
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.28-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.28-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Mon May 24 2021 Jitka Plesnikova <jplesnik@redhat.com> - 2.28-5
- Perl 5.34 re-rebuild of bootstrapped packages
* Fri May 21 2021 Jitka Plesnikova <jplesnik@redhat.com> - 2.28-4
- Perl 5.34 rebuild
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.28-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.28-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Mon Jul 20 2020 Petr Pisar <ppisar@redhat.com> - 2.28-1
- 2.28 bump
* Fri Jun 26 2020 Jitka Plesnikova <jplesnik@redhat.com> - 2.27-4
- Perl 5.32 re-rebuild of bootstrapped packages
* Mon Jun 22 2020 Jitka Plesnikova <jplesnik@redhat.com> - 2.27-3
- Perl 5.32 rebuild
* Wed May 27 2020 Petr Pisar <ppisar@redhat.com> - 2.27-2
- A dummy release to overcome a Koji failure
* Wed May 27 2020 Petr Pisar <ppisar@redhat.com> - 2.27-1
- 2.27 bump
* Tue Feb 04 2020 Petr Pisar <ppisar@redhat.com> - 2.26-16
- NO_PERLLOCAL=1 needs a recent ExtUtils::MakeMaker
* Tue Feb 04 2020 Tom Stellard <tstellar@redhat.com> - 2.26-15
- Use make_build macro
- https://docs.fedoraproject.org/en-US/packaging-guidelines/#_parallel_make
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.26-14
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.26-13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Sun Jun 02 2019 Jitka Plesnikova <jplesnik@redhat.com> - 2.26-12
- Perl 5.30 re-rebuild of bootstrapped packages
* Thu May 30 2019 Jitka Plesnikova <jplesnik@redhat.com> - 2.26-11
- Perl 5.30 rebuild
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.26-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.26-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild

5
plans/sanity.fmf Normal file
View File

@ -0,0 +1,5 @@
summary: Sanity tests
discover:
how: fmf
execute:
how: tmt

View File

@ -1 +1 @@
SHA512 (Compress-Bzip2-2.26.tar.gz) = be1670303496a9f48989777468234d52276b34e6c0fdb6e99d2199134f353f1ee32e0489a3797ab3a2d4777bb5f03f78dff39f3bf75b8cc511b754da2b7e4959
SHA512 (Compress-Bzip2-2.28.tar.gz) = 3b00eab4cec4ec62c2b590dc63e92b4f167407edcee3bdb6581d570bc82c47b6152eb0f21a8b748ac49e87c89a1b99358785609e8f832da16107b6cdc4d9e852

4
tests/upstream-tests.fmf Normal file
View File

@ -0,0 +1,4 @@
summary: Upstream tests
component: perl-Compress-Bzip2
require: perl-Compress-Bzip2-tests
test: /usr/libexec/perl-Compress-Bzip2/test