File alsamixergui.spec of Package alsamixergui

#
# spec file for package alsamixergui (Version 0.9.0rc1)
#
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild

Name:           alsamixergui
BuildRequires:  alsa-devel fltk-devel gcc-c++ libjpeg-devel libpng-devel update-desktop-files xorg-x11-devel
%define _prefix	/usr
%define package_version 0.9.0rc1-2
Summary:        An FLTK-Based Front-End for alsamixer
Version:        0.9.0rc1
Release:        584
License:        GNU General Public License (GPL)
Group:          Productivity/Multimedia/Sound/Mixers
# Source:		%{name}-%{version}.tar.bz2
Source:         %{name}-%{package_version}.tar.bz2
Source1:        alsamixergui.desktop
Source2:        alsamixergui.png
Patch:          alsamixergui.dif
Patch1:         alsamixergui-memleak-fix.diff
Patch2:         alsamixergui-lvalue.diff
URL:            ftp://www.iua.upf.es/pub/mdeboer
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
AlsaMixerGui is an FLTK-based front-end for alsamixer. It is written
directly on top of the alsamixer source, so it should provide the same
functionality.



Authors:
--------
    Maarten de Boer <mdeboer@iua.upf.es>

%prep
%setup -q -n %{name}-%{package_version}
#%setup
%patch
%patch1
%patch2
%{?suse_update_config:%{suse_update_config -f}}

%build
autoreconf -fi
export CXXFLAGS="$RPM_OPT_FLAGS" 
%configure
make

%install
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
make DESTDIR="$RPM_BUILD_ROOT" install
%if %suse_version > 820
%suse_update_desktop_file -i alsamixergui AudioVideo Mixer
%endif
mkdir -p $RPM_BUILD_ROOT/usr/share/pixmaps
cp %{SOURCE2} $RPM_BUILD_ROOT/usr/share/pixmaps

%clean
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT

%files
%defattr(-, root, root)
%{_bindir}/alsamixergui
%if %suse_version > 820
/usr/share/applications/*.desktop
%endif
/usr/share/pixmaps/*.png
%doc README AUTHORS COPYING ChangeLog NEWS

%changelog -n alsamixergui
* Tue Dec 19 2006 - tiwai@suse.de
- move to /usr/bin (#225085).
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Wed Apr 06 2005 - pth@suse.de
- Fix broken incrementation of an enum
- Use autoreconf
* Tue Jan 04 2005 - tiwai@suse.de
- Fixed memory leak (bug #43887)
* Tue Feb 17 2004 - adrian@suse.de
- fix Categories
* Sun Jan 11 2004 - adrian@suse.de
- build as user
* Mon Sep 15 2003 - tiwai@suse.de
- added desktop icon.
* Mon Aug 18 2003 - tiwai@suse.de
- added desktop file.
- fixed the file list.
* Mon Nov 11 2002 - ro@suse.de
- changed neededforbuild <xshared> to <x-devel-packages>
- changed neededforbuild <xdevel> to <>
* Wed Aug 14 2002 - tiwai@suse.de
- neededforbuild xf86 -> xdevel, xshared
* Tue Aug 13 2002 - ro@suse.de
- adapt configure for new fltk
* Tue Jun 25 2002 - tiwai@suse.de
- updated to ver.0.9.0rc1-2.
  now using automake.
* Mon Mar 25 2002 - tiwai@suse.de
- fixed handling of mono capture switch.
  no longer abort on es1938 driver.
* Tue Mar 12 2002 - tiwai@suse.de
- fixed handling of capture volume / switch.
* Wed Mar 06 2002 - tiwai@suse.de
- fixed compile with older fltk.
- fixed handling of capture volumes and switches (synchronized
  with the latest alsamixer code).
* Fri Feb 01 2002 - ro@suse.de
- changed neededforbuild <libpng> to <libpng-devel-packages>
* Wed Dec 12 2001 - tiwai@suse.de
- added libpng and libjpeg to neededforbuild.
- removed link to libGL.  mesa and mesa-devel are removed from
  neededbuild, too.
- fixed compile with fltk-1.1.0b6.
* Fri Dec 07 2001 - tiwai@suse.de
- version 0.9.0beta1 - modified for the latest ALSA API
  and the latest FLTK.
* Fri Nov 24 2000 - tiwai@suse.de
- Initial version: 0.5.7-3.
openSUSE Build Service is sponsored by