%define svnver 926svn Name: kguitar Version: 0.5.1 Release: 9.%{svnver}%{?dist} Group: Applications/Multimedia Summary: Guitar Tabulature Music Editor License: GPLv2+ URL: http://kguitar.sf.net/ Source0: %{name}-%{version}-%{svnver}.tar.bz2 # The supplied .desktop file is ancient and doesn't meet the current standards # We are supplying a new one: Source1: %{name}.desktop # To fetch the svn trunk: Source9: %{name}-snapshot.sh # Patch to make kguitar build with automake 1.11 or higher # https://sourceforge.net/tracker/?func=detail&aid=2804980&group_id=7693&atid=307693 Patch0: %{name}-automake111.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: autoconf BuildRequires: automake BuildRequires: gettext BuildRequires: kdelibs3-devel BuildRequires: libtool BuildRequires: texlive-texmf BuildRequires: tse3-devel %description KGuitar is a powerful KDE-based music tabulature editor with support of multiple guitar (or any fretted instrument) and drum tracks. KGuitar also supports classic note scores, MIDI synthesizer output, chord, scales, modes, melody and rhythm construction and analysis tools, lots of tab effects, lyrics, Guitar Pro files import and lots of other things. %package tex Group: Applications/Publishing Summary: MusixTeX support for KGuitar Requires: %{name} == %{version}-%{release} Requires: tex-musixtex Requires(post): /usr/bin/texhash Requires(postun): /usr/bin/texhash %description tex KGuitar is a powerful KDE-based music tabulature editor with support of multiple guitar (or any fretted instrument) and drum tracks. KGuitar also supports classic note scores, MIDI synthesizer output, chord, scales, modes, melody and rhythm construction and analysis tools, lots of tab effects, lyrics, Guitar Pro files import and lots of other things. This package provides support for compiling MusixTex files exported from Kguitar. %prep %setup -q -n %{name} %patch0 -p1 -b .automake111 # Add more mime-types since the software is capable of handling them. sed -i 's|\*.kg|\*.kg;\*.gp3;\*.gp4;\*.mid;\*.tab;\*.xml|' %{name}/x-%{name}.desktop # Use system libtool. The bundled one screws up and package fails to build sed -i -e 's|\$(top_builddir)/libtool|%{_bindir}/libtool|g' \ -e 's|\./libtool|%{_bindir}/libtool|g' \ admin/* make -f admin/Makefile.common cvs ||: %build %configure \ --disable-rpath \ --disable-static \ --disable-debug \ --program-transform-name="" \ --enable-final \ --with-tse3-libraries="%{_libdir}" \ %ifarch x86_64 ppc64 --enable-libsuffix="64" %endif make %{?_smp_flags} %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT # Make symlinks relative: ln -fs ../common $RPM_BUILD_ROOT/%{_datadir}/doc/HTML/en/%{name}/ # Remove the old (it can't pass desktop-file-validate) .desktop file... rm -fr $RPM_BUILD_ROOT/%{_datadir}/applnk # ... and replace it with the new one: desktop-file-install --dir=${RPM_BUILD_ROOT}/%{_datadir}/applications %{SOURCE1} # Install the TeX support mkdir -p $RPM_BUILD_ROOT/%{_texmf_main}/tex/generic/kgtabs install -pm 644 %{name}_shell/kgtabs.tex $RPM_BUILD_ROOT/%{_texmf_main}/tex/generic/kgtabs # Remove static lib rm -f %{_libdir}/kde3/lib%{name}part.a %find_lang %{name} %post touch --no-create %{_datadir}/icons/locolor &>/dev/null touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : %postun if [ $1 -eq 0 ] ; then touch --no-create %{_datadir}/icons/locolor &>/dev/null touch --no-create %{_datadir}/icons/hicolor &>/dev/null gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : fi %posttrans gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %post tex -p /usr/bin/texhash %postun tex -p /usr/bin/texhash %clean rm -rf $RPM_BUILD_ROOT %files -f %{name}.lang %defattr(-,root,root,-) %doc AUTHORS ChangeLog COPYING README %doc licenseMusicXML.html %{_docdir}/HTML/en/%{name} %{_bindir}/* %{_libdir}/kde3/* %{_datadir}/apps/%{name} %{_datadir}/applications/%{name}.desktop %{_datadir}/mimelnk/application/* %{_datadir}/services/%{name}_part.desktop %{_datadir}/icons/*/*/*/* %files tex %defattr(-,root,root,-) %{_texmf_main}/tex/generic/kgtabs %changelog * Fri Nov 20 2009 Orcan Ogetbil <oget [DOT] fedora [AT] gmail [DOT] com> - 0.5.1-9-926svn - Use system libtool. Fixes RHBZ#538944 * Wed Aug 05 2009 Orcan Ogetbil <oget [DOT] fedora [AT] gmail [DOT] com> - 0.5.1-8.926svn - Update .desktop file * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.1-7.926svn - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Thu Jun 11 2009 Orcan Ogetbil <oget [DOT] fedora [AT] gmail [DOT] com> - 0.5.1-6.926svn - Patch to enable build with automake-1.11 or higher - Update scriptlets according to the new guidelines * Thu Jun 11 2009 Orcan Ogetbil <oget [DOT] fedora [AT] gmail [DOT] com> - 0.5.1-5.926svn - BR automake17 because kguitar doesn't build with automake-1.11 * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.1-4.926svn - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Sun Feb 08 2009 Orcan Ogetbil <oget [DOT] fedora [AT] gmail [DOT] com> - 0.5.1-3.926svn - Change the EVR scheme (use svn revision instead of date in R) - Use RPM's _texmf_main macro instead of redefining it - Place the TeX bit into a -tex subpackage - Specfile cleanup * Wed Jan 21 2009 Orcan Ogetbil <oget [DOT] fedora [AT] gmail [DOT] com> - 0.5.1-2.20090120svn - Updated description - Added TeX support - Remove the call to ldconfig in post* * Mon Jan 19 2009 Orcan Ogetbil <oget [DOT] fedora [AT] gmail [DOT] com> - 0.5.1-1.20090120svn - Initial Fedora build