# 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-Dir-Self Version: 0.11 Release: 29.%{__distinit}%{__distvers} Summary: A __DIR__ constant for the directory your source file is in License: GPL-1.0-or-later OR Artistic-1.0-Perl URL: https://metacpan.org/release/Dir-Self Source0: https://cpan.metacpan.org/modules/by-module/Dir/Dir-Self-%{version}.tar.gz BuildArch: noarch # Module Build BuildRequires: coreutils BuildRequires: findutils BuildRequires: make BuildRequires: perl-generators BuildRequires: perl-interpreter BuildRequires: perl(ExtUtils::MakeMaker) # Module Runtime BuildRequires: perl(Carp) BuildRequires: perl(File::Spec) BuildRequires: perl(strict) # Test Suite BuildRequires: perl(lib) BuildRequires: perl(Test::More) # Dependencies %if 0%{?fedora} < 38 && 0%{?rhel} < 10 Requires: perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version)) %endif Requires: perl(Carp) %description Perl has two pseudo-constants describing the current location in your source code, __FILE__ and __LINE__. This module adds __DIR__, which expands to the directory your source file is in, as an absolute pathname. %prep %setup -q -n Dir-Self-%{version} %build perl Makefile.PL INSTALLDIRS=vendor make %{?_smp_mflags} %install make pure_install DESTDIR=%{buildroot} find %{buildroot} -type f -name .packlist -delete %{_fixperms} -c %{buildroot} %check make test %files %doc Changes README %{perl_vendorlib}/Dir/ %{_mandir}/man3/Dir::Self.3* %changelog * Mon Jan 20 2025 Paul Howarth - 0.11-29 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Fri Jul 19 2024 Paul Howarth - 0.11-28 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Sun Jul 16 2023 Paul Howarth - 0.11-24 - Use SPDX-format license tag * Tue Mar 12 2019 Paul Howarth - 0.11-13 - Import from Fedora * Fri Feb 01 2019 Fedora Release Engineering - 0.11-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Fri Jul 13 2018 Fedora Release Engineering - 0.11-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Wed Jun 27 2018 Jitka Plesnikova - 0.11-10 - Perl 5.28 rebuild * Thu Feb 08 2018 Fedora Release Engineering - 0.11-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 0.11-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sun Jun 04 2017 Jitka Plesnikova - 0.11-7 - Perl 5.26 rebuild * Sat Feb 11 2017 Fedora Release Engineering - 0.11-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Sun May 15 2016 Jitka Plesnikova - 0.11-5 - Perl 5.24 rebuild * Thu Feb 04 2016 Fedora Release Engineering - 0.11-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Thu Jun 18 2015 Fedora Release Engineering - 0.11-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Wed Jun 03 2015 Jitka Plesnikova - 0.11-2 - Perl 5.22 rebuild * Thu Nov 20 2014 Petr Šabata - 0.11-1 - 0.11 bump * Tue Aug 26 2014 Jitka Plesnikova - 0.10-12 - Perl 5.20 rebuild * Sat Jun 07 2014 Fedora Release Engineering - 0.10-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sat Aug 03 2013 Fedora Release Engineering - 0.10-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Wed Jul 17 2013 Petr Pisar - 0.10-9 - Perl 5.18 rebuild * Thu Feb 14 2013 Fedora Release Engineering - 0.10-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Fri Jul 20 2012 Fedora Release Engineering - 0.10-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Fri Jun 08 2012 Petr Pisar - 0.10-6 - Perl 5.16 rebuild * Fri Jan 13 2012 Fedora Release Engineering - 0.10-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Fri Jun 17 2011 Marcela Mašláňová - 0.10-4 - Perl mass rebuild * Thu Dec 16 2010 Marcela Maslanova - 0.10-3 - Rebuild to fix problems with vendorarch/lib (#661697) * Sat Jun 05 2010 Iain Arnell 0.10-2 - Bump for build against perl-5.12 * Sat May 01 2010 Iain Arnell 0.10-1 - Specfile autogenerated by cpanspec 1.78