110 lines
3.1 KiB
RPMSpec
110 lines
3.1 KiB
RPMSpec
#
|
|
# spec file for package kmix
|
|
#
|
|
# 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
|
|
|
|
Name: kmix
|
|
Version: 18.04.2
|
|
Release: 0
|
|
%define kf5_version 5.26.0
|
|
# Latest stable Applications (e.g. 17.08 in KA, but 17.11.80 in KUA)
|
|
%{!?_kapp_version: %global _kapp_version %(echo %{version}| awk -F. '{print $1"."$2}')}
|
|
Summary: Sound Mixer
|
|
License: GPL-2.0+
|
|
Group: Productivity/Multimedia/Sound/Mixers
|
|
Url: http://www.kde.org
|
|
Source: %{name}-%{version}.tar.xz
|
|
BuildRequires: alsa-devel
|
|
BuildRequires: extra-cmake-modules
|
|
BuildRequires: glib2-devel
|
|
BuildRequires: kcmutils-devel
|
|
BuildRequires: kconfigwidgets-devel
|
|
BuildRequires: kdbusaddons-devel
|
|
BuildRequires: kdelibs4support-devel
|
|
BuildRequires: kf5-filesystem
|
|
BuildRequires: kglobalaccel-devel
|
|
BuildRequires: ki18n-devel
|
|
BuildRequires: kiconthemes-devel
|
|
BuildRequires: kxmlgui-devel
|
|
BuildRequires: libcanberra-devel
|
|
BuildRequires: libpulse-devel
|
|
BuildRequires: phonon4qt5-devel
|
|
BuildRequires: pkgconfig
|
|
BuildRequires: plasma-framework-devel
|
|
BuildRequires: update-desktop-files
|
|
BuildRequires: pkgconfig(Qt5Core) >= 5.2.0
|
|
BuildRequires: pkgconfig(Qt5DBus) >= 5.2.0
|
|
BuildRequires: pkgconfig(Qt5Gui) >= 5.2.0
|
|
BuildRequires: pkgconfig(Qt5Widgets) >= 5.2.0
|
|
Obsoletes: %{name}5 < %{version}
|
|
Obsoletes: kmix5 < %{version}
|
|
Provides: %{name}5 = %{version}
|
|
%if %{with lang}
|
|
Recommends: %{name}-lang
|
|
%endif
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%description
|
|
KMix is a fully featured audio mixer by KDE.
|
|
|
|
%if %{with lang}
|
|
%lang_package
|
|
%endif
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
%cmake_kf5 -d build -- -DKMIX_KF5_BUILD=ON
|
|
%make_jobs
|
|
|
|
%install
|
|
%kf5_makeinstall -C build
|
|
%if %{with lang}
|
|
%find_lang %{name} --with-man --all-name
|
|
%kf5_find_htmldocs
|
|
%endif
|
|
%suse_update_desktop_file org.kde.kmix AudioVideo Mixer
|
|
|
|
%post -p /sbin/ldconfig
|
|
%postun -p /sbin/ldconfig
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc COPYING*
|
|
%config %{_kf5_configdir}/autostart/*kmix*.desktop
|
|
%{_datadir}/plasma/services/
|
|
%{_kf5_applicationsdir}/*kmix*.desktop
|
|
%{_kf5_bindir}/kmix*
|
|
%{_kf5_dbusinterfacesdir}/org.kde.kmix.*
|
|
%{_kf5_iconsdir}/hicolor/*/*/*
|
|
%{_kf5_kxmlguidir}/kmix/
|
|
%{_kf5_libdir}/libkdeinit5_kmix.so
|
|
%{_kf5_libdir}/libkdeinit5_kmixctrl.so
|
|
%{_kf5_plugindir}/
|
|
%{_kf5_servicesdir}/
|
|
%{_kf5_sharedir}/kmix/
|
|
%dir %{_kf5_htmldir}/en/kmix/
|
|
%{_kf5_htmldir}/en/kmix/*
|
|
%{_kf5_appstreamdir}/org.kde.kmix.appdata.xml
|
|
|
|
%if %{with lang}
|
|
%files lang -f %{name}.lang
|
|
%endif
|
|
|
|
%changelog
|