9bf8f35
Name:		calf
94135fc
Version:	0.0.18.6
ac8797b
Release:	3%{?dist}
9bf8f35
Summary:	Audio plugins pack
9bf8f35
Group:		Applications/Multimedia
9bf8f35
# The jackhost code is GPLv2+ 
9bf8f35
# The GUI code is LGPLv2+
9bf8f35
# ladspa plugin is LGPLv2+
9bf8f35
# lv2 plugin is GPLv2+ and LGPLv2+ and Public Domain
9bf8f35
# dssi plugin is LGPLv2+
9bf8f35
License:	GPLv2+ and LGPLv2+
9bf8f35
URL:		http://calf.sourceforge.net/
9bf8f35
Source0:	http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
4d9b19c
Source1:	%{name}-dssi.desktop
4d9b19c
# LV2: use correct LADSPA URIs
e2e6d75
# http://repo.or.cz/w/calf.git/commit/fb526c311c4ab401986b7d559d32732d6acd7cde
4d9b19c
Patch0:		%{name}.git-fb526c311c4ab401986b7d559d32732d6acd7cde.patch
9bf8f35
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
9bf8f35
9bf8f35
BuildRequires:	desktop-file-utils
9bf8f35
BuildRequires:	dssi-devel
9bf8f35
BuildRequires:	expat-devel
9bf8f35
BuildRequires:	glib2-devel
9bf8f35
BuildRequires:	gtk2-devel
9bf8f35
BuildRequires:	jack-audio-connection-kit-devel
9bf8f35
BuildRequires:	ladspa-devel
9bf8f35
BuildRequires:	lash-devel
9bf8f35
BuildRequires:	libglade2-devel
9bf8f35
BuildRequires:	lv2core-devel
9bf8f35
9bf8f35
%global common_desc \
9bf8f35
The Calf project aims at providing a set of high quality open source audio\
9bf8f35
plugins for musicians. All the included plugins are designed to be used with\
9bf8f35
multitrack software, as software replacement for instruments and guitar stomp\
9bf8f35
boxes.
9bf8f35
9bf8f35
%description
9bf8f35
%common_desc
9bf8f35
9bf8f35
The plugins are available in LV2, DSSI, Standalone JACK and LADSPA formats.
9bf8f35
This package contains the common files and the Standalone JACK plugin.
9bf8f35
9bf8f35
%package -n ladspa-%{name}-plugins
9bf8f35
Summary:	Calf plugins in LADSPA format
9bf8f35
Group:		Applications/Multimedia
9bf8f35
License:	LGPLv2+
9bf8f35
Requires:	%{name} = %{version}-%{release}
9bf8f35
Requires:	ladspa
9bf8f35
9bf8f35
%description -n ladspa-%{name}-plugins
9bf8f35
%common_desc
9bf8f35
9bf8f35
This package contains only LADSPA effect plugins (no GUI), with LRDF.
9bf8f35
9bf8f35
%package -n lv2-%{name}-plugins
9bf8f35
Summary:	Calf plugins in LV2 format
9bf8f35
Group:		Applications/Multimedia
9bf8f35
License:	GPLv2+ and LGPLv2+ and Public Domain
9bf8f35
Requires:	%{name} = %{version}-%{release}
9bf8f35
Requires:	lv2core
9bf8f35
9bf8f35
%description -n lv2-%{name}-plugins
9bf8f35
%common_desc
9bf8f35
9bf8f35
This package contains LV2 synthesizers and effects, MIDI I/O and GUI
9bf8f35
extensions.
9bf8f35
9bf8f35
%package -n dssi-%{name}-plugins
9bf8f35
Summary:	Calf plugins in DSSI format
9bf8f35
Group:		Applications/Multimedia
9bf8f35
License:	LGPLv2+
9bf8f35
Requires:	%{name} = %{version}-%{release}
9bf8f35
Requires:	dssi
9bf8f35
9bf8f35
%description -n dssi-%{name}-plugins
9bf8f35
%common_desc
9bf8f35
9bf8f35
This package contains DSSI synthesizers and effects, also GUI extensions.
9bf8f35
9bf8f35
%prep
9bf8f35
%setup -q
4d9b19c
%patch0 -p1 -b .ladspa_uri
9bf8f35
9bf8f35
# Make sure that optflags are not overriden.
9bf8f35
sed -i 's|-O3||' configure
9bf8f35
9bf8f35
%build
9bf8f35
# Add GenericName to the .desktop file
9bf8f35
echo "GenericName= Audio Effects" >> %{name}.desktop.in
9bf8f35
%configure \
9bf8f35
	--with-ladspa-dir=%{_libdir}/ladspa/ \
9bf8f35
	--with-dssi-dir=%{_libdir}/dssi/ \
9bf8f35
	--with-lv2-dir=%{_libdir}/lv2 
9bf8f35
9bf8f35
make %{?_smp_mflags}
9bf8f35
9bf8f35
9bf8f35
%install
9bf8f35
rm -rf $RPM_BUILD_ROOT
9bf8f35
make install DESTDIR=$RPM_BUILD_ROOT
9bf8f35
4d9b19c
# The Jack host
9bf8f35
desktop-file-install \
9bf8f35
	--remove-category="Application" \
