File gramofile.spec of Package gramofile

#
# spec file for package gramofile
#
# 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:           gramofile
BuildRequires:  ncurses-devel
Url:            http://www.opensourcepartners.nl/~costar/gramofile/
Version:        1.6
Release:        379
License:        GPLv2+
Group:          Productivity/Multimedia/Sound/Editors and Convertors
Summary:        Digitize Audio Records
Source0:        gramofile-%{version}.tar.gz
Source1:        gramofile.1
Patch1:         gramofile-1.6-makefiles.dif
Patch2:         gramofile-codecleanup.dif
Patch20:        20-no-busy-wait-after-rec.dpatch
Patch90:        90_report_recording_errors.dpatch
Provides:       gramofil = %{version}-%{release}
Obsoletes:      gramofil < %{version}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Gramofile is a program to digitize audio records. Through the
application of several filters, it is possible to accomplish a
significant reduction of disturbances like ticks and scratches. Data is
saved in WAV format, making it easy to record on CD with programs like
cdrecord or xcdroast.



Authors:
--------
    J.A. Bezemer <J.A.Bezemer@ITS.TUDelft.NL>

%prep
%setup -q
%patch1 -p1
%patch2 -p1
%patch20 -p0
%patch90 -p0

%build
%{__make} %{?_smp_mflags}

%install
make DESTDIR=%{buildroot} docdir=%{_docdir}/%{name} install
install -Dm644 %{SOURCE1} %{buildroot}%{_mandir}/man1/gramofile.1

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
/usr/bin/bplay_gramo
/usr/bin/brec_gramo
/usr/bin/gramofile
%{_mandir}/man1/gramofile.1*
%dir %{_docdir}/%{name}
%{_docdir}/%{name}/ChangeLog
%{_docdir}/%{name}/COPYING
%{_docdir}/%{name}/README
%{_docdir}/%{name}/Signproc.txt
%{_docdir}/%{name}/TODO
%{_docdir}/%{name}/Tracksplit2.txt
%{_docdir}/%{name}/Tracksplit.txt

%changelog
openSUSE Build Service is sponsored by