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
19 # requires texinfo >= 4.6 really, otherwise the info files fuck up.
20 # however, that's still not standard on RH 9, so we'll leave it at this
23 Buildrequires: texinfo
24 Requires: tetex tetex-latex libstdc++ python
25 Requires: guile >= 1.6.4-7
28 LilyPond lets you create music notation. It produces
29 beautiful sheet music from a high-level description file.
31 %package documentation
32 Summary: All LilyPond documentation, in HTML
33 Group: Applications/Publishing
34 # BuildArchitectures: noarch
36 %description documentation
37 Documentation and example files of LilyPond. An index is available at
38 %{docdir}/web/Documentation/out-www/index.html
45 # DO NOT use % { configure } , it hardcodes all paths, runs libtool,
46 # so we can't do make prefixix=/tmp/ install.
48 # In fact, do not take out the spaces between % and { in the above comment,
49 # because RPM will gladly do a substitution anyway.
51 ./configure --disable-checking --prefix=%{_prefix} --enable-optimising
54 make MAKE_PFA_FILES=1 all
62 make -C Documentation/user omf
67 rm -rf $RPM_BUILD_ROOT
68 mkdir -p $RPM_BUILD_ROOT/tmp/lilypond-rpm-doc
70 strip lily/out/lilypond
71 make prefix="$RPM_BUILD_ROOT%{_prefix}" infodir="$RPM_BUILD_ROOT%{_infodir}" MAKE_PFA_FILES=1 mandir="$RPM_BUILD_ROOT%{_mandir}" install
74 rm -f $RPM_BUILD_ROOT/%{_infodir}/dir
75 gzip -9fn $RPM_BUILD_ROOT%{_infodir}/*
78 mkdir -p $RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp/site-start.d
79 install -m 644 lilypond-mode.el lilypond-font-lock.el lilypond-indent.el lilypond.words $RPM_BUILD_ROOT/%{_datadir}/emacs/site-lisp/
80 install -m 644 lilypond-init.el $RPM_BUILD_ROOT/%{_datadir}/emacs/site-lisp/site-start.d
82 gzip -9fn $RPM_BUILD_ROOT%{_mandir}/man1/*
84 mkdir -p $RPM_BUILD_ROOT/etc/profile.d
85 cp buildscripts/out/lilypond-profile $RPM_BUILD_ROOT/etc/profile.d/lilypond.sh
86 cp buildscripts/out/lilypond-login $RPM_BUILD_ROOT/etc/profile.d/lilypond.csh
88 make prefix="$RPM_BUILD_ROOT%{_prefix}" install-html-doc
93 touch /tmp/.lilypond-install
94 rm `find /var/lib/texmf -name 'feta*pk' -or -name 'feta*tfm' -or -name 'parmesan*pk' -or -name 'parmesan*tfm' -print` /tmp/.lilypond-install
97 /sbin/install-info %{_infodir}/lilypond.info.gz %{_infodir}/dir
100 # chkfontpath --add=%{_datadir}/lilypond/@TOPLEVEL_VERSION@/fonts/type1/
102 echo 'Please logout first before using LilyPond.'
109 /sbin/install-info --delete %{_infodir}/lilypond.info.gz %{_infodir}/dir
113 # chkfontpath --remove=%{_datadir}/share/lilypond/@TOPLEVEL_VERSION@/fonts/type1/
119 %postun documentation
125 %defattr(-, root, root)
126 %{_datadir}/emacs/site-lisp/lilypond*
127 %{_datadir}/emacs/site-lisp/site-start.d/lilypond-*
131 %{_bindir}/convert-ly
136 %{_bindir}/lilypond-book
138 %{_bindir}/musedata2ly
147 %{_mandir}/man1/abc2ly.1.gz
148 %{_mandir}/man1/as2text.1.gz
149 %{_mandir}/man1/convert-ly.1.gz
150 %{_mandir}/man1/etf2ly.1.gz
151 %{_mandir}/man1/lilypond.1.gz
152 %{_mandir}/man1/ly2dvi.1.gz
153 %{_mandir}/man1/midi2ly.1.gz
154 %{_mandir}/man1/lilypond-book.1.gz
155 %{_mandir}/man1/musedata2ly.1.gz
156 %{_mandir}/man1/mup2ly.1.gz
157 %{_mandir}/man1/pmx2ly.1.gz
159 %{_datadir}/lilypond/@TOPLEVEL_VERSION@/
160 %{_datadir}/locale/*/LC_MESSAGES/lilypond.mo
164 /etc/profile.d/lilypond.*
169 %defattr(-, root, root)
171 %{docdir}/@TOPLEVEL_VERSION@
172 %{_datadir}/omf/lilypond/@TOPLEVEL_VERSION@