9bf8f35
Name:		calf
e398b44
Version:	0.90.3
7a31f8f
Release:	7%{?dist}
9bf8f35
Summary:	Audio plugins pack
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+
719cf9d
URL:		http://calf-studio-gear.org/
a83bd8a
Source0:	http://calf-studio-gear.org/files/calf-%{version}.tar.gz
4d9b19c
Source1:	%{name}-dssi.desktop
2c21eff
# Add LADSPA / DSSI as dropped by upstream
2c21eff
# https://github.com/falkTX/calf.git calf-falktx
719cf9d
#Patch0:		calf-0.0.60-add-LADSPA-DSSI.patch
Orcan Ogetbil 3e974ff
# fixes a crash during build, sent upstream via email:
03b4dbf
#Patch0:		calf-pkglibdir_path.patch
Orcan Ogetbil 2432ce1
# fixes crash due to accessing index of a vector beyond its size. RHBZ#1581433
Orcan Ogetbil 2432ce1
# https://github.com/calf-studio-gear/calf/pull/177
03b4dbf
#Patch1:         calf-vector-size-crashfix.patch
9bf8f35
BuildRequires:	desktop-file-utils
9bf8f35
BuildRequires:	dssi-devel
9bf8f35
BuildRequires:	expat-devel
Orcan Ogetbil 3e974ff
BuildRequires:	gcc-c++
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
2c21eff
BuildRequires:	lv2-devel
2c21eff
BuildRequires:  fluidsynth-devel
2c21eff
BuildRequires:  cairo-devel
8cc2f63
BuildRequires:  libtool
bb08ad4
BuildRequires:  fftw3-devel
29bd3ba
BuildRequires: make
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
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
License:	GPLv2+ and LGPLv2+ and Public Domain
ed469ac
Requires:	%{name} = %{version}-%{release}
9bf8f35
Requires:	lv2core
9bf8f35
9bf8f35
%description -n lv2-%{name}-plugins
9bf8f35
%common_desc
9bf8f35
48fabc0
This package contains LV2 synthesizers and effects, MIDI I/O extension.
48fabc0
48fabc0
%package -n lv2-%{name}-plugins-gui
48fabc0
Summary:	Calf plugins in LV2 format
48fabc0
License:	GPLv2+ and LGPLv2+ and Public Domain
48fabc0
Requires:	%{name} = %{version}-%{release}
48fabc0
Requires:	lv2-%{name}-plugins
48fabc0
Requires:	lv2core
48fabc0
48fabc0
%description -n lv2-%{name}-plugins-gui
48fabc0
%common_desc
48fabc0
48fabc0
This package contains LV2 plugins GUI extension.
9bf8f35
9bf8f35
%package -n dssi-%{name}-plugins
9bf8f35
Summary:	Calf plugins in DSSI format
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
03b4dbf
#%%patch0 -p1
03b4dbf
#%%patch1 -p1
9bf8f35
9bf8f35
%build
9bf8f35
# Add GenericName to the .desktop file
9bf8f35
echo "GenericName= Audio Effects" >> %{name}.desktop.in
Orcan Ogetbil 3e974ff
#./autogen.sh
2c21eff
# Make sure that optflags are not overriden.
2c21eff
sed -i 's|-O3||' configure
2c21eff
9bf8f35
%configure \
9bf8f35
	--with-ladspa-dir=%{_libdir}/ladspa/ \
9bf8f35
	--with-dssi-dir=%{_libdir}/dssi/ \
2c21eff
	--with-lv2-dir=%{_libdir}/lv2 \
a83bd8a
	--enable-experimental=yes \
Orcan Ogetbil 3e974ff
%ifarch x86_64 %ix86
Orcan Ogetbil 3e974ff
	--enable-sse \
Orcan Ogetbil 3e974ff
%endif
Orcan Ogetbil 3e974ff
	--enable-ladspa
