File gwc.spec of Package gwc

#
# spec file for package gwc (Version 0.21.10)
#
# 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 http://bugs.opensuse.org/
#

# norootforbuild


Name:           gwc
BuildRequires:  fftw3-devel flac-devel gnutls-devel libglade2-devel libgnomeprintui-devel libgnomeui-devel libsndfile-devel libwnck-devel update-desktop-files
%define package_version 0.21-10
Summary:        GNOME Wave Cleaner--Audio Restoration Application
Version:        0.21.10
Release:        2
License:        GPLv2+
Group:          Productivity/Multimedia/Sound/Editors and Convertors
Source:         gwc-%{package_version}.tar.bz2
Source1:        gwc.desktop
Source2:        gwc.png
Patch:          gwc-cflags-fix.dif
Patch1:         gwc-meschach-fix.dif
Patch2:         gwc-compile-fix.diff
Url:            http://gwc.sourceforge.net
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
AutoReqProv:    on

%description
GNOME Wave Cleaner (GWC) is a tool for cleaning up noisy audio files in
preparation for burning to CDs. The typical application is to record
the audio from vinyl LPs, 45s, 78s, etc, to a hard disk as a 16-bit,
stereo, 44.1khz wave formatted file then use GWC to apply denoising and
declicking algorithms.



Authors:
--------
    Jeffrey J. Welty <jeff@redhawk.org>

%prep
%setup -n %{name}-%{package_version}
%patch
%patch1
%patch2

%build
autoreconf -fi
(cd meschach; aclocal; autoconf)
export CFLAGS="$RPM_OPT_FLAGS"
%configure --enable-alsa
make OPT_CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"

%install
mkdir -p $RPM_BUILD_ROOT%{_bindir}
install -c -m 0755 gwc $RPM_BUILD_ROOT%{_bindir}
%suse_update_desktop_file -i gwc AudioVideo AudioVideoEditing
mkdir -p $RPM_BUILD_ROOT%{_datadir}/pixmaps
cp %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/pixmaps

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc README COPYING Changelog TODO
%doc doc
%{_bindir}/gwc
%{_datadir}/applications/*.desktop
%{_datadir}/pixmaps/*.png

%changelog
openSUSE Build Service is sponsored by