[CentOS-devel] multi: contributed RPM submission

Sun Apr 2 13:37:51 UTC 2006
Durval Menezes <durval at tmp.com.br>

Hello,

Here's my submission for a new package: multi, a Perl-based bulk file
renamer.

The URL to the SRPM is: 
    http://www.durval.com.br/RPMS/el4/multi/multi-4874-dm2.src.rpm

I've attached the .spec file.

Best Regards,
-- 
   Durval Menezes (durval AT tmp DOT com DOT br, http://www.tmp.com.br/)
-------------- next part --------------
#20060129 Customized from _template.spec

Summary: Perl-based bulk file renamer
Name: multi
Version: 4874
Release: dm2
License: MIT
Group: Applications/System
URL: http://www.chiark.greenend.org.uk/~sgtatham/utils/
Packager: Durval Menezes <durval AT tmp DOT com DOT br>

Source: %{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

Buildarch: noarch
Requires: perl

%description
Transforms a list of file names using a user-provided Perl expression, and passes each name plus the transformed version to a command of your choice (often, but not limited to, mv or cp).

%prep
%setup -n multi

%install
%{__rm} -rf %{buildroot}
mkdir -p %{buildroot}{/usr/share/man/man1/,/usr/bin}
gzip < multi.1 > %{buildroot}/usr/share/man/man1/multi.1.gz
install -o 755 multi %{buildroot}/usr/bin

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(-, root, root, 0755)
%doc %{_mandir}/man?/*
%{_bindir}/*

%changelog
* Sun Jan 29 2006 Durval Menezes <durval AT tmp DOT com DOT br> [4874-dm1]
- Initial package