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
57 rm -rf $RPM_BUILD_ROOT
58 mkdir -p $RPM_BUILD_ROOT/tmp/lilypond-rpm-doc
60 strip lily/out/lilypond
61 make prefix="$RPM_BUILD_ROOT%{_prefix}" infodir="$RPM_BUILD_ROOT%{_infodir}" MAKE_PFA_FILES=1 mandir="$RPM_BUILD_ROOT%{_mandir}" install
64 rm -f $RPM_BUILD_ROOT/%{_infodir}/dir
65 gzip -9fn $RPM_BUILD_ROOT%{_infodir}/*
68 mkdir -p $RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp/site-start.d
69 install -m 644 lilypond-mode.el lilypond-font-lock.el lilypond-indent.el lilypond.words $RPM_BUILD_ROOT/%{_datadir}/emacs/site-lisp/
70 install -m 644 lilypond-init.el $RPM_BUILD_ROOT/%{_datadir}/emacs/site-lisp/site-start.d
72 gzip -9fn $RPM_BUILD_ROOT%{_mandir}/man1/*
74 mkdir -p $RPM_BUILD_ROOT/etc/profile.d
75 cp buildscripts/out/lilypond-profile $RPM_BUILD_ROOT/etc/profile.d/lilypond.sh
76 cp buildscripts/out/lilypond-login $RPM_BUILD_ROOT/etc/profile.d/lilypond.csh
79 # again, make sure that main package installs even if doco fails
81 tar -C web -xzf out/web.tar.gz
86 touch /tmp/.lilypond-install
87 rm `find /var/lib/texmf -name 'feta*pk' -or -name 'feta*tfm' -or -name 'parmesan*pk' -or -name 'parmesan*tfm' -print` /tmp/.lilypond-install
90 /sbin/install-info %{_infodir}/lilypond.info.gz %{_infodir}/dir
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 chkfontpath --remove=%{_datadir}/share/lilypond/@TOPLEVEL_VERSION@/fonts/type1/
108 %defattr(-, root, root)
109 %{_datadir}/emacs/site-lisp/lilypond*
110 %{_datadir}/emacs/site-lisp/site-start.d/lilypond-*
114 %{_bindir}/convert-ly
119 %{_bindir}/lilypond-book
121 %{_bindir}/musedata2ly
128 %{_mandir}/man1/abc2ly.1.gz
129 %{_mandir}/man1/as2text.1.gz
130 %{_mandir}/man1/convert-ly.1.gz
131 %{_mandir}/man1/etf2ly.1.gz
132 %{_mandir}/man1/lilypond.1.gz
133 %{_mandir}/man1/ly2dvi.1.gz
134 %{_mandir}/man1/midi2ly.1.gz
135 %{_mandir}/man1/lilypond-book.1.gz
136 %{_mandir}/man1/musedata2ly.1.gz
137 %{_mandir}/man1/mup2ly.1.gz
138 %{_mandir}/man1/pmx2ly.1.gz
140 %{_datadir}/lilypond/@TOPLEVEL_VERSION@/
141 %{_datadir}/locale/*/LC_MESSAGES/lilypond.mo
142 /etc/profile.d/lilypond.*
145 %defattr(-, root, root)