File gramofile.spec of Package gramofile

# spec file for package gramofile
# Copyright (c) 2015 SUSE LINUX 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

Name:           gramofile
Version:        1.6
Release:        0
Summary:        Digitize Audio Records
License:        GPL-2.0+
Group:          Productivity/Multimedia/Sound/Editors and Convertors
#BuildRequires:  fftw3-devel
Source1:        gramofile.1
Patch1:         gramofile-1.6-makefiles.dif
Patch2:         gramofile-codecleanup.dif
Patch3:         20-no-busy-wait-after-rec.dpatch
Patch4:         90_report_recording_errors.dpatch
Patch5:         20-overflow-fixes.dpatch
Patch6:         20-shell-quoting.dpatch
Patch7:         20-via-kludge.dpatch
Patch8:         20-warning-fixes.dpatch
Patch9:         30-basename-fix.dpatch
Patch10:        40-fast-swap-and-buffer.dpatch
Patch11:        50-cmf3.dpatch
Patch12:        60-bplay_in_gramo.dpatch
Patch13:        70-endian-fixes.dpatch
Patch14:        80_fix_wav_length.dpatch
Patch15:        91_rename_cdrecord_wodim.dpatch
BuildRequires:  ncurses-devel
Provides:       gramofil = %{version}-%{release}
Obsoletes:      gramofil < %{version}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

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.

%setup -q
%patch1 -p1
%patch2 -p1
# Disable for now, needs to be ported to fftw3

make %{?_smp_mflags} CC="gcc"

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

%dir %{_docdir}/%{name}

openSUSE Build Service is sponsored by