# -*-rpm-spec-mode-*-
%define info yes
+%define docdir %{_docdir}/lilypond/
Name: lilypond
Version: @TOPLEVEL_VERSION@
Release: 1
License: GPL
Group: Applications/Publishing
-Source0: ftp.cs.uu.nl:/pub/GNU/LilyPond/development/lilypond-@TOPLEVEL_VERSION@.tar.gz
+Source0: ftp.lilypond.org:/pub/LilyPond/development/lilypond-@TOPLEVEL_VERSION@.tar.gz
Summary: Create and print music notation
URL: http://www.lilypond.org/
BuildRoot: %{_tmppath}/%{name}-%{version}-root
-Buildrequires: t1utils bison flex mftrace texinfo
+Buildrequires: t1utils bison flex mftrace ImageMagick
+
+# requires texinfo >= 4.6 really, otherwise the info files fuck up.
+# however, that's still not standard on RH 9, so we'll leave it at this
+# for now
+
+Buildrequires: texinfo
Requires: tetex tetex-latex libstdc++ python
+Requires: guile >= 1.6.4-7
%description
LilyPond lets you create music notation. It produces
%description documentation
Documentation and example files of LilyPond. An index is available at
-%{_docdir}/web/Documentation/out-www/index.html
+%{docdir}/web/Documentation/out-www/index.html
%prep
%setup
./configure --disable-checking --prefix=%{_prefix} --enable-optimising
+
make MAKE_PFA_FILES=1 all
make -C mf/ pfa
make -C Documentation
# make html
-make web-doc top-web
+make web top-web
+make -C Documentation/user omf
%install
cp buildscripts/out/lilypond-profile $RPM_BUILD_ROOT/etc/profile.d/lilypond.sh
cp buildscripts/out/lilypond-login $RPM_BUILD_ROOT/etc/profile.d/lilypond.csh
-
-# again, make sure that main package installs even if doco fails
-mkdir -p web/out
-tar -C web -xzf out/web.tar.gz
+make prefix="$RPM_BUILD_ROOT%{_prefix}" install-html-doc
%post
/sbin/install-info %{_infodir}/lilypond.info.gz %{_infodir}/dir
%endif
-chkfontpath --add=%{_datadir}/lilypond/@TOPLEVEL_VERSION@/fonts/type1/
+# chkfontpath --add=%{_datadir}/lilypond/@TOPLEVEL_VERSION@/fonts/type1/
echo 'Please logout first before using LilyPond.'
%preun
+
%if %{info}
if [ $1 = 0 ]; then
/sbin/install-info --delete %{_infodir}/lilypond.info.gz %{_infodir}/dir
fi
%endif
-chkfontpath --remove=%{_datadir}/share/lilypond/@TOPLEVEL_VERSION@/fonts/type1/
+# chkfontpath --remove=%{_datadir}/share/lilypond/@TOPLEVEL_VERSION@/fonts/type1/
+
+
+%post documentation
+scrollkeeper-update
+
+%postun documentation
+scrollkeeper-update
+
+
%files
%defattr(-, root, root)
%{_bindir}/musedata2ly
%{_bindir}/pmx2ly
+%doc buildscripts/out/convert-new-chords
+
%if %{info}
%{_infodir}/*
%endif
%{_datadir}/lilypond/@TOPLEVEL_VERSION@/
%{_datadir}/locale/*/LC_MESSAGES/lilypond.mo
+
+%{_libdir}/lilypond/
+
/etc/profile.d/lilypond.*
+
%files documentation
+
%defattr(-, root, root)
-%doc web/
+%{docdir}/@TOPLEVEL_VERSION@
+%{_datadir}/omf/lilypond/@TOPLEVEL_VERSION@