[packages/prename] - initial

arekm arekm at pld-linux.org
Sat May 30 21:43:28 CEST 2020


commit c7a2d58d450bc2bbda7cc7bd2f25968ee7fca8a8
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Sat May 30 21:43:12 2020 +0200

    - initial

 prename.spec | 44 ++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 44 insertions(+)
---
diff --git a/prename.spec b/prename.spec
new file mode 100644
index 0000000..6a83993
--- /dev/null
+++ b/prename.spec
@@ -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*
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/prename.git/commitdiff/c7a2d58d450bc2bbda7cc7bd2f25968ee7fca8a8



More information about the pld-cvs-commit mailing list