File padevchooser.spec of Package padevchooser

#
# spec file for package padevchooser
#
# 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/
#



Name:           padevchooser
Version:        0.9.4
Release:        141
License:        GPLv2+
Summary:        PulseAudio Device Chooser
Url:            http://0pointer.de/lennart/projects/padevchooser/
Group:          Productivity/Multimedia/Sound/Utilities
Source0:        padevchooser-0.9.4.svn20070925.tar.gz
#Source0:        http://0pointer.de/lennart/projects/padevchooser/padevchooser-%{version}.tar.gz
Source1:        padevchooser.png
# PATCH-MISSING-TAG -- See http://en.opensuse.org/Packaging/Patches
Patch:          padevchooser-desktop-fix.diff
# PATCH-FIX-UPSTREAM padevchooser-no-symlinks.patch http://pulseaudio.org/ticket/279 rodrigo@novell.com
Patch1:         padevchooser-no-symlinks.patch
BuildRequires:  desktop-file-utils
BuildRequires:  gcc-c++
BuildRequires:  lynx
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(gconf-2.0)
BuildRequires:  pkgconfig(gnome-desktop-2.0)
BuildRequires:  pkgconfig(gtk+-2.0)
BuildRequires:  pkgconfig(libglade-2.0)
BuildRequires:  pkgconfig(libgnomeui-2.0)
BuildRequires:  pkgconfig(libnotify)
BuildRequires:  pkgconfig(libpulse)
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
PulseAudio Device Chooser (padevchooser) is a simple GTK tool which
   registers an icon in the tray area and allows quick access to
   some features of the PulseAudio sound server. Specifically it can
   do for you: * Notify about new sink/sources becoming available on
   the LAN

* Quickly change the default PulseAudio sink/source/server assigned
   to the current X11 display, selecting devices available on the
   LAN

* Start the auxiliary tools PulseAudio Volume Control, PulseAudio
Volume Meter, PulseAudio Manager, PulseAudio Preferences

%prep
%setup -q
%patch
%patch1 -p1

%build
%configure
make

%install
%makeinstall
mkdir -p %{buildroot}%{_datadir}/pixmaps
cp %{SOURCE1} %{buildroot}%{_datadir}/pixmaps/
%suse_update_desktop_file -r padevchooser AudioVideo Mixer

%clean
rm -rf %{buildroot}

%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
%{_bindir}/padevchooser
%{_datadir}/applications/padevchooser.desktop
%{_datadir}/pixmaps/padevchooser.png
%{_datadir}/padevchooser

%changelog
openSUSE Build Service is sponsored by