4d9b19c
	--add-category="X-Synthesis" \
9bf8f35
	--dir=$RPM_BUILD_ROOT%{_datadir}/applications \
9bf8f35
	$RPM_BUILD_ROOT/%{_datadir}/applications/%{name}.desktop
9bf8f35
4d9b19c
# The DSSI host
4d9b19c
ln -s jack-dssi-host $RPM_BUILD_ROOT%{_bindir}/%{name}
4d9b19c
desktop-file-install \
4d9b19c
	--dir=$RPM_BUILD_ROOT%{_datadir}/applications \
4d9b19c
	%{SOURCE1}
4d9b19c
9bf8f35
# We don't need this file:
9bf8f35
rm -f $RPM_BUILD_ROOT/%{_datadir}/icons/hicolor/icon-theme.cache
9bf8f35
9bf8f35
%clean
9bf8f35
rm -rf $RPM_BUILD_ROOT
9bf8f35
9bf8f35
%post
9bf8f35
touch --no-create %{_datadir}/icons/hicolor &>/dev/null
9bf8f35
update-mime-database %{_datadir}/mime &> /dev/null || :
9bf8f35
9bf8f35
%postun
9bf8f35
if [ $1 -eq 0 ] ; then
9bf8f35
	touch --no-create %{_datadir}/icons/hicolor &>/dev/null
9bf8f35
	gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null
9bf8f35
fi
9bf8f35
update-mime-database %{_datadir}/mime &> /dev/null || :
9bf8f35
9bf8f35
%posttrans
9bf8f35
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
9bf8f35
9bf8f35
9bf8f35
%files
9bf8f35
%defattr(-,root,root,-)
9bf8f35
%doc AUTHORS ChangeLog COPYING* README TODO
9bf8f35
%{_bindir}/%{name}jackhost
9bf8f35
%{_datadir}/applications/%{name}.desktop
9bf8f35
%{_datadir}/%{name}/
9bf8f35
%{_datadir}/icons/hicolor/*/apps/%{name}.png
9bf8f35
%{_mandir}/man1/%{name}*
9bf8f35
%{_mandir}/man7/%{name}*
9bf8f35
9bf8f35
%files -n ladspa-%{name}-plugins
9bf8f35
%defattr(-,root,root,-)
9bf8f35
%{_libdir}/ladspa/%{name}.so
9bf8f35
%{_datadir}/ladspa/rdf/%{name}.rdf
9bf8f35
9bf8f35
%files -n lv2-%{name}-plugins
9bf8f35
%defattr(-,root,root,-)
9bf8f35
%{_libdir}/lv2/%{name}.lv2/
9bf8f35
9bf8f35
%files -n dssi-%{name}-plugins
9bf8f35
%defattr(-,root,root,-)
4d9b19c
%{_bindir}/%{name}
4d9b19c
%{_datadir}/applications/%{name}-dssi.desktop
9bf8f35
%{_libdir}/dssi/%{name}/
9bf8f35
%{_libdir}/dssi/%{name}.so
9bf8f35
9bf8f35
%changelog
ac8797b
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.18.6-3
ac8797b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
ac8797b
Jesse Keating 1e0fc07
* Wed Sep 29 2010 jkeating - 0.0.18.6-2
Jesse Keating 1e0fc07
- Rebuilt for gcc bug 634757
Jesse Keating 1e0fc07
94135fc
* Sat Sep 11 2010 Orcan Ogetbil <oget[DOT]fedora[AT]gmail[DOT]com> - 0.0.18.6-1
94135fc
- Update to 0.0.18.6
94135fc
- Drop upstreamed patch
94135fc
e2e6d75
* Wed Jul 14 2010 Orcan Ogetbil <oget[DOT]fedora[AT]gmail[DOT]com> - 0.0.18.5-4
e2e6d75
- Fix ladspa_wrapper crash RHBZ#600713
e2e6d75
152e5ca
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.18.5-3
152e5ca
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
152e5ca
4d9b19c
* Mon Jul 13 2009 Orcan Ogetbil <oget[DOT]fedora[AT]gmail[DOT]com> - 0.0.18.5-2
4d9b19c
- Add a .desktop file for the DSSI plugin
4d9b19c
- Add X-Synthesis category to the existing .desktop file of the JACK plugin
4d9b19c
- Backport the LADSPA URI fix from trunk
4d9b19c
e8d9997
* Thu Jun 11 2009 Orcan Ogetbil <oget[DOT]fedora[AT]gmail[DOT]com> - 0.0.18.5-1
e8d9997
- Update to 0.0.18.5
e8d9997
- Drop upstreamed gcc44 patch
e8d9997
9bf8f35
* Mon Mar 30 2009 Orcan Ogetbil <oget[DOT]fedora[AT]gmail[DOT]com> - 0.0.18.3-1
9bf8f35
- Initial build