# Detect the distribution in use %global __despace head -n 1 | tr -d '[:space:]' | sed -e 's/[(].*[)]//g' %global __lower4 cut -c 1-4 | tr '[:upper:]' '[:lower:]' %global __distfile %([ -f /etc/SuSE-release ] && echo /etc/SuSE-release || echo /etc/redhat-release) %global __distinit %(sed -e 's/ release .*//' -e 's/\\([A-Za-z]\\)[^ ]*/\\1/g' %{__distfile} | %{__despace} | %{__lower4}) %global __distvers %(sed -e 's/.* release \\([^. ]*\\).*/\\1/' %{__distfile} | %{__despace}) # Identify Alma, CentOS, CentOS Stream and Rocky Linux as rhel %if "%{__distinit}" == "a" || "%{__distinit}" == "c" || "%{__distinit}" == "cl" || "%{__distinit}" == "cs" || "%{__distinit}" == "rl" %global __distinit rhel %endif # Dist tag for Fedora is still "fc" %if "%{__distinit}" == "f" %global __distinit fc %endif Name: perl-Compress-Raw-Bzip2 Summary: Low-level interface to bzip2 compression library Version: 2.213 Release: 1.%{__distinit}%{__distvers} License: GPL-1.0-or-later OR Artistic-1.0-Perl URL: https://metacpan.org/release/Compress-Raw-Bzip2 Source0: https://cpan.metacpan.org/modules/by-module/Compress/Compress-Raw-Bzip2-%{version}.tar.gz # Module Build BuildRequires: bzip2-devel BuildRequires: coreutils BuildRequires: findutils BuildRequires: gcc BuildRequires: make BuildRequires: perl-devel BuildRequires: perl-generators BuildRequires: perl-interpreter BuildRequires: perl(Config) BuildRequires: perl(ExtUtils::Constant) BuildRequires: perl(ExtUtils::MakeMaker) >= 5.16 BuildRequires: perl(File::Copy) BuildRequires: perl(File::Spec::Functions) BuildRequires: perl(lib) # Module Runtime BuildRequires: perl(bytes) BuildRequires: perl(Carp) BuildRequires: perl(constant) BuildRequires: perl(Exporter) BuildRequires: perl(strict) BuildRequires: perl(warnings) BuildRequires: perl(XSLoader) # Test Suite BuildRequires: perl(File::Path) BuildRequires: perl(File::Temp) BuildRequires: perl(overload) BuildRequires: perl(Scalar::Util) # Dual-lived module needs rebuilding early in the boot process %if 0%{!?perl_bootstrap:1} BuildRequires: perl(Test::CPAN::Meta) BuildRequires: perl(Test::CPAN::Meta::JSON) BuildRequires: perl(Test::NoWarnings) BuildRequires: perl(Test::Pod) >= 1.00 %endif BuildRequires: perl(threads::shared) # Dependencies %if 0%{?fedora} < 38 && 0%{?rhel} < 10 Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) %endif Requires: perl(XSLoader) # Don't "provide" private Perl libs %{?perl_default_filter} %description This module provides a Perl interface to the bzip2 compression library. It is used by IO::Compress::Bzip2. %prep %setup -q -n Compress-Raw-Bzip2-%{version} %build BUILD_BZIP2=0 BZIP2_LIB=%{_libdir} export BUILD_BZIP2 BZIP2_LIB perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" make %{?_smp_mflags} %install make pure_install DESTDIR=%{buildroot} find %{buildroot} -type f -name .packlist -delete find %{buildroot} -type f -name '*.bs' -empty -delete %{_fixperms} -c %{buildroot} %check make test %files %doc Changes README %{perl_vendorarch}/auto/Compress/ %{perl_vendorarch}/Compress/ %{_mandir}/man3/Compress::Raw::Bzip2.3* %changelog * Thu Aug 29 2024 Paul Howarth - 2.213-1 - Update to 2.213 - Silence unused variable warnings * Wed Jun 12 2024 Paul Howarth - 2.212-511 - Perl 5.40 rebuild * Sun Apr 28 2024 Paul Howarth - 2.212-1 - Update to 2.212 (no changes, rhbz#2277505) * Sun Apr 7 2024 Paul Howarth - 2.211-1 - Update to 2.211 (no changes, rhbz#2273784) * Mon Feb 26 2024 Paul Howarth - 2.210-1 - Update to 2.210 - Fix Changes for 2.209 * Wed Feb 21 2024 Paul Howarth - 2.209-1 - Update to 2.209 - Fix for READMEmd target - BUILD_BZIP2 default should be true (GH#14) * Wed Jul 26 2023 Paul Howarth - 2.206-1 - Update to 2.206 - Drop rt.cpan.org from SUPPORT section * Mon Jul 17 2023 Paul Howarth - 2.205-1 - Update to 2.205 - Test::More::isn't warns in perl 5.38 - Add perl 5.38 and run cron for upstream repos - Add on workflow_dispatch - Fix to allow building with register keyword not allowed in C++17 (GH#11) - Silence warnings on HPUX (GH#10) * Tue Jul 11 2023 Paul Howarth - 2.204-499 - Perl 5.38 rebuild * Thu Feb 9 2023 Paul Howarth - 2.204-1 - Update to 2.204 - Trim trailing spaces from bzip2-src - Typo fixes - Use GIMME_V instead of GIMME - Cast isdigit argument as unsigned char - Use SPDX-format license tag * Sat Jun 25 2022 Paul Howarth - 2.201-1 - Update to 2.201 (no functional changes) * Tue May 31 2022 Paul Howarth - 2.103-488 - Perl 5.36 rebuild * Mon Apr 4 2022 Paul Howarth - 2.103-1 - Update to 2.103 - Silence uninitialized warnings (GH#5) * Fri May 21 2021 Paul Howarth - 2.101-477 - Perl 5.34 rebuild * Sat Feb 20 2021 Paul Howarth - 2.101-1 - Update to 2.101 (no changes) * Thu Jan 7 2021 Paul Howarth - 2.100-1 - Update to 2.100 - Trim whitespace * Sat Aug 1 2020 Paul Howarth - 2.096-1 - Update to 2.096 (no changes) * Tue Jul 21 2020 Paul Howarth - 2.095-1 - Update to 2.095 (no changes) * Mon Jul 13 2020 Paul Howarth - 2.094-1 - Update to 2.094 - Fix issue with Append mode and SvOOK (GH#2) * Wed Jun 24 2020 Paul Howarth - 2.093-456 - Perl 5.32 rebuild * Sun Dec 8 2019 Paul Howarth - 2.093-1 - Update to 2.093 (no changes) * Thu Dec 5 2019 Paul Howarth - 2.092-1 - Update to 2.092 (no changes) * Sat Nov 23 2019 Paul Howarth - 2.091-1 - Update to 2.091 - Silence compiler warnings (GH#1) * Sun Nov 10 2019 Paul Howarth - 2.090-1 - Update to 2.090 (no changes) * Sun Nov 3 2019 Paul Howarth - 2.089-1 - Update to 2.089 (no changes) * Sun Nov 3 2019 Paul Howarth - 2.088-1 - Update to 2.088 - Add support details in documentation - Update bundled bzip2 from 1.0.6 to 1.0.8; note that this perl module is built against the system bzip2 library and does not use the bundled version * Mon Aug 12 2019 Paul Howarth - 2.087-1 - Update to 2.087 (no changes) * Thu May 30 2019 Paul Howarth - 2.086-2 - Perl 5.30 rebuild * Mon Apr 1 2019 Paul Howarth - 2.086-1 - Update to 2.086 - Moved source to github: https://github.com/pmqs/Compress-Raw-Bzip2 - Add META_MERGE to Makefile.PL - Added meta-json.t and meta-yaml.t * Mon Jan 7 2019 Paul Howarth - 2.084-1 - Update to 2.084 (no changes) * Wed Jan 2 2019 Paul Howarth - 2.083-1 - Update to 2.083 (no changes) * Wed Jun 27 2018 Paul Howarth - 2.081-2 - Perl 5.28 rebuild * Mon Apr 9 2018 Paul Howarth - 2.081-1 - Update to 2.081 - Previous release used $^W instead of use warnings - fixed * Wed Apr 4 2018 Paul Howarth - 2.080-1 - Update to 2.080 (no changes) * Tue Aug 8 2017 Paul Howarth - 2.074-396 - BR: perl-generators unconditionally - BR: perl-interpreter rather than perl * Mon Jun 12 2017 Paul Howarth - 2.074-2 - Drop support for EOL distributions prior to F-13 - Drop BuildRoot: and Group: tags - Drop explicit buildroot cleaning in %%install section - Drop explicit %%clean section - BR: perl-devel unconditionally * Mon Feb 20 2017 Paul Howarth - 2.074-1 - Update to 2.074 (test changes only) * Mon Feb 13 2017 Paul Howarth - 2.072-1 - Update to 2.072 - Fix for Makefile.PL depending on . in @INC (CPAN RT#120084) * Thu Dec 29 2016 Paul Howarth - 2.070-1 - Update to 2.070 - Fix wrong APPEND_OUTPUT logic (CPAN RT#119005, CPAN RT#119141) - Fix some gcc warnings (CPAN RT#100817, CPAN RT#105647) * Tue Aug 9 2016 Paul Howarth - 2.069-366 - BR: perl-generators where available - Simplify find commands using -empty and -delete * Sun Sep 27 2015 Paul Howarth - 2.069-1 - Update to 2.069 - Reduce compiler warnings and stderr noise (CPAN RT#101340) - consting misc tables (CPAN RT#101296) * Wed Dec 24 2014 Paul Howarth - 2.068-1 - Update to 2.068 (no changes) * Tue Dec 9 2014 Paul Howarth - 2.067-1 - Update to 2.067 (silence compiler warnings) - Classify buildreqs by usage * Mon Sep 22 2014 Paul Howarth - 2.066-1 - Update to 2.066 (no changes) * Wed Sep 3 2014 Paul Howarth - 2.064-310 - Increase release to favour standalone package * Thu Aug 28 2014 Paul Howarth - 2.064-4 - Drop %%defattr, redundant since rpm 4.4 * Sun Feb 2 2014 Paul Howarth - 2.064-1 - Update to 2.064 - Handle non-PVs better (CPAN RT#91558) * Sun Nov 3 2013 Paul Howarth - 2.063-1 - Update to 2.063 - gcc -g3: final link failed: Memory exhausted (CPAN RT#88936) * Mon Aug 12 2013 Paul Howarth - 2.062-1 - Update to 2.062 (no changes) * Tue Jul 16 2013 Paul Howarth - 2.061-2 - Perl 5.18 rebuild * Mon May 27 2013 Paul Howarth - 2.061-1 - Update to 2.061 - Silence compiler warning by making 2nd parameter to DispStream a const char* * Tue Jan 8 2013 Paul Howarth - 2.060-1 - Update to 2.060 (no changes) * Sun Nov 25 2012 Paul Howarth - 2.059-1 - Update to 2.059 - Copy-on-write support (CPAN RT#81352) * Tue Nov 13 2012 Paul Howarth - 2.058-1 - Update to 2.058 (no changes) * Sat Nov 10 2012 Paul Howarth - 2.057-1 - Update to 2.057 - Compress::Raw::Bzip2 needs to use PERL_NO_GET_CONTEXT (CPAN RT#80318) - Install to 'site' instead of 'perl' when perl version is 5.11+ (CPAN RT#79811) - Update to ppport.h that includes SvPV_nomg_nolen (CPAN RT#78080) * Mon Aug 6 2012 Paul Howarth - 2.055-1 - Update to 2.055 - Fix misuse of magic in API (CPAN RT#78080) * Tue Jun 19 2012 Paul Howarth - 2.052-3 - BR: Perl core modules that might be dual-lived; the module requires one of either XSLoader or DynaLoader but prefers the former so we BR:/R: that * Sun Apr 29 2012 Paul Howarth - 2.052-1 - Update to 2.052 (no changes) - Don't need to remove empty directories from buildroot - Drop support for old distributions prior to FC-3: - Don't need to define %%{perl_vendorarch} - Use %%{_fixperms} macro rather than our own chmod incantation - Use DESTDIR rather than PERL_INSTALL_ROOT - Drop RPATH hack * Sat Feb 18 2012 Paul Howarth - 2.049-1 - Update to 2.049 (no changes) * Sun Jan 29 2012 Paul Howarth - 2.048-1 - Update to 2.048 (no changes) * Sun Jan 29 2012 Paul Howarth - 2.047-1 - Update to 2.047 (set minimum Perl version to 5.6) * Sun Dec 4 2011 Paul Howarth - 2.045-1 - Update to 2.045 - Moved FAQ.pod to IO::Compress * Sun Dec 4 2011 Paul Howarth - 2.044-1 - Update to 2.044 - Moved FAQ.pod under the lib directory so it can get installed * Mon Nov 21 2011 Paul Howarth - 2.043-1 - Update to 2.043 (no changes) * Fri Nov 18 2011 Paul Howarth - 2.042-1 - Update to 2.042 (no changes) * Sat Oct 29 2011 Paul Howarth - 2.040-1 - Update to 2.040 (no changes) * Fri Oct 28 2011 Paul Howarth - 2.039-1 - Update to 2.039 - Croak if attempt to freeze/thaw compression object (CPAN RT#69985) - BR: perl(Carp) * Wed Jun 22 2011 Paul Howarth - 2.037-2 - Rebuild for perl 5.14.1 in Rawhide - Fix dist tag for CentOS 6 and Scientific Linux * Wed Jun 22 2011 Paul Howarth - 2.037-1 - Update to 2.037 (no changes) * Mon Jun 20 2011 Paul Howarth - 2.036-1 - Update to 2.036 (no changes) * Sat May 7 2011 Paul Howarth - 2.035-1 - Update to 2.035 (no changes) * Tue May 3 2011 Paul Howarth - 2.034-1 - Update to 2.034 - Some changes to tests - Nobody else likes macros for commands * Tue Jan 11 2011 Paul Howarth - 2.033-1 - Update to 2.033 (fixed typos and spelling errors - Perl RT#81782) * Fri Jan 7 2011 Paul Howarth - 2.032-1 - Update to 2.032 (no changes) * Fri Oct 1 2010 Paul Howarth - 2.031-2 - Rebuild for gcc bug (#634757) * Wed Sep 22 2010 Paul Howarth - 2.031-1 - Update to 2.031 (updated to use bzip2 1.0.6) * Mon Jul 26 2010 Paul Howarth - 2.030-1 - Update to 2.030 (no changes) * Wed Jun 23 2010 Paul Howarth - 2.027-3 - Rebuild for perl 5.12.1 in Rawhide * Sat Jun 5 2010 Paul Howarth - 2.027-2 - Fix dist tag for RHEL-6 Beta * Mon Apr 26 2010 Paul Howarth - 2.027-1 - Update to 2.027 (no changes) * Thu Apr 8 2010 Paul Howarth - 2.026-1 - Update to 2.026 (no changes) * Sun Mar 28 2010 Paul Howarth - 2.025-1 - Update to 2.025 (documented the unused "verbosity" option in Compress::Raw::Bunzip2::new - CPAN RT#54425) * Mon Jan 11 2010 Paul Howarth - 2.024-1 - Update to 2.024 (copyright dates updated; no functional changes) * Mon Dec 21 2009 Paul Howarth - 2.023-2 - Dist tag for Rawhide no longer needs special-casing * Tue Nov 10 2009 Paul Howarth - 2.023-1 - Update to 2.023 - remove redundant bzip2 source - fix t/01bzip2.t (CPAN RT#50764) - Use %%{?perl_default_filter} for provides filter * Mon Aug 31 2009 Paul Howarth - 2.021-1 - Update to 2.021 (fix CPAN RT#47225 - cope with PERL5OPT=-MCarp=verbose) * Thu Jun 4 2009 Paul Howarth - 2.020-1 - Update to 2.020 (cosmetic changes only) * Mon May 4 2009 Paul Howarth - 2.019-1 - Import from Fedora - Update to 2.019 * Thu Feb 26 2009 Fedora Release Engineering - 2.005-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Wed Mar 5 2008 Tom "spot" Callaway - 2.005-5 - Rebuild for new perl * Tue Feb 19 2008 Fedora Release Engineering - 2.005-4 - Autorebuild for GCC 4.3 * Fri Aug 24 2007 Robin Norwood - 2.005-3 - Update license tag. * Tue Jul 17 2007 Robin Norwood - 2.005-2 - Bump release to beat F-7 version * Sun Jul 01 2007 Steven Pritchard 2.005-1 - Update to 2.005. - Build against system libbz2 (#246401). * Tue Jun 05 2007 Robin Norwood - 2.004-1 - Initial build from CPAN