File guitarix.spec of Package guitarix
#
# spec file for package guitarix
#
# 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/
#
Summary: Simple Linux amplifier for jack
License: GPL-2.0+
Group: Productivity/Multimedia/Sound/Utilities
Name: guitarix
Version: 0.32.2
Release: 0
Url: http://guitarix.sourceforge.net/
Source: http://downloads.sourceforge.net/project/guitarix/guitarix/guitarix2-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: boost-devel
BuildRequires: fdupes
BuildRequires: fftw3-devel
BuildRequires: gcc-c++
BuildRequires: gperf
BuildRequires: gtk2-devel
BuildRequires: gtkmm2-devel
BuildRequires: intltool
BuildRequires: ladspa-devel
BuildRequires: libavahi-gobject-devel
BuildRequires: libjack-devel
BuildRequires: liblrdf-devel
BuildRequires: libsigc++2-devel
BuildRequires: libsndfile-devel
BuildRequires: lv2-devel
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(bluez)
BuildRequires: pkgconfig(eigen3)
BuildRequires: pkgconfig(lilv-0)
Requires: jack
Requires: meterbridge
Requires: vorbis-tools
Patch0: guitarix-0.28.2-gperf_tmpl-fix.patch
Patch1: fpexception.patch
%description
guitarix is a simple mono amplifier to jack with one input and two
outputs. Designed to get nice trash/metal/rock/guitar sounds.
Available are the controls for bass, treble, gain, balance,
distortion, freeverb, impulse response (pre state), crybaby(wah),
feedback/feedforward-filter and echo. A fixed resonator will use,
when distortion is disabled.
guitarix is licensed under GPL.
%package -n %{name}-devel
Summary: Devel files for guitarix
Group: Development/Tools/Other
Requires: guitarix = %{version}
%description -n %{name}-devel
This package contains the development files for guitarix, which is a simple
mono amplifier to jack with one input and two outputs. Designed to get nice
trash/metal/rock/guitar sounds.
Available are the controls for bass, treble, gain, balance,
distortion, freeverb, impulse response (pre state), crybaby(wah),
feedback/feedforward-filter and echo. A fixed resonator will use,
when distortion is disabled.
%package -n ladspa-%{name}
Summary: Guitarix - ladspa plugins
Group: Productivity/Multimedia/Sound/Utilities
%description -n ladspa-%{name}
guitarix is a simple mono amplifier to jack with one input and two
outputs. Designed to get nice trash/metal/rock/guitar sounds.
Available are the controls for bass, treble, gain, balance,
distortion, freeverb, impulse response (pre state), crybaby(wah),
feedback/feedforward-filter and echo. A fixed resonator will use,
when distortion is disabled.
This package contains the LADSPA plugins (UniqID 4061 - 4068).
%package -n lv2-%{name}
Summary: Guitarix - LV2 plugins
Group: Productivity/Multimedia/Sound/Utilities
%description -n lv2-%{name}
guitarix is a simple mono amplifier to jack with one input and two
outputs. Designed to get nice trash/metal/rock/guitar sounds.
Available are the controls for bass, treble, gain, balance,
distortion, freeverb, impulse response (pre state), crybaby(wah),
feedback/feedforward-filter and echo. A fixed resonator will use,
when distortion is disabled.
This package contains the LV2 plugins.
%package -n bestplugins
Summary: Best Mega Pack 1+3
Group: Productivity/Multimedia/Sound/Utilities
%description -n bestplugins
Bestplugins Mega Pack 1+3 contains dozens of guitar sounds from famous bands.
%prep
%setup -q -n guitarix-%{version}
%patch0 -p1
%patch1 -p0
%build
#todo: add faust package to openSUSE
export LDFLAGS="-ldl"
./waf configure -v --faust --libdir=%{_libdir} --ladspadir=%{_libdir}/ladspa --prefix=%{_prefix} --cxxflags="$RPM_OPT_FLAGS -std=gnu++0x"
./waf build -v %{?jobs: -j%jobs}
%install
./waf install --destdir="$RPM_BUILD_ROOT"
%suse_update_desktop_file -i %{name} AudioVideo Music
%find_lang %{name}
%fdupes -s $RPM_BUILD_ROOT/%{_datadir}/gx_head/
%fdupes -s $RPM_BUILD_ROOT/%{_libdir}/lv2/
%clean
[ -d "%{buildroot}" -a "%{buildroot}" != "" ] && %__rm -rf "%{buildroot}"
%post devel
/sbin/ldconfig
%postun devel
/sbin/ldconfig
%files -f %{name}.lang
%defattr(-,root,root)
%doc changelog COPYING README
%dir %{_datadir}/gx_head
%dir %{_datadir}/gx_head/builder
%dir %{_datadir}/gx_head/skins
%dir %{_datadir}/gx_head/sounds/
%{_bindir}/%{name}
%{_datadir}/gx_head/builder/*.glade
%{_datadir}/gx_head/*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/gx_head*.png
%{_datadir}/pixmaps/gx_bypass.png
%{_datadir}/pixmaps/gx_off.png
%{_datadir}/pixmaps/gx_on.png
%{_datadir}/pixmaps/gx_log_grey.png
%{_datadir}/pixmaps/gx_log_red.png
%{_datadir}/pixmaps/gx_log_yellow.png
%{_datadir}/pixmaps/jackd_off.png
%{_datadir}/pixmaps/jackd_on.png
%files -n %{name}-devel
%defattr(-,root,root)
%{_libdir}/libgxw*.so*
%files -n lv2-%{name}
%defattr(-,root,root)
%{_libdir}/lv2/
%files -n ladspa-%{name}
%defattr(-,root,root)
%dir %{_libdir}/ladspa
%{_libdir}/ladspa/*.so
%dir %{_datadir}/ladspa
%dir %{_datadir}/ladspa/rdf
%{_datadir}/ladspa/rdf/%{name}.rdf
%{_datadir}/ladspa/rdf/%{name}_amp.rdf
%files -n bestplugins
%defattr(-,root,root)
%dir %{_datadir}/gx_head/sounds/bands/
%changelog