File paprefs.spec of Package paprefs

#
# spec file for package paprefs
#
# Copyright (c) 2011 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/
#

# norootforbuild


Name:           paprefs
Summary:        PulseAudio Preferences
Version:        0.9.9
Release:        10
License:        GPLv2+
Group:          Productivity/Multimedia/Sound/Utilities
Url:            http://0pointer.de/lennart/projects/paprefs/
Source:         %{name}-%{version}.tar.bz2
# PATCH-FIX-UPSTREAM paprefs-packagekit.patch sreeves@novell.com -- Apply upstream patches to check for packagekit service
Patch0:         paprefs-packagekit.patch
BuildRequires:  gcc-c++
BuildRequires:  gconfmm-devel
BuildRequires:  intltool
BuildRequires:  libglademm-devel
BuildRequires:  libpulse-devel
BuildRequires:  update-desktop-files
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
%patch0 -p1

%build
%configure --disable-lynx
%__make %{?jobs:-j%jobs}

%install
%makeinstall
%suse_update_desktop_file %{name} HardwareSettings
%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