2009-04-30 17:39:08 +02:00
|
|
|
#
|
2011-01-17 19:06:05 +01:00
|
|
|
# spec file for package k3b
|
2009-04-30 17:39:08 +02:00
|
|
|
#
|
2016-01-07 00:24:20 +01:00
|
|
|
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
2009-04-30 17:39:08 +02:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2011-02-21 23:54:56 +01:00
|
|
|
Name: k3b
|
2014-11-07 09:05:08 +01:00
|
|
|
Version: 2.0.3
|
2012-04-19 08:48:59 +02:00
|
|
|
Release: 0
|
2011-05-17 13:25:07 +02:00
|
|
|
Summary: CD/DVD/Blu-ray Burning Application for KDE
|
2011-12-06 18:21:01 +01:00
|
|
|
License: GPL-2.0+
|
2011-05-17 13:25:07 +02:00
|
|
|
Group: Productivity/Multimedia/CD/Record
|
2012-04-19 08:48:59 +02:00
|
|
|
Url: http://www.k3b.org/
|
2014-11-07 09:05:08 +01:00
|
|
|
Source: http://download.kde.org/stable/%{name}/%{name}-%{version}a.tar.xz
|
2011-05-17 13:25:07 +02:00
|
|
|
# PATCH-FIX-OPENSUSE initial-preference.diff llunak@novell.com -- Make the default handler for .iso files instead of Ark
|
|
|
|
Patch0: initial-preference.diff
|
2015-10-12 10:01:19 +02:00
|
|
|
# PATCH-FIX-OPENSUSE building-docs-once-is-enough.patch -- Fix build when CMP002 policy is set to NEW
|
|
|
|
Patch1: building-docs-once-is-enough.patch
|
2015-11-04 15:32:21 +01:00
|
|
|
# PATCH-FIX-UPSTREAM fix-dvd-transcoding.patch kde#350403 -- Fix transcoding of DVD titles
|
|
|
|
Patch2: fix-dvd-transcoding.patch
|
2016-05-31 12:10:36 +02:00
|
|
|
# PATCH-FIX-UPSTREAM k3b-2.0.3-gcc6.patch dimstar@opensuse.org -- Fix build with GCC 6
|
|
|
|
Patch3: k3b-2.0.3-gcc6.patch
|
2016-07-03 12:26:44 +02:00
|
|
|
# PATCH-FIX arch linux k3b-ffmpeg3.patch - fix build with ffmpeg 3x abi
|
|
|
|
Patch4: k3b-ffmpeg3.patch
|
|
|
|
|
2011-05-17 13:25:07 +02:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: flac-devel
|
|
|
|
BuildRequires: libdvdread-devel
|
|
|
|
BuildRequires: libkcddb4-devel
|
|
|
|
BuildRequires: libmpcdec-devel
|
|
|
|
BuildRequires: libmusicbrainz-devel
|
|
|
|
BuildRequires: libsamplerate-devel
|
|
|
|
BuildRequires: libsndfile-devel
|
|
|
|
BuildRequires: libvorbis-devel
|
|
|
|
BuildRequires: update-desktop-files
|
2015-11-12 19:40:03 +01:00
|
|
|
BuildRequires: pkgconfig(taglib)
|
2016-01-07 00:24:20 +01:00
|
|
|
%if 0%{?suse_version} > 1310 && 0%{?is_opensuse}
|
|
|
|
BuildRequires: pkgconfig(libavcodec)
|
|
|
|
BuildRequires: pkgconfig(libavdevice)
|
|
|
|
BuildRequires: pkgconfig(libavformat)
|
|
|
|
BuildRequires: pkgconfig(libavutil)
|
|
|
|
BuildRequires: pkgconfig(libpostproc)
|
|
|
|
BuildRequires: pkgconfig(libswscale)
|
|
|
|
%endif
|
2015-11-12 19:40:03 +01:00
|
|
|
Requires: %{_bindir}/cdrdao
|
|
|
|
Requires: %{_bindir}/cdrecord
|
|
|
|
Requires: %{_bindir}/mkisofs
|
|
|
|
Requires: %{_bindir}/readcd
|
2011-05-17 13:25:07 +02:00
|
|
|
Requires: dvd+rw-tools
|
2016-01-07 00:24:20 +01:00
|
|
|
Requires(post): hicolor-icon-theme
|
|
|
|
Requires(postun): hicolor-icon-theme
|
2011-05-17 13:25:07 +02:00
|
|
|
Requires(post): shared-mime-info
|
|
|
|
Requires(postun): shared-mime-info
|
2015-11-12 19:40:03 +01:00
|
|
|
Recommends: %{_bindir}/normalize
|
|
|
|
Recommends: %{_bindir}/sox
|
|
|
|
Recommends: %{_bindir}/transcode
|
2011-02-21 23:54:56 +01:00
|
|
|
Recommends: %{name}-lang = %{version}
|
2015-11-12 19:40:03 +01:00
|
|
|
Recommends: vcdimager
|
2011-05-17 13:25:07 +02:00
|
|
|
Provides: kde4-k3b = 4.2.2.svn951754
|
|
|
|
Obsoletes: kde4-k3b < 4.2.2.svn951754
|
2015-11-12 19:40:03 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%{kde4_runtime_requires}
|
2009-04-30 17:39:08 +02:00
|
|
|
|
|
|
|
%description
|
2011-05-17 13:25:07 +02:00
|
|
|
Featuring a simple, yet powerful graphical interface, k3b provides various
|
|
|
|
options for burning a CD, DVD, or BD (Blu-ray disc). Various types of optical
|
|
|
|
projects are supported including (but not limited to) audio and data, video
|
|
|
|
projects for DVD and VCD, as well as multi-session and mixed-mode discs. k3b
|
|
|
|
also has the ability to erase re-writeable media and can perform more
|
|
|
|
complicated tasks such as audiovisual encoding and decoding.
|
2009-04-30 17:39:08 +02:00
|
|
|
|
|
|
|
%package devel
|
2011-05-17 13:25:07 +02:00
|
|
|
Summary: Development files for k3b
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: %{name} = %{version}
|
2009-04-30 17:39:08 +02:00
|
|
|
|
|
|
|
%description devel
|
2011-05-17 13:25:07 +02:00
|
|
|
This package contain files needed for development with k3b.
|
2009-04-30 17:39:08 +02:00
|
|
|
|
2009-08-11 17:40:19 +02:00
|
|
|
%lang_package
|
2015-11-12 19:40:03 +01:00
|
|
|
|
2009-04-30 17:39:08 +02:00
|
|
|
%prep
|
2015-11-12 19:40:03 +01:00
|
|
|
%setup -q
|
2011-05-17 13:25:07 +02:00
|
|
|
%patch0
|
2015-10-12 10:01:19 +02:00
|
|
|
%patch1 -p1
|
2015-11-04 15:32:21 +01:00
|
|
|
%patch2 -p1
|
2016-05-31 12:10:36 +02:00
|
|
|
%patch3 -p1
|
2016-07-03 12:26:44 +02:00
|
|
|
%patch4 -p1
|
2011-05-17 13:25:07 +02:00
|
|
|
|
2009-04-30 17:39:08 +02:00
|
|
|
%build
|
2015-11-12 19:40:03 +01:00
|
|
|
CXXFLAGS="%{optflags} -fno-strict-aliasing"
|
2011-05-17 13:25:07 +02:00
|
|
|
%cmake_kde4 -d build -- -DK3B_ENABLE_HAL_SUPPORT=OFF
|
|
|
|
%make_jobs
|
2009-04-30 17:39:08 +02:00
|
|
|
|
|
|
|
%install
|
2014-08-27 22:18:17 +02:00
|
|
|
%kde4_makeinstall -C build
|
2011-05-17 13:25:07 +02:00
|
|
|
|
|
|
|
%suse_update_desktop_file -r k3b Qt KDE AudioVideo DiscBurning
|
|
|
|
|
2015-05-19 23:32:04 +02:00
|
|
|
# symlink solid actions into place known to Plasma 5, remove once k3b is KF5-based
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/solid/actions
|
|
|
|
pushd %{buildroot}%{_kde4_appsdir}/solid/actions/
|
|
|
|
for i in k3b_*.desktop; do
|
2015-06-08 08:29:22 +02:00
|
|
|
ln -s %{_kde4_appsdir}/solid/actions/$i %{buildroot}%{_datadir}/solid/actions/
|
2015-05-19 23:32:04 +02:00
|
|
|
done
|
|
|
|
popd
|
|
|
|
|
2011-05-17 13:25:07 +02:00
|
|
|
%fdupes -s %{buildroot}
|
|
|
|
|
|
|
|
%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
|
|
|
|
|
|
|
|
%kde_post_install
|
2009-04-30 17:39:08 +02:00
|
|
|
|
2011-02-21 23:54:44 +01:00
|
|
|
%post
|
|
|
|
/sbin/ldconfig
|
2015-11-12 19:40:03 +01:00
|
|
|
%desktop_database_post
|
|
|
|
%icon_theme_cache_post
|
2009-04-30 17:39:08 +02:00
|
|
|
|
2011-02-21 23:54:44 +01:00
|
|
|
%postun
|
|
|
|
/sbin/ldconfig
|
2015-11-12 19:40:03 +01:00
|
|
|
%desktop_database_postun
|
|
|
|
%icon_theme_cache_postun
|
2009-08-11 17:40:19 +02:00
|
|
|
|
2009-04-30 17:39:08 +02:00
|
|
|
%files
|
2011-05-17 13:25:07 +02:00
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc COPYING* ChangeLog FAQ PERMISSIONS README
|
|
|
|
%{_kde4_bindir}/k3b
|
|
|
|
%{_kde4_bindir}/k3bsetup
|
|
|
|
%{_kde4_modulesdir}/k3b*.so
|
|
|
|
%{_kde4_modulesdir}/kcm_k3b*.so
|
|
|
|
%{_kde4_modulesdir}/kio_videodvd.so
|
|
|
|
%{_kde4_libexecdir}/k3bsetuphelper
|
|
|
|
%{_kde4_libdir}/libk3bdevice.so.*
|
|
|
|
%{_kde4_libdir}/libk3blib.so.*
|
|
|
|
%{_kde4_applicationsdir}/k3b.desktop
|
|
|
|
%doc %{_kde4_htmldir}/en/k3b/
|
|
|
|
%{_kde4_iconsdir}/hicolor/*/apps/k3b.*
|
|
|
|
%{_kde4_appsdir}/k3b/
|
|
|
|
%{_kde4_appsdir}/konqsidebartng/virtual_folders/services/videodvd.desktop
|
|
|
|
%dir %{_kde4_appsdir}/solid
|
|
|
|
%dir %{_kde4_appsdir}/solid/actions
|
|
|
|
%{_kde4_appsdir}/solid/actions/k3b_*.desktop
|
2015-05-19 23:32:04 +02:00
|
|
|
%dir %{_datadir}/solid
|
|
|
|
%dir %{_datadir}/solid/actions
|
|
|
|
%{_datadir}/solid/actions/k3b_*.desktop
|
2011-05-17 13:25:07 +02:00
|
|
|
%{_kde4_servicesdir}/ServiceMenus/k3b_*.desktop
|
|
|
|
%{_kde4_servicesdir}/k3b*.desktop
|
|
|
|
%{_kde4_servicesdir}/kcm_k3b*.desktop
|
|
|
|
%{_kde4_servicesdir}/videodvd.protocol
|
|
|
|
%{_kde4_servicetypesdir}/k3bplugin.desktop
|
2014-08-27 22:18:17 +02:00
|
|
|
%{_kde4_datadir}/mime/packages/x-k3b.xml
|
2011-05-17 13:25:07 +02:00
|
|
|
%config %{_sysconfdir}/dbus-1/system.d/org.kde.kcontrol.k3bsetup.conf
|
2014-08-27 22:18:17 +02:00
|
|
|
%{_kde4_datadir}/dbus-1/system-services/org.kde.kcontrol.k3bsetup.service
|
|
|
|
%{_kde4_datadir}/polkit-1/actions/org.kde.kcontrol.k3bsetup.policy
|
2009-04-30 17:39:08 +02:00
|
|
|
|
|
|
|
%files devel
|
2011-05-17 13:25:07 +02:00
|
|
|
%defattr(-,root,root,-)
|
2014-08-27 22:18:17 +02:00
|
|
|
%{_kde4_includedir}/k3b*.h
|
2011-05-17 13:25:07 +02:00
|
|
|
%{_kde4_libdir}/libk3bdevice.so
|
|
|
|
%{_kde4_libdir}/libk3blib.so
|
|
|
|
|
|
|
|
%files lang -f k3b.lang
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%exclude %{_kde4_htmldir}/en/k3b/
|
2009-04-30 17:39:08 +02:00
|
|
|
|
|
|
|
%changelog
|