9bf8f35
make %{?_smp_mflags}
9bf8f35
9bf8f35
%install
9bf8f35
make install DESTDIR=$RPM_BUILD_ROOT
9bf8f35
4d9b19c
# The Jack host
9bf8f35
desktop-file-install \
9bf8f35
	--remove-category="Application" \
2c21eff
	--remove-key="Version" \
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
2c21eff
rm $RPM_BUILD_ROOT/%{_libdir}/%{name}/*.a*
2c21eff
719cf9d
#symlinks for dssi and ladspa
719cf9d
mkdir -p $RPM_BUILD_ROOT/%{_libdir}/ladspa
719cf9d
mkdir -p $RPM_BUILD_ROOT/%{_libdir}/dssi
00d4a98
ln -s %{_libdir}/calf/calf.so $RPM_BUILD_ROOT/%{_libdir}/ladspa/calf.so
00d4a98
ln -s %{_libdir}/calf/calf.so $RPM_BUILD_ROOT/%{_libdir}/dssi/calf.so
719cf9d
9bf8f35
%files
Orcan Ogetbil 3e974ff
%doc AUTHORS ChangeLog README TODO
Orcan Ogetbil 3e974ff
%license COPYING*
2c21eff
%{_bindir}/%{name}*
2c21eff
%{_libdir}/%{name}
9bf8f35
%{_datadir}/applications/%{name}.desktop
9bf8f35
%{_datadir}/%{name}/
2c21eff
%{_datadir}/icons/hicolor/*/apps/*
9bf8f35
%{_mandir}/man1/%{name}*
9bf8f35
%{_mandir}/man7/%{name}*
2c21eff
%{_docdir}/%{name}
Orcan Ogetbil 3e974ff
%{_datadir}/bash-completion/
9bf8f35
9bf8f35
%files -n ladspa-%{name}-plugins
9bf8f35
%{_libdir}/ladspa/%{name}.so
9bf8f35
9bf8f35
%files -n lv2-%{name}-plugins
48fabc0
%license COPYING*
48fabc0
%{_libdir}/lv2/%{name}.lv2
48fabc0
%exclude %{_libdir}/lv2/%{name}.lv2/calflv2gui.so
48fabc0
48fabc0
%files -n lv2-%{name}-plugins-gui
48fabc0
%{_libdir}/lv2/%{name}.lv2/calflv2gui.so
9bf8f35
9bf8f35
%files -n dssi-%{name}-plugins
4d9b19c
%{_bindir}/%{name}
4d9b19c
%{_datadir}/applications/%{name}-dssi.desktop
9bf8f35
%{_libdir}/dssi/%{name}.so
9bf8f35
9bf8f35
%changelog
7a31f8f
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.90.3-7
7a31f8f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
7a31f8f
ed469ac
* Mon Jun 29 2020 Gwyn Ciesla <gwync@protonmail.com> - 0.90.3-6
ed469ac
- Make lv2-calf-plugins require the main package.
ed469ac
07bf4b5
* Wed Apr 01 2020 Gwyn Ciesla <gwync@protonmail.com> - 0.90.3-5
07bf4b5
- Move gui to subpackage (vascom)
07bf4b5
Orcan Ogetbil 09193d9
* Mon Feb 17 2020 Orcan Ogetbil <oget[DOT]fedora[AT]gmail[DOT]com> - 0.90.3-4
Orcan Ogetbil 09193d9
- Rebuild against fluidsynth2
Orcan Ogetbil 09193d9
07fc3df
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.90.3-3
07fc3df
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
07fc3df
418c0f9
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.90.3-2
418c0f9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
418c0f9
e398b44
* Tue Jul 16 2019 Gwyn Ciesla <gwync@protonmail.com> - 0.90.3-1
e398b44
- 0.90.3.
e398b44
52f80c7
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.90.1-2
52f80c7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
52f80c7
03b4dbf
* Tue Aug 07 2018 Gwyn Ciesla <limburgher@gmail.com> - 0.90.1-1
03b4dbf
- 0.90.1.
03b4dbf
f7a339f
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.90.0-3
f7a339f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
f7a339f
Orcan Ogetbil 2432ce1
* Sat May 26 2018 Orcan Ogetbil <oget[DOT]fedora[AT]gmail[DOT]com> - 0.90.0-2
Orcan Ogetbil 2432ce1
- Fix crashes due to accessing an index of a vector beyond its size RHBZ#1581433
Orcan Ogetbil 2432ce1
Orcan Ogetbil 3e974ff
* Wed Mar 07 2018 Orcan Ogetbil <oget[DOT]fedora[AT]gmail[DOT]com> - 0.90.0-1
Orcan Ogetbil 3e974ff
- Latest upstream
Orcan Ogetbil 3e974ff
- Added BR: gcc-c++
Orcan Ogetbil 3e974ff
- moved COPYING into %%license
Orcan Ogetbil 3e974ff
4e4f4da
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.60-9
4e4f4da
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
4e4f4da
8b300c1
* Sun Jan 07 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.0.60-8
8b300c1
- Remove obsolete scriptlets
8b300c1
a2049b1
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.60-7
a2049b1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
a2049b1
b463df5
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.60-6
b463df5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
b463df5
6410b0e
* Mon May 15 2017 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.60-5
6410b0e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_27_Mass_Rebuild
6410b0e
e846651
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.60-4
e846651
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
e846651
a83bd8a
* Mon Apr 25 2016 Jon Ciesla <limburgher@gmail.com> - 0.0.60-3
a83bd8a
- Correct upstream tarball.
a83bd8a
- Enable experimental, BZ 1206761.
a83bd8a
00d4a98
* Mon Apr 25 2016 Jon Ciesla <limburgher@gmail.com> - 0.0.60-2
00d4a98
- Fix symlinks.
00d4a98
1ab0aff
* Sun Apr 24 2016 Jon Ciesla <limburgher@gmail.com> - 0.0.60-1
719cf9d
- Latest upstream, BZ 1229579.
719cf9d
1ab0aff
* Thu Feb 25 2016 Jon Ciesla <limburgher@gmail.com> - 0.0.19-10
0651213
- Fix FTBFS.
0651213
5c65e64
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.19-9
5c65e64
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
5c65e64
584450c
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.19-8
584450c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
584450c
ed8f3fa
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 0.0.19-7
ed8f3fa
- Rebuilt for GCC 5 C++11 ABI change
ed8f3fa
7387d17
* Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.19-6
7387d17
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
7387d17
b3abb32
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.19-5
b3abb32
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
b3abb32
2940a04
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.19-4
2940a04
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
2940a04
bb08ad4
* Sat May 04 2013 Brendan Jones <brendan.jones.it@gmail.com> 0.0.19-3
bb08ad4
- Another missing BR fftw3-devel
bb08ad4
8cc2f63
* Fri May 03 2013 Brendan Jones <brendan.jones.it@gmail.com> 0.0.19-2
8cc2f63
- Add libtool
8cc2f63
2c21eff
* Fri Dec 14 2012 Brendan Jones <brendan.jones.it@gmail.com> 0.0.19.0-1
2c21eff
- New upstream release
2b4ca31
d576a81
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.18.6-7
d576a81
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
d576a81
60551ee
* Tue Feb 28 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.18.6-6
60551ee
- Rebuilt for c++ ABI breakage
60551ee
4ad5c9a
* Mon Jan 09 2012 Orcan Ogetbil <oget[DOT]fedora[AT]gmail[DOT]com> - 0.0.18.6-5
4ad5c9a
- gcc-4.7 compile fix
4ad5c9a
- remove parts of the spec file that are no longer required by the guidelines
4ad5c9a
519958f
* Tue Dec 06 2011 Adam Jackson <ajax@redhat.com> - 0.0.18.6-4
519958f
- Rebuild for new libpng
519958f
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