]> git.pld-linux.org Git - packages/lilypond.git/blobdiff - lilypond.spec
- updated for 2.4.1
[packages/lilypond.git] / lilypond.spec
index c0391500e626bb9669c7b0c76605476e907ca33f..fe685c01615c711adf0af404becf9e43a18e0b14 100644 (file)
@@ -1,25 +1,37 @@
 Summary:       Music typesetter
 Summary(pl):   Program do sk³adania nut
 Name:          lilypond
-Version:       1.4.13
-Release:       3
+Version:       2.4.0
+Release:       0.1
 License:       GPL
 Group:         Applications/Sound
-Source0:       ftp://ftp.gnu.org/gnu/lilypond/%{name}-%{version}.tar.gz
-Patch0:                %{name}-pythonhack.patch
-Patch1:                %{name}-gcc3.patch
-Patch2:                %{name}-info.patch
-URL:           http://www.cs.uu.nl/people/hanwen/lilypond/index.html
-BuildRequires: bison
+Source0:       http://lilypond.org/download/v2.4/%{name}-%{version}.tar.gz
+# Source0-md5: 0e289d69c673382eef0a0c04186601bc
+Patch0:                %{name}-info.patch
+Patch1:                %{name}-sh.patch
+Patch2:                %{name}-po.patch
+URL:           http://www.lilypond.org/
+BuildRequires: automake
+BuildRequires: bison >= 1.25
 BuildRequires: flex
-BuildRequires: guile-devel
+BuildRequires: fontforge
+BuildRequires: gettext-devel
+BuildRequires: guile-devel >= 1.6
 BuildRequires: kpathsea-devel
 BuildRequires: libltdl-devel
-BuildRequires: libstdc++-devel
-BuildRequires: texinfo
+BuildRequires: libstdc++-devel >= 5:3.0
+BuildRequires: mftrace >= 1.0.17
+BuildRequires: python-devel >= 2.1
+BuildRequires: tetex-dvips
+BuildRequires: tetex-fonts-cm
+BuildRequires: tetex-fonts-cmextra
+BuildRequires: tetex-fonts-jknappen
+BuildRequires: texinfo >= 4.6
+BuildConflicts:        lilypond < 1.6.0
+Requires:      tetex-format-latex
+Requires:      ghostscript
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define                _datadir        %{_prefix}/share/lilypond
 %define                _localedir      %{_prefix}/share/locale
 %define                texfontsdir     /usr/share/texmf/fonts
 
@@ -37,6 +49,19 @@ wszystkim do sk
 piosenki pop. Autorzy udostêpniaj± LilyPond z nadziej± dostarczenia
 wszystkim oprogramowania do publikacji muzycznych.
 
+%package -n emacs-lilypond-mode-pkg
+Summary:       LilyPond mode for Emacs
+Summary(pl):   Tryb edycji plików LilyPond dla Emacsa
+Group:         Applications/Editors/Emacs
+Requires:      %{name} = %{version}-%{release}
+Requires:      emacs
+
+%description -n emacs-lilypond-mode-pkg
+LilyPond mode for Emacs.
+
+%description -n emacs-lilypond-mode-pkg -l pl
+Tryb edycji plików LilyPond dla Emacsa.
+
 %prep
 %setup -q
 %patch0 -p1
@@ -44,28 +69,39 @@ wszystkim oprogramowania do publikacji muzycznych.
 %patch2 -p1
 
 %build
