URL: http://www.lilypond.org/
Source0: ftp.lilypond.org:/pub/LilyPond/development/lilypond-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-buildroot
-BuildRequires: t1utils bison flex mftrace texinfo
+BuildRequires: t1utils bison flex texinfo
+#There is not a recent rpm provided for the following; compile LilyPond anyway:
+#BuildRequires: mftrace
Requires: tetex tetex-latex python chkfontpath info-install XFree86
+#There is not a recent rpm provided for the following: install LilyPond anyway:
+#Requires: guile >= 1.6.4-7
%description
LilyPond is a music typesetter. It produces beautiful sheet music using a
# -- not sure what this comment means; it's a relic from the PPC spec file -- mbrown@fensystems.co.uk
##./configure --disable-checking --disable-debugging --enable-printing --prefix=%{_prefix} --disable-optimising --enable-shared
## Add options if needed
+
./configure --disable-checking --prefix=%{_prefix} --enable-optimising
+
%make MAKE_PFA_FILES=1 all
make -C mf/ pfa
cp buildscripts/out/lilypond-profile $RPM_BUILD_ROOT%{_prefix}/../etc/profile.d/lilypond.sh
cp buildscripts/out/lilypond-login $RPM_BUILD_ROOT%{_prefix}/../etc/profile.d/lilypond.csh
+make prefix="$RPM_BUILD_ROOT%{_prefix}" webdir="$RPM_BUILD_ROOT%{_prefix}/share/doc/lilypond/" out=www web-install
-# again, make sure that main package installs even if doco fails
-mkdir -p web/out
-tar -C web -xzf out/web.tar.gz
-
+# Menu is not used.
# Menu
# Every entry must be changed according package specifications
# Pay attention to "section" "command" and "longtitle"
-
-mkdir -p $RPM_BUILD_ROOT%{_menudir}
-cat >$RPM_BUILD_ROOT%{_menudir}/%{name} <<EOF
-?package(%name):\
- command="info %{name}"\
- needs="text"\
- icon="%{name}.xpm"\
- section="Documentation"\
- title="%{name}-info"\
- longtitle="%{name} Info"
-EOF
+#
+# mkdir -p $RPM_BUILD_ROOT%{_menudir}
+# cat >$RPM_BUILD_ROOT%{_menudir}/%{name} <<EOF
+# ?package(%name):\
+ # command="info %{name}"\
+ # needs="text"\
+ # icon="%{name}.xpm"\
+ # section="Documentation"\
+ # title="%{name}-info"\
+ # longtitle="%{name} Info"
+# EOF
-cat >$RPM_BUILD_ROOT%{_menudir}/%{name}-documentation <<EOF
-?package(%name):\
- command="\$BROWSER %{_docdir}/%{name}-documentation-%{version}/web/index.html"\
- needs="X11"\
- icon="%{name}.xpm"\
- section="Documentation"\
- title="%{name}-documentation"\
- longtitle="%{name} Documentation"
-EOF
-
-# icon
-install -d $RPM_BUILD_ROOT/%{_miconsdir}
-install -d $RPM_BUILD_ROOT/%{_iconsdir}
-install -d $RPM_BUILD_ROOT/%{_liconsdir}
-install -m 644 Documentation/pictures/%{name}-16x16.xpm $RPM_BUILD_ROOT/%{_miconsdir}/%{name}.xpm
-install -m 644 Documentation/pictures/%{name}-32x32.xpm $RPM_BUILD_ROOT/%{_iconsdir}/%{name}.xpm
-install -m 644 Documentation/pictures/%{name}-48x48.xpm $RPM_BUILD_ROOT/%{_liconsdir}/%{name}.xpm
+# cat >$RPM_BUILD_ROOT%{_menudir}/%{name}-documentation <<EOF
+# ?package(%name):\
+ # command="\$BROWSER %{_docdir}/%{name}-documentation-%{version}/web/index.html"\
+ # needs="X11"\
+ # icon="%{name}.xpm"\
+ # section="Documentation"\
+ # title="%{name}-documentation"\
+ # longtitle="%{name} Documentation"
+# EOF
+# #
+# # icon
+# install -d $RPM_BUILD_ROOT/%{_miconsdir}
+# install -d $RPM_BUILD_ROOT/%{_iconsdir}
+# install -d $RPM_BUILD_ROOT/%{_liconsdir}
+# install -m 644 Documentation/pictures/%{name}-16x16.xpm $RPM_BUILD_ROOT/%{_miconsdir}/%{name}.xpm
+# install -m 644 Documentation/pictures/%{name}-32x32.xpm $RPM_BUILD_ROOT/%{_iconsdir}/%{name}.xpm
+# install -m 644 Documentation/pictures/%{name}-48x48.xpm $RPM_BUILD_ROOT/%{_liconsdir}/%{name}.xpm
%post
-%{update_menus}
+# Menu is not used.
+# %{update_menus}
touch /tmp/.lilypond-install
rm `find /var/lib/texmf -name 'feta*pk' -or -name 'feta*tfm' -or -name 'parmesan*pk' -or -name 'parmesan*tfm' -print` /tmp/.lilypond-install
/usr/X11R6/bin/mkfontdir %{_datadir}/lilypond/%{version}/fonts/type1/
chkfontpath --add=%{_datadir}/lilypond/%{version}/fonts/type1/
+echo 'Please logout first before using LilyPond.'
+
%preun
%if %{info}
scrollkeeper-update
%postun
-%{clean_menus}
+# Menu is not used.
+# %{clean_menus}
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-, root, root)
-%doc COPYING README.txt INSTALL.txt DEDICATION NEWS AUTHORS.txt THANKS
+%doc COPYING README.txt INSTALL.txt DEDICATION NEWS.txt AUTHORS.txt THANKS
%{_datadir}/emacs/site-lisp/site-start.d/lilypond-*
%{_datadir}/emacs/site-lisp/lilypond*
%{_prefix}/../etc/profile.d/lilypond.*
%_bindir/*
%_mandir/*
-%_menudir/*
-%_iconsdir/*
+# Menu is not used.
+# %_menudir/*
+# %_iconsdir/*
%{_libdir}/lilypond/
%doc
-# % {_docdir}/lilypond-@TOPLEVEL_VERSION@
%files documentation
%defattr(-, root, root)
-%doc web
-# % {_docdir}/lilypond-documentation-@TOPLEVEL_VERSION@
+%{_docdir}/*
%{_datadir}/omf/lilypond/@TOPLEVEL_VERSION@
%changelog
+* Thu Aug 07 2003 Heikki Johannes Junes <hjunes@cc.hut.fi> 1.8.0-1mdk
+- removed menu and icons, sync with redhat-spec
+
* Thu Jun 12 2003 Heikki Johannes Junes <hjunes@cc.hut.fi> 1.7.20-1mdk
- refreshed dependencies and file list.