Name: perl-File-Touch Version: 0.12 Release: 8%{?dist} Summary: Update access, modification timestamps, creating nonexistent files License: GPL-1.0-or-later OR Artistic-1.0-Perl URL: https://metacpan.org/release/File-Touch Source: https://cpan.metacpan.org/authors/id/N/NE/NEILB/File-Touch-%{version}.tar.gz BuildArch: noarch BuildRequires: coreutils BuildRequires: make BuildRequires: perl-generators BuildRequires: perl-interpreter BuildRequires: perl(:VERSION) >= 5.6 BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 BuildRequires: perl(strict) BuildRequires: perl(warnings) # Run-time BuildRequires: perl(Carp) BuildRequires: perl(Exporter) BuildRequires: perl(Fcntl) BuildRequires: perl(File::stat) BuildRequires: perl(IO::File) BuildRequires: perl(Time::HiRes) >= 1.9764 # Tests BuildRequires: perl(Test::More) >= 0.88 Requires: perl(Time::HiRes) >= 1.9764 %description This File::Touch Perl module enables you to update access and modification timestamps, creating nonexistent files where necessary. %package tests Summary: Tests for %{name} Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} Requires: coreutils Requires: perl-Test-Harness %description tests Tests from %{name}. Execute them with "%{_libexecdir}/%{name}/test". %prep %setup -q -n File-Touch-%{version} %build perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 %{make_build} %install %{make_install} %{_fixperms} %{buildroot}/* # Install tests mkdir -p %{buildroot}%{_libexecdir}/%{name} cp -a t %{buildroot}%{_libexecdir}/%{name} cat > %{buildroot}%{_libexecdir}/%{name}/test << 'EOF' #!/bin/bash set -e # t/02-basic-usage.t writes into CWD and using File::Temp would be an # overkill. DIR=$(mktemp -d) cp -a %{_libexecdir}/%{name}/* "$DIR" pushd "$DIR" prove -I . -j "$(getconf _NPROCESSORS_ONLN)" popd rm -r "$DIR" EOF chmod +x %{buildroot}%{_libexecdir}/%{name}/test %check export HARNESS_OPTIONS=j$(perl -e 'if ($ARGV[0] =~ /.*-j([0-9][0-9]*).*/) {print $1} else {print 1}' -- '%{?_smp_mflags}') make test %files %license LICENSE %doc Changes README %dir %{perl_vendorlib}/File %{perl_vendorlib}/File/Touch.pm %{_mandir}/man3/File::Touch.* %files tests %{_libexecdir}/%{name} %changelog * Thu Jan 25 2024 Fedora Release Engineering - 0.12-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sun Jan 21 2024 Fedora Release Engineering - 0.12-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Thu Jul 20 2023 Fedora Release Engineering - 0.12-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Thu Apr 27 2023 Petr Pisar - 0.12-5 - Modernize a spec file - Package the tests * Fri Jan 20 2023 Fedora Release Engineering - 0.12-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 0.12-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon May 30 2022 Jitka Plesnikova - 0.12-2 - Perl 5.36 rebuild * Wed May 04 2022 Jitka Plesnikova - 0.12-1 - 0.12 bump * Fri Jan 21 2022 Fedora Release Engineering - 0.11-18 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Tue Jul 27 2021 Fedora Release Engineering - 0.11-17 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri May 21 2021 Jitka Plesnikova - 0.11-16 - Perl 5.34 rebuild * Wed Jan 27 2021 Fedora Release Engineering - 0.11-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Tue Jul 28 2020 Fedora Release Engineering - 0.11-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Mon Jun 22 2020 Jitka Plesnikova - 0.11-13 - Perl 5.32 rebuild * Thu Jan 30 2020 Fedora Release Engineering - 0.11-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Fri Jul 26 2019 Fedora Release Engineering - 0.11-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Thu May 30 2019 Jitka Plesnikova - 0.11-10 - Perl 5.30 rebuild * Fri Feb 01 2019 Fedora Release Engineering - 0.11-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Fri Jul 13 2018 Fedora Release Engineering - 0.11-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Wed Jun 27 2018 Jitka Plesnikova - 0.11-7 - Perl 5.28 rebuild * Thu Feb 08 2018 Fedora Release Engineering - 0.11-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 0.11-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sun Jun 04 2017 Jitka Plesnikova - 0.11-4 - Perl 5.26 rebuild * Sat Feb 11 2017 Fedora Release Engineering - 0.11-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Sun May 15 2016 Jitka Plesnikova - 0.11-2 - Perl 5.24 rebuild * Wed Apr 20 2016 Andrea Veri - 0.11-1 - New upstream release. * Thu Feb 04 2016 Fedora Release Engineering - 0.10-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Thu Dec 03 2015 Andrea Veri - 0.10-1 - New upstream release. * Thu Jun 18 2015 Fedora Release Engineering - 0.09-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Fri Jun 12 2015 Andrea Veri - 0.09-1 - New upstream release. * Wed Jun 03 2015 Jitka Plesnikova - 0.08-7 - Perl 5.22 rebuild * Wed Aug 27 2014 Jitka Plesnikova - 0.08-6 - Perl 5.20 rebuild * Sat Jun 07 2014 Fedora Release Engineering - 0.08-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sat Aug 03 2013 Fedora Release Engineering - 0.08-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Wed Jul 17 2013 Petr Pisar - 0.08-3 - Perl 5.18 rebuild * Thu May 9 2013 Andrea Veri - 0.08-2 - Fix Source0 to point to UpstreamName-%%{version}. - Add the missing Build Depends. * Mon May 6 2013 Andrea Veri - 0.08-1 - Initial build.