File gamix.spec of Package gamix
#
# spec file for package gamix
#
# Copyright (c) 2011 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 http://bugs.opensuse.org/
#
# norootforbuild
Name: gamix
BuildRequires: alsa-devel gtk2-devel update-desktop-files
BuildRequires: libtool
Summary: GTK ALSA Audio Mixer
Version: 1.99.p14
Release: 261
License: GPL-2.0+
Group: Productivity/Multimedia/Sound/Mixers
AutoReqProv: on
Source: http://www1.tcnet.ne.jp/fmurata/linux/down/gamix-%{version}.tar.bz2
Source1: gamix.desktop
Source2: gamix.png
Patch: gamix-gtk2-fix.diff
Patch1: gamix-nogtk1.diff
Patch2: gamix-disconnect-redraw.diff
Url: http://www1.tcnet.ne.jp/fmurata/linux/down/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
A graphical mixer program for ALSA. Its GUI is based on GTK+.
Authors:
--------
Fumihiko Murata <fmurata@p1.tcnet.ne.jp>
%prep
%setup -q
%patch
%patch1
%patch2
%build
autoreconf --force --install
test ! -f po/Makevars.template || mv po/Makevars.template po/Makevars
CFLAGS="$RPM_OPT_FLAGS"
%configure \
--with-gtk-target=-2.0
make
cd ..
%install
make DESTDIR="$RPM_BUILD_ROOT" install
%suse_update_desktop_file -i gamix AudioVideo Mixer GTK
mkdir -p $RPM_BUILD_ROOT%{_datadir}/pixmaps
cp %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/pixmaps
%find_lang %{name}
%clean
rm -rf $RPM_BUILD_ROOT
%files -f %{name}.lang
%defattr(-, root, root)
%doc AUTHORS COPYING ChangeLog NEWS README README.euc TODO
%{_bindir}/*
%{_datadir}/applications/*.desktop
%{_datadir}/pixmaps/*.png
%changelog