File pavucontrol.spec of Package pavucontrol-gtk2
#
# spec file for package pavucontrol
#
# 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: pavucontrol
Summary: PulseAudio Volume Control
License: GPL-2.0+
Group: Productivity/Multimedia/Sound/Mixers
Version: 3.0
Release: 0
Url: http://freedesktop.org/software/pulseaudio/pavucontrol/
Source: http://freedesktop.org/software/pulseaudio/pavucontrol/%{name}-%{version}.tar.gz
BuildRequires: gcc-c++
BuildRequires: intltool
BuildRequires: update-desktop-files
# Only needed because we don't (and won't) support building xz tarballs by default... See bnc#697467
BuildRequires: xz
BuildRequires: pkgconfig(gtkmm-2.4) >= 2.16
BuildRequires: pkgconfig(libcanberra-gtk) >= 0.16
BuildRequires: pkgconfig(libpulse) >= 0.9.16
BuildRequires: pkgconfig(libpulse-mainloop-glib) >= 0.9.16
BuildRequires: pkgconfig(sigc++-2.0)
Recommends: %{name}-lang
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
PulseAudio Volume Control (pavucontrol) is a simple GTK based volume
control tool ("mixer") for the PulseAudio sound server. In contrast to
classic mixer tools this one allows you to control both the volume of
hardware devices and of each playback stream separately.
%package gtk2
Summary: PulseAudio Volume Control
Group: Productivity/Multimedia/Sound/Mixers
%description gtk2
PulseAudio Volume Control (pavucontrol) is a simple GTK based volume
control tool ("mixer") for the PulseAudio sound server. In contrast to
classic mixer tools this one allows you to control both the volume of
hardware devices and of each playback stream separately.
%lang_package
%prep
%setup -q
%build
%configure --disable-lynx --disable-gtk3
%__make %{?jobs:-j%jobs}
%install
%makeinstall
%{find_lang} %{name} %{?no_lang_C}
%suse_update_desktop_file %{name}
# This is documentation we prefer to have in the package doc directory
rm -r %{buildroot}%{_datadir}/doc/pavucontrol
%clean
rm -rf $RPM_BUILD_ROOT
%if 0%{?suse_version} > 1130
%post gtk2
%desktop_database_post
%endif
%if 0%{?suse_version} > 1130
%postun gtk2
%desktop_database_postun
%endif
%files gtk2
%defattr(-,root,root)
%doc LICENSE doc/README doc/README.html doc/style.css
%{_bindir}/*
%{_datadir}/pavucontrol
%{_datadir}/applications/*.desktop
%files lang -f %{name}.lang
%changelog