File rakarrack.spec of Package rakarrack

#
# spec file for package rakarrack
#
# 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 http://bugs.opensuse.org/
#


Name:           rakarrack
Version:        0.6.2
Release:        0
Summary:        Guitar effects processor for GNU / Linux
License:        GPL-2.0+
Group:          Productivity/Multimedia/Sound/Utilities
Url:            http://rakarrack.sourceforge.net/
Source:         %{name}-%{version}.tar.bz2
Patch1:         %{name}-desktop.file.diff
BuildRequires:  alsa-devel
BuildRequires:  alsa-utils
BuildRequires:  fltk-devel
BuildRequires:  automake
BuildRequires:  gcc-c++
BuildRequires:  libjack-devel
BuildRequires:  libjpeg-devel
BuildRequires:  libpng-devel
BuildRequires:  libsamplerate-devel
BuildRequires:  libsndfile-devel
BuildRequires:  pkgconfig
BuildRequires:  update-desktop-files
BuildRequires:  xorg-x11-devel
BuildRequires:  fftw3-devel
Requires:       jack
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Rakarrack is a guitar effects processor for GNU / Linux simple and
easy to use but it contains features that make it unique in this
field of applications. It contains 10 effects: Linear Equalizer,
Parametric Equalizer, Compressor, Distorsion, Overdrive, Echo,
Chorus, Phaser, Flanger and Reverb. It integrates a tuner and a
MIDI converter (experimental). It can also be handled by an external
MIDI controller. The settings designed by the user can be stored
in presets and these presets can be used to create banks of effects.

%package doc
Summary:        Documentation for %{name}
Requires:       %{name} = %{version}
BuildArch: noarch

%description doc
Documentation for %{name}.
Rakarrack is a guitar effects processor.

%prep
%setup -q
rm doc/COPYING
%patch1 -p1

%build

./autogen.sh
%configure --enable-docdir=yes --docdir=%{_docdir}/%{name}

%__make %{?_smp_mflags}

%install
%makeinstall
%suse_update_desktop_file -i %{name} AudioVideo AudioVideoEditing


%files
%defattr(-, root, root)
%{_bindir}/*
%doc %{_mandir}/man1/*
%doc %{_docdir}/%{name}/AUTHORS
%doc %{_docdir}/%{name}/ChangeLog
%doc %{_docdir}/%{name}/COPYING
%doc %{_docdir}/%{name}/README
%doc %{_docdir}/%{name}/NEWS
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/*
%{_datadir}/pixmaps/*.png
%{_datadir}/applications/%{name}.desktop

%files doc
%defattr(-, root, root)
%exclude %{_docdir}/%{name}/AUTHORS
%exclude %{_docdir}/%{name}/ChangeLog
%exclude %{_docdir}/%{name}/COPYING
%exclude %{_docdir}/%{name}/README
%exclude %{_docdir}/%{name}/NEWS
%{_docdir}/%{name}


%changelog