File gmixer.spec of Package gmixer

# spec file for package gmixer (Version 1.3)
# Copyright (c) 2010 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

# norootforbuild

%if %suse_version <= 1110
%define python_sitelib	%py_sitedir
%define python_sitearch	%py_sitedir

Name:           gmixer
Version:        1.3
Release:        8
Summary:        Simple and Lightweight Audio Mixer
Group:          Productivity/Multimedia/Sound/Mixers
License:        GPLv3+
Source1:        %name.desktop
Source2:        %name-trayicon.desktop
Patch0:         %name-version_fix.patch
Patch1:         gmixer-1.3-setup-py.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  pkgconfig
BuildRequires:  gtk2-devel python-devel python-gtk-devel
BuildRequires:  desktop-file-utils fdupes
Requires:       python-gtk python-gstreamer-0_10 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

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 \
# 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 

openSUSE Build Service is sponsored by