krename
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

krename.spec 1.7KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. %define name krename
  2. %define version 3.0.14
  3. Summary: A powerfull batch renamer for KDE
  4. Name: %{name}
  5. Version: %{version}
  6. Release: 1
  7. License: GPL
  8. Vendor: Dominik Seichter <domseichter@web.de>
  9. Url: http://krename.sourceforge.net
  10. Packager: Dominik Seichter <domseichter@web.de>
  11. Group: kde/utilities
  12. Source: %{name}-%{version}.tar.bz2
  13. BuildRoot: /var/tmp/%{name}-%{version}
  14. %description
  15. 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.
  16. %prep
  17. %setup
  18. %build
  19. # Look for common rpm-options:
  20. if [ -f /etc/opt/trinity/common_options ]; then
  21. . /etc/opt/trinity/common_options
  22. ./configure $configkde
  23. else
  24. ./configure
  25. fi
  26. # Setup for parallel builds
  27. numprocs=`egrep -c ^cpu[0-9]+ /proc/stat || :`
  28. if [ "$numprocs" = "0" ]; then
  29. numprocs=1
  30. fi
  31. make -j$numprocs
  32. %install
  33. make install-strip DESTDIR=$RPM_BUILD_ROOT
  34. cd $RPM_BUILD_ROOT
  35. find . -type d | sed '1,2d;s,^\.,\%attr(-\,root\,root) \%dir ,' > $RPM_BUILD_DIR/master.list
  36. find . -type f | sed 's,^\.,\%attr(-\,root\,root) ,' >> $RPM_BUILD_DIR/master.list
  37. find . -type l | sed 's,^\.,\%attr(-\,root\,root) ,' >> $RPM_BUILD_DIR/master.list
  38. %clean
  39. cd $RPM_BUILD_DIR
  40. rm -rf $RPM_BUILD_ROOT
  41. rm -rf %{name}-%{version}
  42. rm master.list
  43. %files -f ../master.list