File gamix.spec of Package gamix

#
# spec file for package gamix
#
# 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:           gamix
Version:        1.99.p14
Release:        0
Summary:        GTK ALSA Audio Mixer
License:        GPL-2.0+
Group:          Productivity/Multimedia/Sound/Mixers
Url:            http://www1.tcnet.ne.jp/fmurata/linux/down/
Source:         http://www1.tcnet.ne.jp/fmurata/linux/down/gamix-%{version}.tar.bz2
Source1:        gamix.desktop
Source2:        gamix.png
Patch0:         gamix-gtk2-fix.diff
Patch1:         gamix-nogtk1.diff
Patch2:         gamix-disconnect-redraw.diff
BuildRequires:  alsa-devel
BuildRequires:  gtk2-devel
BuildRequires:  libtool
BuildRequires:  pkgconfig
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(gtk+-2.0)
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
A graphical mixer program for ALSA. Its GUI is based on GTK+.

%prep
%setup -q
%patch0
%patch1
%patch2

%build
autoreconf --force --install
test ! -f po/Makevars.template || mv po/Makevars.template po/Makevars
CFLAGS="%{optflags}"
%configure \
  --with-gtk-target=-2.0
make %{?_smp_mflags}
cd ..

%install
make DESTDIR="$RPM_BUILD_ROOT" install
%suse_update_desktop_file -i gamix AudioVideo Mixer GTK
mkdir -p %{buildroot}%{_datadir}/pixmaps
cp %{SOURCE2} %{buildroot}%{_datadir}/pixmaps
%find_lang %{name}

%files -f %{name}.lang
%defattr(-, root, root)
%doc AUTHORS COPYING ChangeLog NEWS README README.euc TODO
%{_bindir}/*
%{_datadir}/applications/*.desktop
%{_datadir}/pixmaps/*.png

%changelog
openSUSE Build Service is sponsored by