k3b/k3b.spec

159 lines
4.7 KiB
RPMSpec
Raw Normal View History

#
# spec file for package k3b (Version 1.69.0)
#
# Copyright (c) 2009 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/
#
%bcond_with ffmpeg
%bcond_with mad
%bcond_with lame
Name: k3b
BuildRequires: cups-devel libkcddb4-devel ruby-devel sqlite-devel taglib-devel
BuildRequires: libkcompactdisc4-devel libkdepimlibs4-devel tse3-devel update-desktop-files
BuildRequires: gstreamer010-devel libmtp-devel libnjb-devel libvisual-devel xine-devel
BuildRequires: flac-devel libQtWebKit-devel libdvdread-devel libvorbis-devel
BuildRequires: dbus-1-glib-devel libogg-devel libsamplerate-devel libsndfile-devel
BuildRequires: libmpcdec-devel libmusicbrainz-devel
%if %{with ffmpeg}
BuildRequires: libffmpeg-devel
%endif
%if %{with mad}
BuildRequires: libmad-devel
%endif
%if %{with lame}
BuildRequires: libmp3lame-devel
%endif
Url: http://k3b.sourceforge.net/
License: GPLv2+
Group: Productivity/Multimedia/CD/Record
Summary: A Universal CD and DVD Burning Application
Requires: /usr/bin/cdrecord /usr/bin/mkisofs /usr/bin/cdrdao dvd+rw-tools
Version: 1.69.0
Release: 1
%define rversion %version
# svn.kde.org/home/kde/trunk/extragear/multimedia/k3b
Source0: k3b-1.69.0alpha4.tar.bz2
Source1: k3b-translation.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%kde4_runtime_requires
Provides: kde4-k3b = 4.2.1.svn942189
Provides: kde4-k3b = 4.2.2.svn951754
Obsoletes: kde4-k3b <= 4.2.2.svn951754
Requires: %{name}-lang = %{version}
%description
K3b is a CD burning application that supports Ogg Vorbis, MP3 audio
files, DVD burning, CDDB, and much more.
Authors:
--------
Sebastian Trueg <trueg@informatik.uni-freiburg.de>
Thomas Froescher <tfroescher@gmx.de>
%package devel
License: GPLv2+
Summary: A Universal CD and DVD Burning Application
Group: Productivity/Multimedia/CD/Record
Requires: %name = %version
%description devel
K3b is a CD burning application that supports Ogg Vorbis, MP3 audio
files, DVD burning, CDDB, and much more.
Authors:
--------
Sebastian Trueg <trueg@informatik.uni-freiburg.de>
Thomas Froescher <tfroescher@gmx.de>
%lang_package
%prep
%setup -q -n k3b-%{rversion} -a 1
echo "find_package(Msgfmt REQUIRED)" >> CMakeLists.txt
echo "find_package(Gettext REQUIRED)" >> CMakeLists.txt
echo "add_subdirectory( po )" >> CMakeLists.txt
echo "add_subdirectory( doc-translations )" >> CMakeLists.txt
echo "add_subdirectory( doc )" >> CMakeLists.txt
%build
%cmake_kde4 -d build -- -DK3B_BUILD_K3BSETUP=OFF
%make_jobs
%install
pushd build
%makeinstall
popd
%suse_update_desktop_file k3b DiscBurning
%kde_post_install
%if %suse_version < 1120
# work-around bnc#457908
for i in uk fr de et nl pt es sv; do mkdir $RPM_BUILD_ROOT/usr/share/doc/kde/HTML/$i/common;done
%endif
%find_lang k3b k3b.lang
%find_lang k3bsetup k3b.lang
%find_lang libk3b k3b.lang
%find_lang libk3bdevice k3b.lang
%find_lang kio_videodvd k3b.lang
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%clean
rm -rf $RPM_BUILD_ROOT
%files lang -f k3b.lang
%files
%defattr(-,root,root)
/usr/bin/k3b
/usr/%_lib/kde4/k3b*.so
/usr/%_lib/kde4/kcm_k3b*.so
/usr/%_lib/kde4/kio_videodvd.so
/usr/%_lib/libk3b.so.*
/usr/%_lib/libk3bdevice.so.*
/usr/share/applications/kde4/k3b.desktop
/usr/share/icons/hicolor/*/apps/k3b.*
/usr/share/kde4/apps/k3b
/usr/share/kde4/apps/konqsidebartng/virtual_folders/services/videodvd.desktop
/usr/share/kde4/services/ServiceMenus/k3b_*
/usr/share/kde4/services/k3b*.desktop
/usr/share/kde4/services/kcm_k3b*.desktop
/usr/share/kde4/services/videodvd.protocol
/usr/share/kde4/servicetypes/k3bplugin.desktop
/usr/share/sounds/k3b_*
%dir /usr/share/kde4/apps/solid
%dir /usr/share/kde4/apps/solid/actions
/usr/share/kde4/apps/solid/actions/k3b_*.desktop
/usr/share/mime/packages/x-k3b.xml
%if %suse_version < 1120
# work-around bnc#457911
%dir /usr/share/doc/kde/HTML/*
%dir /usr/share/locale/hne
%dir /usr/share/locale/hne/LC_MESSAGES
%endif
%files devel
%defattr(-,root,root)
/usr/include/k3b*
/usr/%_lib/libk3b.so
/usr/%_lib/libk3bdevice.so
%changelog