6 Version: @TOPLEVEL_VERSION@
9 Group: Applications/Publishing
10 Source0: ftp.cs.uu.nl:/pub/GNU/LilyPond/development/lilypond-@TOPLEVEL_VERSION@.tar.gz
11 Summary: Create and print music notation
12 URL: http://www.lilypond.org/
13 BuildRoot: %{_tmppath}/%{name}-%{version}-root
16 Buildrequires: t1utils bison flex mftrace texinfo
17 Requires: tetex tetex-latex libstdc++ python
20 LilyPond lets you create music notation. It produces
21 beautiful sheet music from a high-level description file.
23 %package documentation
24 Summary: All LilyPond documentation, in HTML
25 Group: Applications/Publishing
26 # BuildArchitectures: noarch
28 %description documentation
29 Documentation and example files of LilyPond. An index is available at
30 %{_docdir}/web/Documentation/out-www/index.html
37 # DO NOT use % { configure } , it hardcodes all paths, runs libtool,
38 # so we can't do make prefixix=/tmp/ install.
40 # In fact, do not take out the spaces between % and { in the above comment,
41 # because RPM will gladly do a substitution anyway.
43 ./configure --disable-checking --prefix=%{_prefix} --enable-optimising
45 make MAKE_PFA_FILES=1 all
56 rm -rf $RPM_BUILD_ROOT
57 mkdir -p $RPM_BUILD_ROOT/tmp/lilypond-rpm-doc
59 strip lily/out/lilypond
60 make prefix="$RPM_BUILD_ROOT%{_prefix}" infodir="$RPM_BUILD_ROOT%{_infodir}" MAKE_PFA_FILES=1 mandir="$RPM_BUILD_ROOT%{_mandir}" install
63 rm -f $RPM_BUILD_ROOT/%{_infodir}/dir
64 gzip -9fn $RPM_BUILD_ROOT%{_infodir}/*
67 mkdir -p $RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp/site-start.d
68 install -m 644 lilypond-mode.el lilypond-font-lock.el lilypond-indent.el $RPM_BUILD_ROOT/%{_datadir}/emacs/site-lisp/
69 install -m 644 lilypond-init.el $RPM_BUILD_ROOT/%{_datadir}/emacs/site-lisp/site-start.d
71 gzip -9fn $RPM_BUILD_ROOT%{_mandir}/man1/*
73 mkdir -p $RPM_BUILD_ROOT/etc/profile.d
74 cp buildscripts/out/lilypond-profile $RPM_BUILD_ROOT/etc/profile.d/lilypond.sh
75 cp buildscripts/out/lilypond-login $RPM_BUILD_ROOT/etc/profile.d/lilypond.csh
78 # again, make sure that main package installs even if doco fails
80 tar -C web -xzf out/web.tar.gz
85 touch /tmp/.lilypond-install
86 rm `find /var/lib/texmf -name 'feta*pk' -or -name 'feta*tfm' -or -name 'parmesan*pk' -or -name 'parmesan*tfm' -print` /tmp/.lilypond-install
89 /sbin/install-info %{_infodir}/lilypond.info.gz %{_infodir}/dir
92 /usr/X11R6/bin/mkfontdir %{_datadir}/lilypond/@TOPLEVEL_VERSION@/fonts/type1/
93 chkfontpath --add=%{_datadir}/lilypond/@TOPLEVEL_VERSION@/fonts/type1/
95 echo 'Please logout first before using LilyPond.'
101 /sbin/install-info --delete %{_infodir}/lilypond.info.gz %{_infodir}/dir
105 rm -f %{_datadir}/lilypond/@TOPLEVEL_VERSION@/fonts/type1/fonts.dir
106 chkfontpath --remove=%{_datadir}/share/lilypond/@TOPLEVEL_VERSION@/fonts/type1/
109 %defattr(-, root, root)
110 %{_datadir}/emacs/site-lisp/lilypond-*
111 %{_datadir}/emacs/site-lisp/site-start.d/lilypond-*
115 %{_bindir}/convert-ly
120 %{_bindir}/lilypond-book
122 %{_bindir}/musedata2ly
129 %{_mandir}/man1/abc2ly.1.gz
130 %{_mandir}/man1/as2text.1.gz
131 %{_mandir}/man1/convert-ly.1.gz
132 %{_mandir}/man1/etf2ly.1.gz
133 %{_mandir}/man1/lilypond.1.gz
134 %{_mandir}/man1/ly2dvi.1.gz
135 %{_mandir}/man1/midi2ly.1.gz
136 %{_mandir}/man1/lilypond-book.1.gz
137 %{_mandir}/man1/musedata2ly.1.gz
138 %{_mandir}/man1/mup2ly.1.gz
139 %{_mandir}/man1/pmx2ly.1.gz
141 %{_datadir}/lilypond/@TOPLEVEL_VERSION@/
142 %{_datadir}/locale/*/LC_MESSAGES/lilypond.mo
143 /etc/profile.d/lilypond.*