1 Summary: Perl script to rename multiple files
5 License: GPL+ or Artistic
6 Group: Applications/System
7 URL: https://metacpan.org/release/rename
8 Source0: https://cpan.metacpan.org/authors/id/P/PE/PEDERST/rename-%{version}.tar.gz
9 # Source0-md5: 16df2adde955a6867701564e3d7c6a52
10 # This patch renames the executable from rename to prename
11 Patch0: %{name}-1.9-namechange.patch
12 BuildRequires: perl-devel
16 Prename renames the file names supplied according to the rule
17 specified as the first argument. The argument is a Perl expression
18 which is expected to modify the $_ string for at least some of the
22 %setup -q -n rename-%{version}
26 %{__perl} Makefile.PL \
28 INSTALLSITEMAN1DIR=%{_mandir}/man1 \
33 rm -rf $RPM_BUILD_ROOT
35 %{__make} pure_install \
36 DESTDIR=$RPM_BUILD_ROOT
39 rm -rf $RPM_BUILD_ROOT
42 %defattr(644,root,root,755)
43 %attr(755,root,root) %{_bindir}/%{name}
44 %{_mandir}/man1/%{name}.1*