# 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-Perl-Destruct-Level Summary: Allows you to change perl's internal destruction level Version: 0.02 Release: 40.%{__distinit}%{__distvers} License: GPL-1.0-or-later OR Artistic-1.0-Perl URL: https://metacpan.org/release/Perl-Destruct-Level Source0: https://cpan.metacpan.org/modules/by-module/Perl/Perl-Destruct-Level-%{version}.tar.gz # Module Build BuildRequires: coreutils BuildRequires: findutils BuildRequires: gcc BuildRequires: make BuildRequires: perl-devel BuildRequires: perl-generators BuildRequires: perl-interpreter BuildRequires: perl(ExtUtils::MakeMaker) # Module Runtime BuildRequires: perl(strict) BuildRequires: perl(warnings) BuildRequires: perl(XSLoader) # Test Suite BuildRequires: perl(Test::More) # Dependencies %if 0%{?fedora} < 38 && 0%{?rhel} < 10 Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) %endif # Don't "provide" private Perl libs %{?perl_default_filter} %description This module allows you to change perl's internal destruction level. The default value of the destruct level is 0; it means that perl won't bother destroying all of its internal data structures and lets the OS do the cleanup for it at exit. For perls built with debugging support (-DDEBUGGING), an environment variable PERL_DESTRUCT_LEVEL allows you to control the destruction level. This module enables you to modify it on non-debugging perls too. Note that some embedded environments might extend the meaning of the destruction level for their own purposes: mod_perl does that, for example. %prep %setup -q -n Perl-Destruct-Level-%{version} %build 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 %{perl_vendorarch}/auto/Perl/ %{perl_vendorarch}/Perl/ %{_mandir}/man3/Perl::Destruct::Level.3* %changelog * Wed Jun 12 2024 Paul Howarth - 0.02-40 - Perl 5.40 rebuild * Tue Jul 11 2023 Paul Howarth - 0.02-36 - Perl 5.38 rebuild * Wed May 10 2023 Paul Howarth - 0.02-35 - Use SPDX-format license tag * Tue May 31 2022 Paul Howarth - 0.02-33 - Perl 5.36 rebuild * Fri May 21 2021 Paul Howarth - 0.02-30 - Perl 5.34 rebuild * Wed Jun 24 2020 Paul Howarth - 0.02-27 - Perl 5.32 rebuild * Thu May 30 2019 Paul Howarth - 0.02-24 - Perl 5.30 rebuild * Wed Jun 27 2018 Paul Howarth - 0.02-21 - Perl 5.28 rebuild * Mon Aug 7 2017 Paul Howarth - 0.02-19 - BR: perl-generators unconditionally - BR: perl-interpreter rather than perl * Sun Jun 4 2017 Paul Howarth - 0.02-17 - 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 * Tue Sep 20 2016 Paul Howarth - 0.02-15 - Classify buildreqs by usage - Simplify find commands using -empty and -delete - Drop %%defattr, redundant since rpm 4.4 * Mon Jul 22 2013 Paul Howarth - 0.02-6 - Perl 5.18 rebuild * Mon Jun 11 2012 Paul Howarth - 0.02-3 - Perl 5.16 rebuild * Mon Mar 12 2012 Paul Howarth - 0.02-1 - Initial RPM version