]> git.pld-linux.org Git - packages/prename.git/blob - prename.spec
- initial
[packages/prename.git] / prename.spec
1 Summary:        Perl script to rename multiple files
2 Name:           prename
3 Version:        1.9
4 Release:        1
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
13 BuildArch:      noarch
14
15 %description
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
19 file names specified.
20
21 %prep
22 %setup -q -n rename-%{version}
23 %patch0 -p1
24
25 %build
26 %{__perl} Makefile.PL \
27         PREFIX=%{_prefix} \
28         INSTALLSITEMAN1DIR=%{_mandir}/man1 \
29         NO_PACKLIST=1
30 %{__make}
31
32 %install
33 rm -rf $RPM_BUILD_ROOT
34
35 %{__make} pure_install \
36         DESTDIR=$RPM_BUILD_ROOT
37
38 %clean
39 rm -rf $RPM_BUILD_ROOT
40
41 %files
42 %defattr(644,root,root,755)
43 %attr(755,root,root) %{_bindir}/%{name}
44 %{_mandir}/man1/%{name}.1*
This page took 0.0271 seconds and 3 git commands to generate.