]> git.pld-linux.org Git - packages/prename.git/commitdiff
- initial
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Sat, 30 May 2020 19:43:12 +0000 (21:43 +0200)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Sat, 30 May 2020 19:43:12 +0000 (21:43 +0200)
prename.spec [new file with mode: 0644]

diff --git a/prename.spec b/prename.spec
new file mode 100644 (file)
index 0000000..6a83993
--- /dev/null
@@ -0,0 +1,44 @@
+Summary:       Perl script to rename multiple files
+Name:          prename
+Version:       1.9
+Release:       1
+License:       GPL+ or Artistic
+Group:         Applications/System
+URL:           https://metacpan.org/release/rename
+Source0:       https://cpan.metacpan.org/authors/id/P/PE/PEDERST/rename-%{version}.tar.gz
+# Source0-md5: 16df2adde955a6867701564e3d7c6a52
+# This patch renames the executable from rename to prename
+Patch0:                %{name}-1.9-namechange.patch
+BuildRequires: perl-devel
+BuildArch:     noarch
+
+%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
+%setup -q -n rename-%{version}
+%patch0 -p1
+
+%build
+%{__perl} Makefile.PL \
+       PREFIX=%{_prefix} \
+       INSTALLSITEMAN1DIR=%{_mandir}/man1 \
+       NO_PACKLIST=1
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} pure_install \
+       DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/%{name}
+%{_mandir}/man1/%{name}.1*
This page took 0.093873 seconds and 4 git commands to generate.