]> git.pld-linux.org Git - packages/lilypond.git/blobdiff - lilypond.spec
Release: 1
[packages/lilypond.git] / lilypond.spec
index 20b651f6404b5fa7d8e1ca20acda3dac776609cd..f80c560fc2ce1042499cf78595ae640d377e5bdc 100644 (file)
@@ -1,53 +1,80 @@
 #
 # Conditional build:
-%bcond_with    gui     # enable experimental GUI
+%bcond_with    guile2  # 'highly experimental' guile2 support
+%bcond_without doc     # build docs
 #
 Summary:       Music typesetter
 Summary(pl.UTF-8):     Program do składania nut
 Name:          lilypond
-Version:       2.10.33
+Version:       2.19.33
 Release:       1
 License:       GPL
 Group:         Applications/Sound
-Source0:       http://lilypond.org/download/v2.10/%{name}-%{version}.tar.gz
-# Source0-md5: 86a67fcc404e942be723f8a72988b286
+Source0:       http://download.linuxaudio.org/lilypond/sources/v2.19/%{name}-%{version}.tar.gz
+# Source0-md5: 942ac963423b08903d0df21fb22fbe70
 Patch0:                %{name}-info.patch
 Patch1:                %{name}-sh.patch
-Patch2:                %{name}-po.patch
-Patch3:                %{name}-afm.patch
+Patch2:                %{name}-aclocal.patch
 URL:           http://www.lilypond.org/
+BuildRequires: autoconf
 BuildRequires: automake
 BuildRequires: bison >= 1.29
 BuildRequires: flex >= 2.5.4a
 BuildRequires: fontconfig
-BuildRequires: fontconfig-devel >= 1:2.2.0
-BuildRequires: fontforge >= 20050624
-BuildRequires: gettext-devel
-BuildRequires: ghostscript >= 8.15
+BuildRequires: fontconfig-devel >= 1:2.4.0
+BuildRequires: fontforge >= 20110222
+BuildRequires: fonts-TTF-DejaVu
+BuildRequires: fonts-Type1-urw
+BuildRequires: freetype >= 1:2.1.10
+BuildRequires: gettext-tools >= 0.17
 BuildRequires: ghostscript-fonts-std
-%{?with_gui:BuildRequires:     gtk+2-devel >= 2:2.4.0}
-BuildRequires: guile-devel >= 5:1.6.7
+%if %{with guile2}
+BuildRequires: guile-devel >= 5:2.0.0
+%else
+BuildRequires: guile1-devel
+%endif
 BuildRequires: kpathsea-devel
-BuildRequires: libltdl-devel
-BuildRequires: libstdc++-devel >= 5:4.0
-BuildRequires: mftrace >= 1.1.19
-BuildRequires: pango-devel >= 1.6.0
+BuildRequires: libstdc++-devel >= 5:3.4
+BuildRequires: pango-devel >= 1.12.0
+BuildRequires: perl-base
 BuildRequires: pkgconfig >= 1:0.9.0
-BuildRequires: python-devel >= 2.1
-BuildRequires: tetex-dvips
-BuildRequires: tetex-fonts-cm
-BuildRequires: tetex-fonts-cmextra
-BuildRequires: tetex-fonts-jknappen
-BuildRequires: texinfo >= 4.7
+BuildRequires: python-devel >= 1:2.4
+BuildRequires: python-modules
+BuildRequires: rpm-pythonprov
+BuildRequires: t1utils
+BuildRequires: texinfo >= 4.11
+BuildRequires: texlive-fonts-other
+BuildRequires: texlive-metapost
+%if %{with doc}
+BuildRequires: ImageMagick
+BuildRequires: ImageMagick-coder-png
+BuildRequires: dblatex
+BuildRequires: ghostscript >= 8.60
+BuildRequires: guile1 >= 1.8.0
+BuildRequires: netpbm-progs
+BuildRequires: rsync
+BuildRequires: texi2html
+BuildRequires: texinfo
+BuildRequires: texinfo-texi2dvi
+BuildRequires: texlive
+BuildRequires: texlive-fonts-lh
+BuildRequires: texlive-format-pdflatex
+BuildRequires: texlive-latex-bibtex
+BuildRequires: zip
+%endif
 BuildConflicts:        lilypond < 1.6.0
-Requires:      ghostscript >= 8.15
-Requires:      guile >= 5:1.6.5
-Requires:      python >= 2.1
-Requires:      tetex-format-latex >= 1.0
+Requires:      fonts-TTF-DejaVu
+Requires:      ghostscript >= 8.60
+Requires:      python-modules >= 1:2.4
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define                texmfdir        /usr/share/texmf
+%define                texmfdir        %{_datadir}/texmf
+%define                texmfdistdir    %{texmfdir}-dist
+%if "%{pld_release}" != "th"
 %define                texfontsdir     %{texmfdir}/fonts
+%else
+%define                texfontsdir     %{texmfdistdir}/fonts
+%endif
 
 %description
 LilyPond is a music typesetter. It produces beautiful sheet music
@@ -81,7 +108,7 @@ Summary:     LilyPond files support for Vim
 Summary(pl.UTF-8):     Obsługa plików LilyPonda dla Vima
 Group:         Applications/Editors/Vim
 Requires:      %{name} = %{version}-%{release}
-Requires:      vim >= 4:6.4.001-2
+Requires:      vim-rt >= 4:6.4.001-2
 
 %description -n vim-syntax-lilypond
 LilyPond files support for Vim.
@@ -91,31 +118,37 @@ Obsługa plików LilyPonda dla Vima.
 
 %prep
 %setup -q
-%patch0 -p1
+#%%patch0 -p1
 %patch1 -p1
 %patch2 -p1
