File pavucontrol.spec of Package pavucontrol

# spec file for package pavucontrol
# Copyright (c) 2017 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

Name:           pavucontrol
Summary:        PulseAudio Volume Control
License:        GPL-2.0+
Group:          Productivity/Multimedia/Sound/Mixers
Version:        3.0
Release:        0
# PATCH-FIX-UPSTREAM pavucontrol-use-C++11-for-building.patch -- Use C++11 for building
Patch0:         pavucontrol-use-C++11-for-building.patch
BuildRequires:  gcc-c++
BuildRequires:  intltool
# Needed for patch0 as it touches buildsystem.
BuildRequires:  libtool
BuildRequires:  update-desktop-files
# Only needed because we don't (and won't) support building xz tarballs by default... See bnc#697467
BuildRequires:  xz
%if 0%{?favor_gtk2}
BuildRequires:  pkgconfig(gtkmm-2.4) >= 2.16
BuildRequires:  pkgconfig(libcanberra-gtk) >= 0.16
BuildRequires:  pkgconfig(gtkmm-3.0) >= 2.99
BuildRequires:  pkgconfig(libcanberra-gtk3) >= 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

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.

%setup -q
%patch0 -p1

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

%{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



%doc LICENSE doc/README doc/README.html doc/style.css

%files lang -f %{name}.lang

openSUSE Build Service is sponsored by