SHA256
1
0
forked from pool/kmix
kmix/kmix.spec

83 lines
2.4 KiB
RPMSpec
Raw Normal View History

#
# spec file for package kmix
#
# Copyright (c) 2015 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/
#
Name: kmix
BuildRequires: alsa-devel
BuildRequires: glib2-devel
BuildRequires: libcanberra-devel
BuildRequires: libkde4-devel
BuildRequires: libpulse-devel
BuildRequires: xz
Summary: Sound Mixer
License: GPL-2.0+
Group: Productivity/Multimedia/Sound/Mixers
Url: http://www.kde.org
Version: 14.12.3
Release: 0
Source0: %{name}-%{version}.tar.xz
# PATCH-FIX-OPENSUSE Who-needs-event-slider.patch -- since KNotify will no longer be able pretending it can
# control volume, also remove the Event slider within KMix
Patch0: Who-needs-event-slider.patch
Patch1: kmix-4.14.3-fix-bashisms.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%kde4_runtime_requires
%description
KDE's full featured mini mixer
%prep
%setup -q
%if 0%{?suse_version} >= 1310
%patch0 -p1
%endif
%patch1 -p1
%build
%cmake_kde4 -d build
%make_jobs
%install
pushd build
%kde4_makeinstall
popd
%suse_update_desktop_file kmix AudioVideo Mixer
%kde_post_install
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_kde4_applicationsdir}/kmix.desktop
%{_kde4_appsdir}/kmix/
%{_kde4_bindir}/kmix
%{_kde4_bindir}/kmixctrl
%{_kde4_bindir}/kmixremote
%{_kde4_datadir}/autostart/kmix_autostart.desktop
%{_kde4_datadir}/autostart/restore_kmix_volumes.desktop
%{_kde4_datadir}/dbus-1/interfaces/org.kde.kmix.*
%{_kde4_htmldir}/en/kmix/
%{_kde4_iconsdir}/hicolor/*/apps/kmix.*
%{_kde4_libdir}/libkdeinit4_kmix.so
%{_kde4_libdir}/libkdeinit4_kmixctrl.so
%{_kde4_modulesdir}/kded_kmixd.so
%{_kde4_servicesdir}/kded/kmixd.desktop
%{_kde4_servicesdir}/kmixctrl_restore.desktop
%changelog