# 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-Types-Path-Tiny Version: 0.006 Release: 22.%{__distinit}%{__distvers} Summary: Path::Tiny types and coercions for Moose and Moo License: Apache-2.0 URL: https://metacpan.org/release/Types-Path-Tiny Source0: https://cpan.metacpan.org/authors/id/D/DA/DAGOLDEN/Types-Path-Tiny-%{version}.tar.gz BuildArch: noarch # Build BuildRequires: coreutils BuildRequires: findutils BuildRequires: make BuildRequires: perl-generators BuildRequires: perl-interpreter BuildRequires: perl(ExtUtils::MakeMaker) >= 6.17 # Module BuildRequires: perl(Path::Tiny) BuildRequires: perl(strict) BuildRequires: perl(Type::Library) >= 0.008 BuildRequires: perl(Type::Utils) BuildRequires: perl(Types::Standard) BuildRequires: perl(Types::TypeTiny) >= 0.004 BuildRequires: perl(warnings) # Test Suite BuildRequires: perl(File::pushd) BuildRequires: perl(File::Spec) BuildRequires: perl(File::Temp) >= 0.18 BuildRequires: perl(Test::More) >= 0.96 # Optional Tests BuildRequires: perl(CPAN::Meta) >= 2.120900 # Dependencies %if 0%{?fedora} < 38 && 0%{?rhel} < 10 Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) %endif %description This module provides Path::Tiny types for Moose, Moo, etc. %prep %setup -q -n Types-Path-Tiny-%{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 %license LICENSE %doc Changes README %{perl_vendorlib}/Types/ %{_mandir}/man3/Types::Path::Tiny.3* %changelog * Mon Jan 20 2025 Paul Howarth - 0.006-22 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Mon Jul 22 2024 Paul Howarth - 0.006-21 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Wed Jul 19 2023 Paul Howarth - 0.006-17 - Use SPDX-format license tag * Mon Nov 15 2021 Paul Howarth - 0.006-13 - Import from Fedora * Tue Jul 27 2021 Fedora Release Engineering - 0.006-12 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Sun May 23 2021 Jitka Plesnikova - 0.006-11 - Perl 5.34 rebuild * Wed Jan 27 2021 Fedora Release Engineering - 0.006-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Tue Jul 28 2020 Fedora Release Engineering - 0.006-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue Jun 23 2020 Jitka Plesnikova - 0.006-8 - Perl 5.32 rebuild * Thu Jan 30 2020 Fedora Release Engineering - 0.006-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Fri Jul 26 2019 Fedora Release Engineering - 0.006-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Fri May 31 2019 Jitka Plesnikova - 0.006-5 - Perl 5.30 rebuild * Sat Feb 02 2019 Fedora Release Engineering - 0.006-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Fri Jul 13 2018 Fedora Release Engineering - 0.006-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Sat Jun 30 2018 Jitka Plesnikova - 0.006-2 - Perl 5.28 rebuild * Tue May 22 2018 Ralf Corsépius - 0.006-1 - Update to 0.006 * Fri Feb 09 2018 Fedora Release Engineering - 0.005-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 0.005-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Tue Jun 06 2017 Jitka Plesnikova - 0.005-2 - Perl 5.26 rebuild * Thu Feb 02 2017 Ralf Corsépius - 0.005-1 - Initial Fedora package