summaryrefslogtreecommitdiffstats
path: root/krename.spec
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-02-22 18:35:24 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-02-22 18:35:24 +0000
commitaec5a842670a66ff24572847d35375a31c0b379e (patch)
tree465d7790602658d86ab031788852bf3dbdc96691 /krename.spec
downloadkrename-aec5a842670a66ff24572847d35375a31c0b379e.tar.gz
krename-aec5a842670a66ff24572847d35375a31c0b379e.zip
Added KDE3 version of krename
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/krename@1094420 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'krename.spec')
-rw-r--r--krename.spec53
1 files changed, 53 insertions, 0 deletions
diff --git a/krename.spec b/krename.spec
new file mode 100644
index 0000000..a6fddd8
--- /dev/null
+++ b/krename.spec
@@ -0,0 +1,53 @@
+%define name krename
+%define version 3.0.14
+
+Summary: A powerfull batch renamer for KDE
+Name: %{name}
+Version: %{version}
+Release: 1
+License: GPL
+Vendor: Dominik Seichter <domseichter@web.de>
+Url: http://krename.sourceforge.net
+Packager: Dominik Seichter <domseichter@web.de>
+Group: kde/utilities
+Source: %{name}-%{version}.tar.bz2
+BuildRoot: /var/tmp/%{name}-%{version}
+
+%description
+Krename is a very powerful batch file renamer for KDE3 which can rename a list of files based on a set of expressions. It can copy/move the files to another directory or simply rename the input files. Krename supports many conversion operations, including conversion of a filename to lowercase or to uppercase, conversion of the first letter of every word to uppercase, adding numbers to filenames, finding and replacing parts of the filename, and many more. It can also change access and modification dates, permissions, and file ownership.
+
+%prep
+%setup
+
+%build
+# Look for common rpm-options:
+if [ -f /etc/opt/kde3/common_options ]; then
+ . /etc/opt/kde3/common_options
+ ./configure $configkde
+else
+ ./configure
+fi
+
+# Setup for parallel builds
+numprocs=`egrep -c ^cpu[0-9]+ /proc/stat || :`
+if [ "$numprocs" = "0" ]; then
+ numprocs=1
+fi
+
+make -j$numprocs
+
+%install
+make install-strip DESTDIR=$RPM_BUILD_ROOT
+
+cd $RPM_BUILD_ROOT
+find . -type d | sed '1,2d;s,^\.,\%attr(-\,root\,root) \%dir ,' > $RPM_BUILD_DIR/master.list
+find . -type f | sed 's,^\.,\%attr(-\,root\,root) ,' >> $RPM_BUILD_DIR/master.list
+find . -type l | sed 's,^\.,\%attr(-\,root\,root) ,' >> $RPM_BUILD_DIR/master.list
+
+%clean
+cd $RPM_BUILD_DIR
+rm -rf $RPM_BUILD_ROOT
+rm -rf %{name}-%{version}
+rm master.list
+
+%files -f ../master.list