%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} Name: zynjacku Version: 6 Release: 19%{?dist} Summary: LV2 synths and plugins host Group: Applications/Multimedia License: GPLv2 URL: http://home.gna.org/zynjacku/ Source0: http://download.gna.org/zynjacku/%{name}-%{version}.tar.bz2 # Derived from the art/logo/logo.png from the tarball Source1: %{name}.png Source2: %{name}.desktop Source3: lv2rack.desktop # Correct lv2 path on 64bit systems: # https://gna.org/bugs/?13687 Patch0: %{name}-lv2path.patch BuildRequires: gtk2-devel BuildRequires: desktop-file-utils BuildRequires: jack-audio-connection-kit-devel BuildRequires: lv2core-devel BuildRequires: lv2dynparam-devel BuildRequires: pygtk2-devel Requires: pygtk2-libglade Requires: python-lash Provides: lv2rack = %{version}-%{release} # we don't want to provide private python extension libs %{?filter_setup: %filter_provides_in %{python_sitearch}/.*\.so$ %filter_setup } %description zynjacku is JACK based, GTK (2.x) host for LV2 synths. It has one JACK MIDI input port (routed to all hosted synths) and one (two for stereo synths) JACK audio output port per plugin. Such design provides multi-timbral sound by running several synth plugins. zynjacku is a nunchaku weapon for JACK audio synthesis. You have solid parts for synthesis itself and you have flexible part that allows synthesis to suit your needs. lv2rack is a host for LV2 effect plugins. %prep %setup -q %patch0 -p1 -b .lv2path # Remove redundant shebang sed -i '\|/usr/bin/env|d' zynworld/host.py %build export am_cv_python_pythondir=%{python_sitearch} %configure --disable-static make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT # Fix weird permissions chmod -x $RPM_BUILD_ROOT%{python_sitearch}/zynworld/*.py # We don't need duplicate files ln -sf %{?_pkgdocdir}%{!?_pkgdocdir:%{_docdir}/%{name}-%{version}}/gpl.txt \ $RPM_BUILD_ROOT/%{_datadir}/%{name}/ # Kill .la files rm -f $RPM_BUILD_ROOT%{python_sitearch}/zynworld/*.la # Icon mkdir -p $RPM_BUILD_ROOT/%{_datadir}/icons/hicolor/72x72/apps/ cp -a %{SOURCE1} $RPM_BUILD_ROOT/%{_datadir}/icons/hicolor/72x72/apps/ # .desktop files mkdir -p $RPM_BUILD_ROOT/%{_datadir}/applications/ desktop-file-install --dir=$RPM_BUILD_ROOT%{_datadir}/applications/ %{SOURCE2} desktop-file-install --dir=$RPM_BUILD_ROOT%{_datadir}/applications/ %{SOURCE3} %files %defattr(-,root,root,-) %doc AUTHORS gpl.txt NEWS README %{_bindir}/* %{python_sitearch}/zynworld %{_datadir}/%{name}/ %{_datadir}/applications/*.desktop %{_datadir}/icons/hicolor/72x72/apps/%{name}.png %changelog * Fri Feb 09 2018 Fedora Release Engineering - 6-19 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Jan 18 2018 Igor Gnatenko - 6-18 - Remove obsolete scriptlets * Thu Aug 03 2017 Fedora Release Engineering - 6-17 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 6-16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Fri Jul 07 2017 Igor Gnatenko - 6-15 - Rebuild due to bug in RPM (RHBZ #1468476) * Sat Feb 11 2017 Fedora Release Engineering - 6-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Tue Jul 19 2016 Fedora Release Engineering - 6-13 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages * Fri Feb 05 2016 Fedora Release Engineering - 6-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Fri Jun 19 2015 Fedora Release Engineering - 6-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Wed Aug 20 2014 Kevin Fenzi - 6-10 - Rebuild for rpm bug 1131892 * Mon Aug 18 2014 Fedora Release Engineering - 6-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Sat Jun 07 2014 Fedora Release Engineering - 6-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sat Nov 9 2013 Ville Skyttä - 6-7 - Fix symlink to gpl.txt when doc dir is unversioned. - Fix bogus date in %%changelog. * Sun Aug 04 2013 Fedora Release Engineering - 6-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Fri Feb 15 2013 Fedora Release Engineering - 6-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Sun Jul 22 2012 Fedora Release Engineering - 6-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Sat Jan 14 2012 Fedora Release Engineering - 6-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Tue Dec 06 2011 Adam Jackson - 6-2 - Rebuild for new libpng * Sat Apr 30 2011 Orcan Ogetbil - 6-1 - Update to 6 - Drop upstreamed patch * Tue Feb 08 2011 Fedora Release Engineering - 5-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Thu Jul 22 2010 David Malcolm - 5-5 - Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild * Fri Jan 22 2010 Orcan Ogetbil - 5-4 - Don't crash when there are no plugins installed RHBZ#551480 * Wed Aug 05 2009 Orcan Ogetbil - 5-3 - Update the .desktop file * Mon Jul 27 2009 Fedora Release Engineering - 5-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Sun Jun 14 2009 Orcan Ogetbil - 5-1 - Update to 5 * Fri Apr 10 2009 Orcan Ogetbil - 4-2 - License is GPLv2 - Clean up unnecessary bits from SPEC file * Mon Mar 30 2009 Orcan Ogetbil - 4-1 - Initial build