File mmv.spec of Package mmv
#
# spec file for package mmv (Version 1.01b)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: mmv
License: Distributable in unmodified form. Do not charge fee for mmv.
Group: Productivity/File utilities
AutoReqProv: on
Version: 1.01b
Release: 929
Summary: Multiple Move
Source: mmv-1.01b.tar.gz
Patch: mmv-1.01b.dif
Patch1: allow-non-ascii.patch
Patch2: mmv-1.01b-options.patch
Patch3: mmv-1.01b-include.dif
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Perform tasks like mmv "*.c" "#1.c.old".
Authors:
--------
Vladimir Lanin <lanin@csd2.nyu.edu>
%prep
%setup -q
%patch
%patch1 -p 1 -b .allow-non-ascii
%patch2
%patch3
%build
make CFLAGS="$RPM_OPT_FLAGS -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
%install
rm -rf $RPM_BUILD_ROOT
install -d -m 755 $RPM_BUILD_ROOT/usr/bin
install -d -m 755 $RPM_BUILD_ROOT%{_mandir}/man1
make "DESTDIR=$RPM_BUILD_ROOT" install IMAN=$RPM_BUILD_ROOT%{_mandir}
cd $RPM_BUILD_ROOT/usr/bin/
ln -s mmv mad
ln -s mmv mcp
ln -s mmv mln
cd $RPM_BUILD_ROOT%{_mandir}/man1/
ln -s mmv.1.gz mad.1.gz
ln -s mmv.1.gz mcp.1.gz
ln -s mmv.1.gz mln.1.gz
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
/usr/bin/*
%doc %{_mandir}/man1/*
%changelog
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Tue Dec 13 2005 anicka@suse.cz
- add LARGEFILE to CFLAGS (bug #137906)
* Tue Apr 05 2005 nadvornik@suse.cz
- fixed include files for gcc4
* Thu Mar 04 2004 tcrhak@suse.cz
- honor '--' in option list (bug #35289)
* Fri Jan 30 2004 mfabian@suse.de
- add patch from Bjoern Jacke <jacke@exsuse.de> to allow
non-ASCII for the target file names (see Bugzilla #34232).
- use # norootforbuild.
* Wed Sep 25 2002 tcrhak@suse.cz
- in checkto(): assign fdel NULL if it is
assigned no value so far (fixes bug #19924)
- linked dynamically
* Fri Apr 20 2001 cihlar@suse.cz
- use RPM_OPT_FLAGS
- fixed to compile on s390
* Tue Mar 20 2001 cihlar@suse.cz
- fix to compile on axp
* Wed Dec 06 2000 schwab@suse.de
- Fix to build on ia64.
* Thu Nov 09 2000 cihlar@suse.cz
- clean up spec file
- fixed copyrigt tag
* Wed May 17 2000 cihlar@suse.cz
- added BuildRoot
- Group sorted
* Fri May 12 2000 schwab@suse.de
- Fix Makefile for ia64.
* Tue Jan 25 2000 ro@suse.de
- man to /usr/share using macro
* Sun Dec 19 1999 kukuk@suse.de
- Fix Makefile for SPARC
* Mon Sep 13 1999 bs@suse.de
- ran old prepare_spec on spec file to switch to new prepare_spec.
* Wed Aug 25 1999 uli@suse.de
- no m486 on PPC
* Wed Feb 03 1999 ro@suse.de
- no m486 on alpha
* Thu Jun 18 1998 ro@suse.de
- builds for libc5 and glibc