File krename.spec of Package krename

#
# spec file for package krename (Version 3.9.2)
#
# Copyright (c) 2008 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:           krename
BuildRequires:  libkde4-devel taglib-devel
License:        GPL v2 or later
Group:          System/Filesystems
Summary:        A Batch Rename Application
Version:        3.9.2
Release:        1
Url:            http://www.krename.net
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source0:        %name-%{version}.tar.bz2
Patch0:         desktop-files.diff
Provides:       kde4-krename = 3.9.1
Obsoletes:      kde4-krename <= 3.9.1
%kde4_runtime_requires

%description
Krename is a very powerful batch file renamer for KDE3. Features
include: -renaming a list of files based on a set of expressions
-copying and moving a list of files to another directory -converting
filenames to uppercase or lowercase -adding numbers to filenames
-finding and replacing parts of the filename -renaming MP3 or Ogg
Vorbis files based on their ID3 tags -setting access and modification
dates -managing permissions and file ownership -extending krename's
features with a plug-in API -renaming directories recursively
-supporting KFilePlugins -creating an undo file



Authors:
--------
    Dominik Seichter <domseichter@web.de>

%prep
%setup -q
%patch0

%build
  %cmake_kde4 -d build
  %make_jobs

%install
  cd build
  %makeinstall
  cd ..
%suse_update_desktop_file -G "Batch File Renamer" krename System FileManager
%kde_post_install
%find_lang %name

%clean
rm -rf $RPM_BUILD_ROOT

%files -f %name.lang
%defattr(-,root,root)
%doc AUTHORS COPYING README TODO
/usr/bin/krename
%dir /usr/share/kde4/apps/dolphin
%dir /usr/share/kde4/apps/dolphin/servicemenus
/usr/share/kde4/apps/dolphin/servicemenus/*.desktop
/usr/share/applications/kde4/krename.desktop
/usr/share/icons/hicolor/*/apps/krename.png
/usr/share/icons/hicolor/*/apps/krename.png
/usr/share/icons/locolor/*/apps/krename.png
/usr/share/icons/locolor/*/apps/krename.png

%changelog
* Fri Oct 10 2008 dmueller@suse.de
- update to 3.9.2 (bnc#432364):
  * readds back missing desktop file and application icon
  * includes translations
* Mon Jul 07 2008 dmueller@suse.de
- update to 3.9.1:
  * 2nd beta release of the KDE4 based rewrite
* Mon Mar 26 2007 stbinner@suse.de
- update to 3.0.14:
  * Fixed a crash with plugin previews
  * Fixed adding directories recursive when dropped from another application
  * Added a unit test
  * Fixed plugin tokens with additional arguments e.g. [date;dd-mm-yyyy]
  * Fixed the seconds in the time [token]
  * Corrected documentation of [user] and [group] tokens
  * Patch by Otakar Trunecek to add Czech transliteration characters
* Mon Dec 04 2006 stbinner@suse.de
- update to 3.0.13:
  * new Turkish translation
  * the encoding plugin is now finally working
  * the speed with plugins could be improved
  * commandline option to specify the number of preview items to show
* Tue Aug 15 2006 dmueller@suse.de
- update to 3.0.12:
  * Updated translation
  * Fixed servicemenu installation
  * Fixed a possible crash
  * Fixed drag and drop of files to KRename
* Wed May 24 2006 adrian@suse.de
- fix build for < 10.1
* Thu Feb 23 2006 stbinner@suse.de
- update to 3.0.11
  * cleans up all makefiles and desktop files
  * updates the build system to the build system of KDE 3.5
  * updates some translations (Swedish and Italian)
  * fixes a bug when *,{ or } was returned by plugins
* Wed Feb 15 2006 stbinner@suse.de
- add GenericName to .desktop file
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Tue Jan 17 2006 dmueller@suse.de
- spec file cleanup
* Thu Jan 12 2006 stbinner@suse.de
- update to 3.0.10
* Tue Oct 18 2005 stbinner@suse.de
- update to 3.0.9
* Sun Sep 25 2005 stbinner@suse.de
- update to 3.0.8
* Mon Sep 19 2005 stbinner@suse.de
- update to 3.0.7
* Tue Jun 21 2005 dmueller@suse.de
- update to 3.0.6
* Thu Feb 17 2005 adrian@suse.de
- update to version 3.0.3
- menu entry moved to xdg dir
* Thu Oct 14 2004 coolo@suse.de
- update to version 3.0.2
* Mon Feb 02 2004 adrian@suse.de
- update to version 2.8.5
* Wed Jan 14 2004 coolo@suse.de
- fixing build
* Wed Jan 14 2004 coolo@suse.de
- fixing Makefile problems
* Fri Dec 05 2003 adrian@suse.de
- update to version 2.8.4
* Tue Oct 28 2003 adrian@suse.de
- update to version 2.8.3
* Tue Sep 09 2003 adrian@suse.de
- add hungarian translations from Peter Varkoly
* Fri Aug 08 2003 adrian@suse.de
- update to version 2.8.2
* Sun Jul 27 2003 adrian@suse.de
- update to version 2.8.1
- add Categories
* Sat Jun 14 2003 coolo@suse.de
- use %%find_lang
* Sun May 18 2003 adrian@suse.de
- update to version 2.7.1
* Wed May 14 2003 adrian@suse.de
- initial package of version 2.6.2
openSUSE Build Service is sponsored by