4 %define docdir %{_docdir}/lilypond/
7 Version: @TOPLEVEL_VERSION@
10 Group: Applications/Publishing
11 Source0: ftp.lilypond.org:/pub/LilyPond/development/lilypond-@TOPLEVEL_VERSION@.tar.gz
12 Summary: Create and print music notation
13 URL: http://www.lilypond.org/
14 BuildRoot: %{_tmppath}/%{name}-%{version}-root
17 Buildrequires: t1utils bison flex mftrace ImageMagick
18 Buildrequires: texinfo >= 4.6
19 Buildrequires: guile-devel >= 1.6.4-8
20 Requires: tetex tetex-latex libstdc++ python tetex-dvips tetex-latex
21 Requires: guile >= 1.6.4-8
24 LilyPond lets you create music notation. It produces
25 beautiful sheet music from a high-level description file.
27 %package documentation
28 Summary: All LilyPond documentation, in HTML
29 Group: Applications/Publishing
30 # BuildArchitectures: noarch
32 %description documentation
33 Documentation and example files of LilyPond. An index is available at
34 %{docdir}/web/Documentation/out-www/index.html
41 # DO NOT use % { configure } , it hardcodes all paths, runs libtool,
42 # so we can't do make prefixix=/tmp/ install.
44 # In fact, do not take out the spaces between % and { in the above comment,
45 # because RPM will gladly do a substitution anyway.
47 ./configure --disable-checking --prefix=%{_prefix} --enable-optimising
52 make -C Documentation/user local_package_docdir=%{docdir} omf
57 rm -rf $RPM_BUILD_ROOT
58 mkdir -p $RPM_BUILD_ROOT/tmp/lilypond-rpm-doc
60 make prefix="$RPM_BUILD_ROOT%{_prefix}" \
61 infodir="$RPM_BUILD_ROOT%{_infodir}" \
62 mandir="$RPM_BUILD_ROOT%{_mandir}" install
65 mkdir -p $RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp/site-start.d
66 install -m 644 elisp/lilypond-init.el $RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp/site-start.d
69 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 make prefix="$RPM_BUILD_ROOT%{_prefix}" \
79 infodir="$RPM_BUILD_ROOT%{_infodir}" \
80 webdir="$RPM_BUILD_ROOT%{_prefix}/share/doc/lilypond/" web-install
84 rm -f $RPM_BUILD_ROOT/%{_infodir}/dir
85 gzip -9fn `find $RPM_BUILD_ROOT%{_infodir}/ -name '*.info'`
92 touch /tmp/.lilypond-install
93 rm `find /var/lib/texmf -name 'feta*pk' -or -name 'feta*tfm' -or -name 'parmesan*pk' -or -name 'parmesan*tfm' -print` /tmp/.lilypond-install
96 /sbin/install-info %{_infodir}/lilypond.info.gz %{_infodir}/dir
97 /sbin/install-info %{_infodir}/music-glossary.info.gz %{_infodir}/dir
100 # chkfontpath --add=%{_datadir}/lilypond/@TOPLEVEL_VERSION@/fonts/type1/
102 echo 'Please logout first before using LilyPond.'
105 if [ -f /usr/share/lilypond/%{version}/ls-R ]; then
106 rm -f /usr/share/lilypond/%{version}/ls-R
111 /sbin/install-info --delete %{_infodir}/lilypond.info.gz %{_infodir}/dir
112 /sbin/install-info --delete %{_infodir}/music-glossary.info.gz %{_infodir}/dir
115 # chkfontpath --remove=%{_datadir}/share/lilypond/@TOPLEVEL_VERSION@/fonts/type1n/
122 %postun documentation
128 %defattr(-, root, root)
129 %{_datadir}/emacs/site-lisp/lilypond*
130 %{_datadir}/emacs/site-lisp/site-start.d/lilypond*
133 %{_bindir}/convert-ly
136 %{_bindir}/lilypond-bin
138 %{_bindir}/lilypond-book
140 %{_bindir}/musedata2ly
151 %{_infodir}/lilypond/
154 %{_mandir}/man1/abc2ly.1.gz
155 %{_mandir}/man1/convert-ly.1.gz
156 %{_mandir}/man1/etf2ly.1.gz
157 %{_mandir}/man1/lilypond-bin.1.gz
158 %{_mandir}/man1/lilypond.1.gz
159 %{_mandir}/man1/midi2ly.1.gz
160 %{_mandir}/man1/lilypond-book.1.gz
161 %{_mandir}/man1/musedata2ly.1.gz
162 %{_mandir}/man1/mup2ly.1.gz
164 %{_datadir}/lilypond/@TOPLEVEL_VERSION@/
165 %{_datadir}/locale/*/LC_MESSAGES/lilypond.mo
169 /etc/profile.d/lilypond.*
174 %defattr(-, root, root)
177 %{_datadir}/omf/lilypond/@TOPLEVEL_VERSION@