File meterbridge.spec of Package meterbridge

#
# spec file for package meterbridge (Version 0.9.2)
#
# Copyright (c) 2009 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:           meterbridge
BuildRequires:  SDL_image-devel gcc-c++ jack-devel update-desktop-files
Summary:        A Meterbridge for the JACK Audio System
Version:        0.9.2
Release:        474
License:        GPL v2 or later
Group:          Productivity/Multimedia/Sound/Visualization
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Url:            http://plugin.org.uk/meterbridge/
Source:         %{name}-%{version}.tar.bz2
Source1:        meterbridge.desktop
Source2:        meterbridge.png
Patch:          meterbridge-gcc4-fix.diff
Patch1:         meterbridge-makefile-fix.diff

%description
Meterbridge is a JACK (JACK Audio Connection Kit) client for
visualizing audio signals.



Authors:
--------
    Steve Harris <steve@plugin.org.uk>

%prep
%setup -q
%patch
%patch1

%build
# This package failed when testing with -Wl,-as-needed being default.
# So we disable it here, if you want to retest, just delete this comment and the line below.
export SUSE_ASNEEDED=0
%{?suse_update_config:%{suse_update_config -f}}
autoreconf --force --install
%configure
make

%install
[ "$RPM_BUILD_ROOT" != "/" -a -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install
%suse_update_desktop_file -i meterbridge AudioVideo Music
mkdir -p $RPM_BUILD_ROOT%{_datadir}/pixmaps
cp %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/pixmaps

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

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

%changelog
* Fri Jun 19 2009 coolo@novell.com
- disable as-needed for this package as it fails to build with it
* Tue Jan 16 2007 tiwai@suse.de
- fix compile optimizations.
- use %%configure.
* Fri Jan 27 2006 tiwai@suse.de
- fixed BuildRequires
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Wed Oct 12 2005 tiwai@suse.de
- removed glib* from neededfobuild.
* Mon Apr 11 2005 tiwai@suse.de
- fix the build with gcc-4.0 again.
* Fri Apr 08 2005 tiwai@suse.de
- fixed build for gcc-4.0.
* Sun Jan 11 2004 adrian@suse.de
- build as user
* Mon Sep 15 2003 tiwai@suse.de
- added desktop file and icon.
* Wed Jul 02 2003 tiwai@suse.de
- updated to version 0.9.2.
* Thu Jan 16 2003 tiwai@suse.de
- updated to version 0.9.0.
* Tue Nov 26 2002 tiwai@suse.de
- initial version: 0.0.6.
openSUSE Build Service is sponsored by