- Add Don-t-suggest-to-install-libburn.patch to not suggest to the user to install libburn on startup. The message is actually misleading as k3b would actually use cdrskin which is packaged separately in openSUSE. But let's stick to prefer the proven cdrecord for now, people can still install cdrskin if they'd prefer to use it. (boo#1050715) OBS-URL: https://build.opensuse.org/request/show/512680 OBS-URL: https://build.opensuse.org/package/show/KDE:Applications/k3b?expand=0&rev=28
213 lines
6.4 KiB
RPMSpec
213 lines
6.4 KiB
RPMSpec
#
|
|
# spec file for package k3b
|
|
#
|
|
# Copyright (c) 2017 SUSE LINUX 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_without lang
|
|
|
|
%bcond_without ffmpeg
|
|
%bcond_with lame
|
|
%bcond_with mad
|
|
|
|
Name: k3b
|
|
Version: 17.04.3
|
|
Release: 0
|
|
Summary: CD/DVD/Blu-ray Burning Application for KDE
|
|
License: GPL-2.0+
|
|
Group: Productivity/Multimedia/CD/Record
|
|
Url: http://www.kde.org
|
|
Source: %{name}-%{version}.tar.xz
|
|
# PATCH-FIX-OPENSUSE
|
|
Patch: Re-enable-transcode-support.patch
|
|
# PATCH-FIX-OPENSUSE
|
|
Patch1: Don-t-suggest-to-install-libburn.patch
|
|
|
|
BuildRequires: extra-cmake-modules
|
|
BuildRequires: fdupes
|
|
BuildRequires: flac-devel
|
|
BuildRequires: libdvdread-devel
|
|
BuildRequires: libkcddb-devel
|
|
BuildRequires: libmpcdec-devel
|
|
BuildRequires: libmusicbrainz-devel
|
|
BuildRequires: libsamplerate-devel
|
|
BuildRequires: libsndfile-devel
|
|
BuildRequires: libvorbis-devel
|
|
BuildRequires: update-desktop-files
|
|
BuildRequires: cmake(KF5Archive) >= 5.21.0
|
|
BuildRequires: cmake(KF5Config) >= 5.21.0
|
|
BuildRequires: cmake(KF5CoreAddons) >= 5.21.0
|
|
BuildRequires: cmake(KF5DocTools) >= 5.21.0
|
|
BuildRequires: cmake(KF5FileMetaData) >= 5.21.0
|
|
BuildRequires: cmake(KF5I18n) >= 5.21.0
|
|
BuildRequires: cmake(KF5IconThemes) >= 5.21.0
|
|
BuildRequires: cmake(KF5JobWidgets) >= 5.21.0
|
|
BuildRequires: cmake(KF5KCMUtils) >= 5.21.0
|
|
BuildRequires: cmake(KF5KIO) >= 5.21.0
|
|
BuildRequires: cmake(KF5NewStuff) >= 5.21.0
|
|
BuildRequires: cmake(KF5Notifications) >= 5.21.0
|
|
BuildRequires: cmake(KF5NotifyConfig) >= 5.21.0
|
|
BuildRequires: cmake(KF5Service) >= 5.21.0
|
|
BuildRequires: cmake(KF5Solid) >= 5.21.0
|
|
BuildRequires: cmake(KF5WidgetsAddons) >= 5.21.0
|
|
BuildRequires: cmake(KF5XmlGui) >= 5.21.0
|
|
BuildRequires: cmake(Qt5Core) >= 5.5.0
|
|
BuildRequires: cmake(Qt5DBus) >= 5.5.0
|
|
BuildRequires: cmake(Qt5Gui) >= 5.5.0
|
|
BuildRequires: cmake(Qt5Test) >= 5.5.0
|
|
BuildRequires: pkgconfig(taglib)
|
|
%if %{with ffmpeg}
|
|
BuildRequires: pkgconfig(libavcodec)
|
|
BuildRequires: pkgconfig(libavformat)
|
|
%endif
|
|
%if %{with lame}
|
|
BuildRequires: libmp3lame-devel
|
|
Requires: lame
|
|
%endif
|
|
%if %{with mad}
|
|
BuildRequires: pkgconfig(mad)
|
|
%endif
|
|
Requires: %{_bindir}/cdrdao
|
|
Requires: %{_bindir}/cdrecord
|
|
Requires: %{_bindir}/mkisofs
|
|
Requires: %{_bindir}/readcd
|
|
Requires: dvd+rw-tools
|
|
Requires(post): hicolor-icon-theme
|
|
Requires(postun): hicolor-icon-theme
|
|
Requires(post): shared-mime-info
|
|
Requires(postun): shared-mime-info
|
|
Recommends: %{_bindir}/normalize
|
|
Recommends: %{_bindir}/sox
|
|
Recommends: %{_bindir}/transcode
|
|
Recommends: vcdimager
|
|
Provides: kde4-k3b = 4.2.2.svn951754
|
|
Obsoletes: k3b-codecs
|
|
Obsoletes: kde4-k3b < 4.2.2.svn951754
|
|
Recommends: %{name}-lang
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%description
|
|
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.
|
|
|
|
%package devel
|
|
Summary: Development files for k3b
|
|
Group: Development/Libraries/C and C++
|
|
Requires: %{name} = %{version}
|
|
|
|
%description devel
|
|
This package contain files needed for development with k3b.
|
|
|
|
%if %{with lang}
|
|
%lang_package
|
|
%endif
|
|
|
|
%prep
|
|
%setup -q
|
|
%patch -p1
|
|
%patch1 -p1
|
|
|
|
%build
|
|
CXXFLAGS="%{optflags} -fno-strict-aliasing"
|
|
%cmake_kf5 -d build -- -DBUILD_TESTING=ON -DKF5_INCLUDE_INSTALL_DIR=%{_kf5_includedir}
|
|
%make_jobs
|
|
|
|
%install
|
|
%kf5_makeinstall -C build
|
|
%if %{with lang}
|
|
%find_lang %{name} --with-man --all-name
|
|
%if 0%{?suse_version} > 1320 || 0%{?sle_version} >= 120300
|
|
%kf5_find_htmldocs
|
|
%else
|
|
# %%kf5_find_htmldocs is only defined since Leap 42.3
|
|
CURDIR=`pwd`
|
|
pushd %{buildroot}%{_kf5_htmldir}
|
|
for i in *; do
|
|
if ! [ -d "/usr/share/locale/${i}" ]; then
|
|
echo "Removing unsupported translation %{_kf5_htmldir}/${i}"
|
|
rm -rf "$i"
|
|
elif [ "$i" != "en" ]; then
|
|
echo "%doc %lang($i) %{_kf5_htmldir}/${i}" >> $CURDIR/%{name}.lang
|
|
fi
|
|
done
|
|
popd
|
|
%endif
|
|
%endif
|
|
|
|
%suse_update_desktop_file -r org.kde.k3b Qt KDE AudioVideo DiscBurning
|
|
|
|
%fdupes -s %{buildroot}
|
|
|
|
%post
|
|
/sbin/ldconfig
|
|
%desktop_database_post
|
|
%icon_theme_cache_post
|
|
|
|
%postun
|
|
/sbin/ldconfig
|
|
%desktop_database_postun
|
|
%icon_theme_cache_postun
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%doc COPYING* ChangeLog FAQ.txt PERMISSIONS.txt README.txt
|
|
%{_kf5_bindir}/k3b
|
|
%config %{_kf5_configdir}/k3btheme.knsrc
|
|
%{_kf5_plugindir}/k3b*.so
|
|
%{_kf5_plugindir}/kcm_k3b*.so
|
|
%{_kf5_plugindir}/kio_videodvd.so
|
|
%{_kf5_libdir}/libk3bdevice.so.*
|
|
%{_kf5_libdir}/libk3blib.so.*
|
|
%{_kf5_applicationsdir}/org.kde.k3b.desktop
|
|
%{_kf5_appstreamdir}/org.kde.k3b.appdata.xml
|
|
%doc %{_kf5_htmldir}/en/k3b/
|
|
%{_kf5_iconsdir}/hicolor/*/apps/k3b.*
|
|
%{_kf5_iconsdir}/hicolor/*/mimetypes/application-x-k3b.*
|
|
%dir %{_datadir}/konqsidebartng
|
|
%dir %{_datadir}/konqsidebartng/virtual_folders
|
|
%dir %{_datadir}/konqsidebartng/virtual_folders/services
|
|
%{_datadir}/konqsidebartng/virtual_folders/services/videodvd.desktop
|
|
%dir %{_datadir}/solid
|
|
%dir %{_datadir}/solid/actions
|
|
%{_datadir}/solid/actions/k3b_*.desktop
|
|
%{_datadir}/k3b
|
|
%dir %{_kf5_servicesdir}/ServiceMenus
|
|
%{_kf5_servicesdir}/ServiceMenus/k3b_*.desktop
|
|
%{_kf5_servicesdir}/k3b*.desktop
|
|
%{_kf5_servicesdir}/kcm_k3b*.desktop
|
|
%{_kf5_servicesdir}/videodvd.protocol
|
|
%{_kf5_servicetypesdir}/k3bplugin.desktop
|
|
%{_kf5_notifydir}/k3b.notifyrc
|
|
%{_kf5_kxmlguidir}/k3b
|
|
%{_datadir}/mime/packages/x-k3b.xml
|
|
|
|
%files devel
|
|
%defattr(-,root,root,-)
|
|
%doc COPYING*
|
|
%{_includedir}/k3b*.h
|
|
%{_libdir}/libk3bdevice.so
|
|
%{_libdir}/libk3blib.so
|
|
|
|
%if %{with lang}
|
|
%files lang -f %{name}.lang
|
|
%doc COPYING*
|
|
%endif
|
|
|
|
%changelog
|