File gmixer.spec of Package gmixer

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

Name:           gmixer
Version:        1.3
Release:        0
Summary:        Simple and Lightweight Audio Mixer
License:        GPL-3.0+
Group:          Productivity/Multimedia/Sound/Mixers
Source1:        %name.desktop
Source2:        %name-trayicon.desktop
Patch0:         %name-version_fix.patch
Patch1:         gmixer-1.3-setup-py.patch
Patch2:         gmixer-fix-unreferened-sep.diff
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  desktop-file-utils
BuildRequires:  fdupes
BuildRequires:  gtk2-devel
BuildRequires:  pkgconfig
BuildRequires:  python-devel
BuildRequires:  python-gtk-devel
Requires:       python-gstreamer-0_10
Requires:       python-gtk
Requires:       python-xlib

A simple gtk/gstreamer audio mixer, aimed to work with light desktop managers.

 - support all mixer plugins of gstreamer (alsa/oss/pulseaudio/...)
 - tray icon support
 - support special keys of multimedia keyboard. 

%setup -q
%patch0 -p1 -b .version_fix
%patch1 -p1 -b .gmixer-1.3-setup-py
%patch2 -p1

python build

python install \
  --prefix=%{_prefix} \
  --root=$RPM_BUILD_ROOT \
# icon
install -dm 755 $RPM_BUILD_ROOT%{_datadir}/pixmaps
install -m 644 data/mixer.png \
# link the icon back to ../gmixer/mixer.png to ensure fdupes won't do it wrong
ln -sf %{_datadir}/pixmaps/gmixer.png %{buildroot}%{_datadir}/gmixer/mixer.png
# menu-entry
desktop-file-install \
  --dir $RPM_BUILD_ROOT%{_datadir}/applications \
# autostart launcher
desktop-file-install \
  --dir $RPM_BUILD_ROOT%{_sysconfdir}/xdg/autostart \
%find_lang %{name}
%fdupes -s %buildroot




%files -f %{name}.lang
%doc gpl.txt