e792d65
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
e792d65
e792d65
Name:		zynjacku
b8e8d20
Version:	6
fb44aa9
Release:	12%{?dist}
e792d65
Summary:	LV2 synths and plugins host
e792d65
Group:		Applications/Multimedia
e792d65
License:	GPLv2
e792d65
URL:		http://home.gna.org/zynjacku/	
e792d65
Source0:	http://download.gna.org/zynjacku/%{name}-%{version}.tar.bz2
9c47867
# Derived from the art/logo/logo.png from the tarball
e792d65
Source1:	%{name}.png
e792d65
Source2:	%{name}.desktop
e792d65
Source3:	lv2rack.desktop
9c47867
# Correct lv2 path on 64bit systems:
9c47867
# https://gna.org/bugs/?13687
9c47867
Patch0:		%{name}-lv2path.patch
e792d65
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
e792d65
e792d65
BuildRequires:	gtk2-devel
e792d65
BuildRequires:	desktop-file-utils
e792d65
BuildRequires:	jack-audio-connection-kit-devel
9c47867
BuildRequires:	lv2core-devel
e792d65
BuildRequires:	lv2dynparam-devel
e792d65
BuildRequires:	pygtk2-devel
e792d65
e792d65
Requires:	pygtk2-libglade
9c47867
Requires:	python-lash
e792d65
e792d65
Provides:	lv2rack = %{version}-%{release}
e792d65
b8e8d20
# we don't want to provide private python extension libs
b8e8d20
%{?filter_setup:
b8e8d20
%filter_provides_in %{python_sitearch}/.*\.so$ 
b8e8d20
%filter_setup
b8e8d20
}
b8e8d20
e792d65
%description
e792d65
zynjacku is JACK based, GTK (2.x) host for LV2 synths. It has one JACK MIDI
e792d65
input port (routed to all hosted synths) and one (two for stereo synths) JACK
e792d65
audio output port per plugin. Such design provides multi-timbral sound by 
e792d65
running several synth plugins.
e792d65
e792d65
zynjacku is a nunchaku weapon for JACK audio synthesis. You have solid parts
e792d65
for synthesis itself and you have flexible part that allows synthesis to suit
e792d65
your needs.
e792d65
e792d65
lv2rack is a host for LV2 effect plugins. 
e792d65
e792d65
%prep
e792d65
%setup -q
9c47867
%patch0 -p1 -b .lv2path
b8e8d20
b8e8d20
# Remove redundant shebang
b8e8d20
sed -i '\|/usr/bin/env|d' zynworld/host.py
e792d65
e792d65
%build
e792d65
export am_cv_python_pythondir=%{python_sitearch}
e792d65
%configure --disable-static
e792d65
make %{?_smp_mflags}
e792d65
e792d65
e792d65
%install
e792d65
rm -rf $RPM_BUILD_ROOT
e792d65
make install DESTDIR=$RPM_BUILD_ROOT
e792d65
9c47867
# Fix weird permissions
9c47867
chmod -x $RPM_BUILD_ROOT%{python_sitearch}/zynworld/*.py
9c47867
e792d65
# We don't need duplicate files
d3eb3ac
ln -sf %{?_pkgdocdir}%{!?_pkgdocdir:%{_docdir}/%{name}-%{version}}/gpl.txt \
d3eb3ac
	$RPM_BUILD_ROOT/%{_datadir}/%{name}/
e792d65
e792d65
# Kill .la files
9c47867
rm -f $RPM_BUILD_ROOT%{python_sitearch}/zynworld/*.la
e792d65
e792d65
# Icon
e792d65
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/icons/hicolor/72x72/apps/
e792d65
cp -a %{SOURCE1} $RPM_BUILD_ROOT/%{_datadir}/icons/hicolor/72x72/apps/
e792d65
e792d65
# .desktop files
e792d65
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/applications/
9c47867
desktop-file-install --dir=$RPM_BUILD_ROOT%{_datadir}/applications/ %{SOURCE2}
9c47867
desktop-file-install --dir=$RPM_BUILD_ROOT%{_datadir}/applications/ %{SOURCE3}
e792d65
e792d65
e792d65
%post
e792d65
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
e792d65
e792d65
%postun
e792d65
if [ $1 -eq 0 ] ; then
e792d65
	touch --no-create %{_datadir}/icons/hicolor &>/dev/null
e792d65
	gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
e792d65
fi
e792d65
e792d65
%posttrans
e792d65
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
e792d65
e792d65
e792d65
%clean
e792d65
rm -rf $RPM_BUILD_ROOT
e792d65
e792d65
e792d65
%files
e792d65
%defattr(-,root,root,-)
e792d65
%doc AUTHORS gpl.txt NEWS README
e792d65
%{_bindir}/*
9c47867
%{python_sitearch}/zynworld
e792d65
%{_datadir}/%{name}/
e792d65
%{_datadir}/applications/*.desktop
e792d65
%{_datadir}/icons/hicolor/72x72/apps/%{name}.png
e792d65
e792d65
%changelog
fb44aa9
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 6-12
fb44aa9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
fb44aa9
9e589c5
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6-11
9e589c5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
9e589c5
412df58
* Wed Aug 20 2014 Kevin Fenzi <kevin@scrye.com> - 6-10
412df58
- Rebuild for rpm bug 1131892
412df58
5c0ea41
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6-9
5c0ea41
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
5c0ea41
7c6e235
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6-8
7c6e235
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
7c6e235
d3eb3ac
* Sat Nov  9 2013 Ville Skyttä <ville.skytta@iki.fi> - 6-7
d3eb3ac
- Fix symlink to gpl.txt when doc dir is unversioned.
d3eb3ac
- Fix bogus date in %%changelog.
d3eb3ac
2f19091
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6-6
2f19091
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
2f19091
ab4cfb7
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6-5
ab4cfb7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
ab4cfb7
d330266
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6-4
d330266
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
d330266
2fb0aad
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6-3
2fb0aad
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
2fb0aad
f0f587b
* Tue Dec 06 2011 Adam Jackson <ajax@redhat.com> - 6-2
f0f587b
- Rebuild for new libpng
f0f587b
b8e8d20
* Sat Apr 30 2011 Orcan Ogetbil <oget[dot]fedora[at]gmail[dot]com> - 6-1
b8e8d20
- Update to 6
b8e8d20
- Drop upstreamed patch
b8e8d20
33742c9
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5-6
33742c9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
33742c9
3f98d4f
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 5-5
3f98d4f
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
3f98d4f
afa9b52
* Fri Jan 22 2010 Orcan Ogetbil <oget[dot]fedora[at]gmail[dot]com> - 5-4
afa9b52
- Don't crash when there are no plugins installed RHBZ#551480
afa9b52
a100d75
* Wed Aug 05 2009 Orcan Ogetbil <oget[dot]fedora[at]gmail[dot]com> - 5-3
a100d75
- Update the .desktop file
a100d75
e060040
* Mon Jul 27 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5-2
e060040
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
e060040
d3eb3ac
* Sun Jun 14 2009 Orcan Ogetbil <oget[dot]fedora[at]gmail[dot]com> - 5-1
9c47867
- Update to 5
9c47867
e792d65
* Fri Apr 10 2009 Orcan Ogetbil <oget[dot]fedora[at]gmail[dot]com> - 4-2
e792d65
- License is GPLv2
e792d65
- Clean up unnecessary bits from SPEC file
e792d65
e792d65
* Mon Mar 30 2009 Orcan Ogetbil <oget[dot]fedora[at]gmail[dot]com> - 4-1
e792d65
- Initial build