File paprefs.spec of Package paprefs
#
# spec file for package paprefs
#
# Copyright (c) 2014 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/
#
Name: paprefs
Summary: PulseAudio Preferences
License: GPL-2.0+
Group: Productivity/Multimedia/Sound/Utilities
Version: 0.9.10
Release: 0
Url: http://freedesktop.org/software/pulseaudio/paprefs/
Source: http://freedesktop.org/software/pulseaudio/paprefs/%{name}-%{version}.tar.xz
# PATCH-FIX-UPSTREAM paprefs-module-combine-sink.patch bnc#820594 oholecek@suse.com -- use module-combine-sink instead of module-combine
Patch: paprefs-module-combine-sink.patch
BuildRequires: dbus-1-glib-devel
BuildRequires: gcc-c++
BuildRequires: gconfmm-devel
BuildRequires: intltool
BuildRequires: libglademm-devel
BuildRequires: libpulse-devel
BuildRequires: update-desktop-files
# Only needed because we don't (and won't) support building xz tarballs by default... See bnc#697467
BuildRequires: xz
# paprefs changes gconf settings, read by the gconf PA module
Requires: pulseaudio-module-gconf
Recommends: %{name}-lang
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
PulseAudio Preferences (paprefs) is a simple GTK based configuration
dialog for the PulseAudio sound server.
Please note that this program can only configure local servers, and
requires that a special module module-gconf is loaded in the sound
server.
%lang_package
%prep
%setup -q
%patch
%build
%configure --disable-lynx
%__make %{?jobs:-j%jobs}
%install
%makeinstall
%suse_update_desktop_file %{name} HardwareSettings AudioVideo Utility
%find_lang %{name} %{?no_lang_C}
%clean
rm -rf $RPM_BUILD_ROOT
%if 0%{?suse_version} > 1130
%post
%desktop_database_post
%endif
%if 0%{?suse_version} > 1130
%postun
%desktop_database_postun
%endif
%files
%defattr(-,root,root)
%doc LICENSE doc/README doc/README.html
%{_bindir}/*
%{_datadir}/paprefs
%{_datadir}/applications/*.desktop
%files lang -f %{name}.lang
%changelog