File kaudiocreator.spec of Package kaudiocreator

#
# spec file for package kaudiocreator (Version 1.2.80)
#
# Copyright (c) 2009 Johannes Engel <jcnengel@googlemail.com>
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild

Name:		kaudiocreator
BuildRequires:	libkde4-devel cmake >= 2.6.2 libkcddb4-devel taglib-devel libkcompactdisc4-devel libdiscid-devel 
Url:		http://www.kde-apps.org/content/show.php/KAudioCreator?content=107645
License:	LGPL
Group:		Productivity/Multimedia/CD/Grabbers
Summary:	KAudioCreator is a CD ripper
Version:	1.3
Release:	1
BuildRoot:	%{_tmppath}/%{name}-%{version}-build
Source:		%{name}-%{version}.tar.bz2
Source1:	%{name}-rip-audiocd.desktop
Prefix:		/usr

%description
KAudioCreator is a program for ripping and encoding Audio-CDs, encoding files from disk.


Authors:
--------
	Benjamin Meyer
	Gerd Fleischer

%if !0%{?opensuse_bs}
%debug_package
%endif

%lang_package

%prep
%setup -q

%build
%cmake_kde4 -d build
%make_jobs

%install
cd build
%kde4_makeinstall
cd ..
%__mkdir -p $RPM_BUILD_ROOT%{_kde_share_dir}/apps/solid/actions
%__install %SOURCE1 $RPM_BUILD_ROOT%{_kde_share_dir}/apps/solid/actions/
%suse_update_desktop_file $RPM_BUILD_ROOT%{_kde_share_dir}/apps/solid/actions/%{name}-rip-audiocd.desktop Multimedia Music CD CDReader
%suse_update_desktop_file %{name} Multimedia Music CD CDReader
%find_lang %{name} %{name}.lang
%kde_post_install

%files
%defattr(-,root,root)
%doc COPYING TODO
%{_bindir}/%{name}
%{_datadir}/applications/kde4/%{name}.desktop
%dir %{_kde_share_dir}/apps/solid
%dir %{_kde_share_dir}/apps/solid/actions
%{_kde_share_dir}/apps/solid/actions/%{name}-rip-audiocd.desktop
%{_kde_share_dir}/services/ServiceMenus/audiocd_extract.desktop
%config %{_kde_share_dir}/config.kcfg/%{name}*.kcfg
%{_kde_share_dir}/apps/%{name}
%{_kde_share_dir}/apps/kconf_update/*%{name}*
%{_datadir}/icons/hicolor/*/apps/%{name}.png

%files lang -f %{name}.lang
%defattr(-,root,root)

%changelog
openSUSE Build Service is sponsored by