File calf.spec of Package calf

# norootforbuild

%define _prefix	/usr

Name:			calf
Summary:		Set of audio effect plugins
Version:		0.0.60.git.2015.10.18
Release:                1
Group:			Productivity/Multimedia/Sound/Utilities
License:		LGPL-2.1
URL:			https://github.com/calf-studio-gear/calf
Source0:		calf-%{version}.tar.xz
BuildRoot:		%{_tmppath}/calf-%{version}-build
BuildRequires:	alsa-devel, fftw3-devel
BuildRequires:	gcc-c++, libtool
BuildRequires:	gtk2-devel, gconf2-devel, cairo-devel
BuildRequires:	lash-devel
BuildRequires:	libexpat-devel
BuildRequires:	libglade2-devel
BuildRequires:	libgnomecanvas-devel
BuildRequires:	libjack-devel jack
BuildRequires:	liblo-devel
BuildRequires:	lv2-devel, fluidsynth-devel
BuildRequires:	readline-devel
BuildRequires:	update-desktop-files
BuildRequires:  fdupes
BuildRequires:  libiec61883
Requires:		jack
Requires:		lash

BuildRequires:	libsndfile-devel

Conflicts:	dssi-calf ladspa-calf lv2-calf calf-kxstudio

%description
Calf Studio Gear is an audio plug-in pack for LV2 and JACK environments under
LINUX operating systems. The suite contains lots of effects (delay,
modulation, signal processing, filters, equalizers, dynamics, distortion and
mastering effects), instruments (SF2 player, organ simulator and a monophonic
synthesizer) and tools (analyzer, mono/stereo tools, crossovers).
Calf Studio Gear aims for a professional audience.

http://calf-studio-gear.org


%package -n calf-devel
Summary:	LV2 plugins devel files
Group:          Development/Libraries/C and C++


%description -n calf-devel
Calf LV2 plugins headers

Calf Studio Gear is an audio plug-in pack for LV2 and JACK environments under
LINUX operating systems.

http://calf-studio-gear.org

%prep
%setup -q -n calf-%{version}


%build
./autogen.sh --prefix=%{_prefix} \
	--with-lv2-dir=%{_libdir}/lv2 --enable-sse

%__make %{?jobs:-j%{jobs}} \
	pkglibdir=%{_libdir}/calf


%install

%makeinstall pkglibdir=%{_libdir}/calf

# icon
%__install -dm 755 %{buildroot}%{_datadir}/pixmaps
%__install -m 644 icons/calf_48x48.png \
	%{buildroot}%{_datadir}/pixmaps/calf.png

# menu-entry
%__cat > calf.desktop << EOF
[Desktop Entry]
Type=Application
Name=calf
GenericName=calf
Comment=Calf is a set of audio effect plugins
Exec=calfjackhost
Icon=calf
#Categories=AudioVideo;Music;
EOF
%suse_update_desktop_file -i calf AudioVideo Music

# symlink duplicates (mostly for images)
%fdupes -s %{buildroot}/%{_datadir}/calf/
%fdupes -s %{buildroot}/%{_datadir}/


%clean
[ -d "%{buildroot}" -a "%{buildroot}" != "" ] && %__rm -rf "%{buildroot}"

%files
%defattr(-, root, root)
%doc AUTHORS COPYING TODO README
%{_bindir}/calfjackhost
%dir %{_libdir}/lv2/calf.lv2/
%{_libdir}/lv2/calf.lv2/*

%dir %{_libdir}/calf
%{_libdir}/calf/*.so
%dir %{_datadir}/calf
%dir %{_datadir}/doc/calf
%{_datadir}/doc/calf/*
%{_datadir}/calf/*
%{_mandir}/man1/calfjackhost.1.gz
%{_mandir}/man7/calf.7.gz
%{_datadir}/icons/hicolor/*/apps/calf.png
%{_datadir}/icons/hicolor/*/apps/calf_plugin.png
%{_datadir}/icons/hicolor/*/apps/calf.svg
%{_datadir}/icons/hicolor/*/apps/calf_plugin.svg
%{_datadir}/pixmaps/calf.png
%{_datadir}/applications/calf.desktop
%{_datadir}/bash-completion/completions/calf



%files -n calf-devel
%defattr(-, root, root)
%dir %{_libdir}/calf
%{_libdir}/calf/*.a
%{_libdir}/calf/*.la


%changelog