-%patch3 -p1
 
 %build
-cp -f /usr/share/automake/config.* stepmake/bin
 %{__autoconf}
 %configure \
        %{?debug:--disable-optimising} \
-       %{?with_gui:--enable-gui}
+       %{__enable_disable guile2} \
+       --with-texgyre-dir=/usr/share/texmf-dist/fonts/opentype/public/tex-gyre/ \
+       %{__enable_disable doc documentation}
 %{__make} -j1
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{texmfdir}/{dvips/misc,tex},%{texfontsdir}/{source,tfm,type1}}
+install -d $RPM_BUILD_ROOT{%{texmfdir}/{dvips,tex},%{texfontsdir}/{source,tfm,type1}}
 
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
 
+%if %{with doc}
+%{__make} -C Documentation omf-local-install \
+       DESTDIR=$RPM_BUILD_ROOT \
+       local_package_omfdir=%{_datadir}/omf/lilypond
+%endif
+
+cp -aL out/share/lilypond/current/fonts/tfm \
+       $RPM_BUILD_ROOT%{texfontsdir}/tfm/lilypond
+
 find $RPM_BUILD_ROOT -name fonts.cache-1 | xargs rm -f
 
-# for dvips
-mv -f $RPM_BUILD_ROOT%{_datadir}/lilypond/%{version}/dvips \
-       $RPM_BUILD_ROOT%{texmfdir}/dvips/lilypond
 # ?
 mv -f $RPM_BUILD_ROOT%{_datadir}/lilypond/%{version}/fonts/source \
        $RPM_BUILD_ROOT%{texfontsdir}/source/lilypond
@@ -125,11 +158,9 @@ mv -f $RPM_BUILD_ROOT%{_datadir}/lilypond/%{version}/tex \
 # both for lilypond and dvips
 ln -sf %{_datadir}/lilypond/%{version}/fonts/type1 \
        $RPM_BUILD_ROOT%{texfontsdir}/type1/lilypond
-ln -sf %{_datadir}/lilypond/%{version}/ps/music-drawing-routines.ps \
-       $RPM_BUILD_ROOT%{texmfdir}/dvips/misc
-
-# no need for subdir
-mv -f $RPM_BUILD_ROOT%{_infodir}/lilypond/*.info* $RPM_BUILD_ROOT%{_infodir}
+ln -sf %{_datadir}/lilypond/%{version}/ps \
+       $RPM_BUILD_ROOT%{texmfdir}/dvips/lilypond
+rm -rf $RPM_BUILD_ROOT%{_datadir}/lilypond/%{version}/dvips
 
 # vim syntax/etc. files
 install -d $RPM_BUILD_ROOT%{_datadir}/vim
@@ -144,25 +175,30 @@ rm -rf $RPM_BUILD_ROOT%{_datadir}/lilypond/%{version}/make
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%pre
+test -h %{texmfdir}/dvips/lilypond || rm -rf %{texmfdir}/dvips/lilypond
+
 %post
 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
-[ ! -x /usr/bin/texhash ] || /usr/bin/texhash 1>&2
-[ ! -x /usr/bin/scrollkeeper-update ] || /usr/bin/scrollkeeper-update
+[ ! -x %{_bindir}/texhash ] || %{_bindir}/texhash 1>&2
+[ ! -x %{_bindir}/scrollkeeper-update ] || %{_bindir}/scrollkeeper-update
 
 %postun
 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
-[ ! -x /usr/bin/texhash ] || /usr/bin/texhash 1>&2
-[ ! -x /usr/bin/scrollkeeper-update ] || /usr/bin/scrollkeeper-update
+[ ! -x %{_bindir}/texhash ] || %{_bindir}/texhash 1>&2
+[ ! -x %{_bindir}/scrollkeeper-update ] || %{_bindir}/scrollkeeper-update
 
 %files -f %{name}.lang
 %defattr(644,root,root,755)
-%doc AUTHORS.txt ChangeLog DEDICATION NEWS.txt README.txt THANKS
+%doc AUTHORS.txt DEDICATION NEWS.txt README.txt ROADMAP
 %attr(755,root,root) %{_bindir}/abc2ly
 %attr(755,root,root) %{_bindir}/convert-ly
 %attr(755,root,root) %{_bindir}/etf2ly
+%attr(755,root,root) %{_bindir}/lilymidi
 %attr(755,root,root) %{_bindir}/lilypond
 %attr(755,root,root) %{_bindir}/lilypond-book
 %attr(755,root,root) %{_bindir}/lilypond-invoke-editor
+%attr(755,root,root) %{_bindir}/lilysong
 %attr(755,root,root) %{_bindir}/midi2ly
 %attr(755,root,root) %{_bindir}/musicxml2ly
 %dir %{_libdir}/lilypond
@@ -178,16 +214,18 @@ rm -rf $RPM_BUILD_ROOT
 %{_datadir}/lilypond/%{version}/python/*.py
 %{_datadir}/lilypond/%{version}/python/*.pyc
 %{_datadir}/lilypond/%{version}/scm
-%{_infodir}/*.info*
-%{_mandir}/man1/*
 
 %{texfontsdir}/source/lilypond
+%{texfontsdir}/tfm/lilypond
 %{texfontsdir}/type1/lilypond
 %{texmfdir}/dvips/lilypond
-%{texmfdir}/dvips/misc/*.ps
 %{texmfdir}/tex/lilypond
 
+%if %{with doc}
+%{_infodir}/*.info*
+%{_mandir}/man1/*
 %{_datadir}/omf/lilypond
+%endif
 
 %files -n emacs-lilypond-mode-pkg
 %defattr(644,root,root,755)
This page took 0.088785 seconds and 4 git commands to generate.