File krename.spec of Package krename
#
# spec file for package krename
#
# Copyright (c) 2011 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: libexiv2-devel libkde4-devel taglib-devel
%if %suse_version > 1120
BuildRequires: libpodofo-devel
%endif
License: GPLv2+
Group: System/Filesystems
Summary: A Batch Rename Application
Version: 4.0.6
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
/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
/usr/share/kde4/services/ServiceMenus/*.desktop
%changelog