-%configure2_13
+cp -f /usr/share/automake/config.* stepmake/bin
+%configure \
+       %{?debug:--disable-optimising}
 %{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{texfontsdir}/{afm,source,tfm}
+install -d $RPM_BUILD_ROOT%{texfontsdir}/{source,tfm,type1}
 
 %{__make} install \
+       local_lilypond_datadir=$RPM_BUILD_ROOT%{_datadir}/lilypond/%{version} \
        datadir=$RPM_BUILD_ROOT%{_datadir} \
        mandir=$RPM_BUILD_ROOT%{_mandir} \
        bindir=$RPM_BUILD_ROOT%{_bindir} \
        localedir=$RPM_BUILD_ROOT%{_localedir} \
-       infodir=$RPM_BUILD_ROOT%{_infodir}
+       infodir=$RPM_BUILD_ROOT%{_infodir} \
+       libdir=$RPM_BUILD_ROOT%{_libdir}
+
+%{__perl} -pi -e "s#$RPM_BUILD_ROOT##" $RPM_BUILD_ROOT%{_bindir}/*
 
-mv -f $RPM_BUILD_ROOT%{_datadir}/afm $RPM_BUILD_ROOT%{texfontsdir}/afm/lilypond
-mv -f $RPM_BUILD_ROOT%{_datadir}/mf $RPM_BUILD_ROOT%{texfontsdir}/source/lilypond
-mv -f $RPM_BUILD_ROOT%{_datadir}/tfm $RPM_BUILD_ROOT%{texfontsdir}/tfm/lilypond
+mv -f $RPM_BUILD_ROOT%{_datadir}/lilypond/%{version}/fonts/source \
+      $RPM_BUILD_ROOT%{texfontsdir}/source/lilypond
+mv -f $RPM_BUILD_ROOT%{_datadir}/lilypond/%{version}/fonts/tfm \
+      $RPM_BUILD_ROOT%{texfontsdir}/tfm/lilypond
+mv -f $RPM_BUILD_ROOT%{_datadir}/lilypond/%{version}/fonts/type1 \
+      $RPM_BUILD_ROOT%{texfontsdir}/type1/lilypond
+
+mv -f $RPM_BUILD_ROOT%{_infodir}/lilypond/*.info* $RPM_BUILD_ROOT%{_infodir}
 
 %find_lang %{name}
 
 %clean
-rm -rf ${RPM_BUILD_ROOT}
+rm -rf $RPM_BUILD_ROOT
 
 %post
 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
@@ -77,13 +113,34 @@ rm -rf ${RPM_BUILD_ROOT}
 
 %files -f %{name}.lang
 %defattr(644,root,root,755)
-%doc AUTHORS.txt CHANGES DEDICATION FAQ.txt NEWS README.txt
+%doc AUTHORS.txt ChangeLog DEDICATION NEWS.txt README.txt THANKS
 %attr(755,root,root) %{_bindir}/*
-%dir %{_datadir}
-%{_datadir}/ly
-%{_datadir}/ps
-%{_datadir}/scm
-%{_datadir}/tex
-%{texfontsdir}/*/lilypond
-%{_infodir}/*
+%dir %{_libdir}/lilypond
+%dir %{_libdir}/lilypond/%{version}
+%dir %{_libdir}/lilypond/%{version}/python
+%attr(755,root,root) %{_libdir}/lilypond/%{version}/python/midi.so
+%dir %{_datadir}/lilypond
+%dir %{_datadir}/lilypond/%{version}
+%{_datadir}/lilypond/%{version}/ly
+%{_datadir}/lilypond/%{version}/ps
+%dir %{_datadir}/lilypond/%{version}/python
+%{_datadir}/lilypond/%{version}/python/*.py
+%{_datadir}/lilypond/%{version}/python/*.pyc
+%{_datadir}/lilypond/%{version}/dvips
+%{_datadir}/lilypond/%{version}/fonts
+%{_datadir}/lilypond/%{version}/scm
+%{_datadir}/lilypond/%{version}/tex
+%{_infodir}/*.info*
 %{_mandir}/man1/*
+
+# lilypond/stepmake build system - not needed at runtime
+#%{_datadir}/lilypond/%{version}/make
+
+%{texfontsdir}/*/lilypond
+
+# needed? subpackage? (could install in non-existing dir)
+%{_datadir}/omf/lilypond
+
+%files -n emacs-lilypond-mode-pkg
+%defattr(644,root,root,755)
+%{_datadir}/emacs/site-lisp/*.el
This page took 0.081599 seconds and 4 git commands to generate.