## START: Set by rpmautospec ## (rpmautospec version 0.2.6) %define autorelease(e:s:pb:) %{?-p:0.}%{lua: release_number = 5; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{?dist} ## END: Set by rpmautospec Name: prename Version: 1.11 Release: %autorelease Summary: Perl script to rename multiple files License: GPL+ or Artistic URL: https://metacpan.org/release/PEDERST/rename-%{version} Source0: https://cpan.metacpan.org/authors/id/P/PE/PEDERST/rename-%{version}.tar.gz Source1: https://raw.githubusercontent.com/pstray/rename/master/LICENSE # This patch renames the executable from rename to prename Patch0: 0001-Rename-the-executable-from-rename-to-prename.patch BuildArch: noarch BuildRequires: make BuildRequires: perl-generators BuildRequires: perl-interpreter BuildRequires: perl(ExtUtils::MakeMaker) %description Prename renames the file names supplied according to the rule specified as the first argument. The argument is a Perl expression which is expected to modify the $_ string for at least some of the file names specified. %prep %autosetup -p1 -n rename-%{version} cp %{SOURCE1} . %build perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 %{make_build} %install %{make_install} %{_fixperms} $RPM_BUILD_ROOT/* %files %license LICENSE %{_bindir}/%{name} %{_mandir}/man1/%{name}.1* %changelog * Sat Jul 30 2022 Robert-André Mauchin 1.11-5 - SPEC cleanup * Fri Jul 22 2022 Maxwell G - 1.11-1 - Update to 1.11. * Fri Jul 22 2022 Fedora Release Engineering - 1.9-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Fri Jan 21 2022 Fedora Release Engineering - 1.9-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Tue Jul 27 2021 Fedora Release Engineering - 1.9-12 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Wed Jan 27 2021 Fedora Release Engineering - 1.9-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Tue Jul 28 2020 Fedora Release Engineering - 1.9-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Thu Jan 30 2020 Fedora Release Engineering - 1.9-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Fri Jul 26 2019 Fedora Release Engineering - 1.9-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sat Feb 02 2019 Fedora Release Engineering - 1.9-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Fri Jul 13 2018 Fedora Release Engineering - 1.9-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Fri Feb 09 2018 Fedora Release Engineering - 1.9-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Fri Aug 18 2017 Robert-André Mauchin 1.9-4 - Added LICENSE from upstream * Tue Jul 25 2017 Robert-André Mauchin 1.9-3 - Fix for Fedora Review * Thu Jul 20 2017 Robert-André Mauchin 1.9-2 - Update to Fedora Packaging Guidelines specification * Mon Oct 17 2016 Robert-André Mauchin 1.9-1 - Initial release