4 %define docdir %{_docdir}/lilypond/
7 Version: @TOPLEVEL_VERSION@
10 Group: Applications/Publishing
11 Source0: ftp.cs.uu.nl:/pub/GNU/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 texinfo
18 Requires: tetex tetex-latex libstdc++ python
21 LilyPond lets you create music notation. It produces
22 beautiful sheet music from a high-level description file.
24 %package documentation
25 Summary: All LilyPond documentation, in HTML
26 Group: Applications/Publishing
27 # BuildArchitectures: noarch
29 %description documentation
30 Documentation and example files of LilyPond. An index is available at
31 %{docdir}/web/Documentation/out-www/index.html
38 # DO NOT use % { configure } , it hardcodes all paths, runs libtool,
39 # so we can't do make prefixix=/tmp/ install.
41 # In fact, do not take out the spaces between % and { in the above comment,
42 # because RPM will gladly do a substitution anyway.
44 ./configure --disable-checking --prefix=%{_prefix} --enable-optimising
47 make MAKE_PFA_FILES=1 all
59 rm -rf $RPM_BUILD_ROOT
60 mkdir -p $RPM_BUILD_ROOT/tmp/lilypond-rpm-doc
62 strip lily/out/lilypond
63 make prefix="$RPM_BUILD_ROOT%{_prefix}" infodir="$RPM_BUILD_ROOT%{_infodir}" MAKE_PFA_FILES=1 mandir="$RPM_BUILD_ROOT%{_mandir}" install
66 rm -f $RPM_BUILD_ROOT/%{_infodir}/dir
67 gzip -9fn $RPM_BUILD_ROOT%{_infodir}/*
70 mkdir -p $RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp/site-start.d
71 install -m 644 lilypond-mode.el lilypond-font-lock.el lilypond-indent.el lilypond.words $RPM_BUILD_ROOT/%{_datadir}/emacs/site-lisp/
72 install -m 644 lilypond-init.el $RPM_BUILD_ROOT/%{_datadir}/emacs/site-lisp/site-start.d
74 gzip -9fn $RPM_BUILD_ROOT%{_mandir}/man1/*
76 mkdir -p $RPM_BUILD_ROOT/etc/profile.d
77 cp buildscripts/out/lilypond-profile $RPM_BUILD_ROOT/etc/profile.d/lilypond.sh
78 cp buildscripts/out/lilypond-login $RPM_BUILD_ROOT/etc/profile.d/lilypond.csh
81 # again, make sure that main package installs even if doco fails
83 tar -C web -xzf out/web.tar.gz
88 touch /tmp/.lilypond-install
89 rm `find /var/lib/texmf -name 'feta*pk' -or -name 'feta*tfm' -or -name 'parmesan*pk' -or -name 'parmesan*tfm' -print` /tmp/.lilypond-install
92 /sbin/install-info %{_infodir}/lilypond.info.gz %{_infodir}/dir
95 chkfontpath --add=%{_datadir}/lilypond/@TOPLEVEL_VERSION@/fonts/type1/
97 echo 'Please logout first before using LilyPond.'
103 /sbin/install-info --delete %{_infodir}/lilypond.info.gz %{_infodir}/dir
107 chkfontpath --remove=%{_datadir}/share/lilypond/@TOPLEVEL_VERSION@/fonts/type1/
110 %defattr(-, root, root)
111 %{_datadir}/emacs/site-lisp/lilypond*
112 %{_datadir}/emacs/site-lisp/site-start.d/lilypond-*
116 %{_bindir}/convert-ly
121 %{_bindir}/lilypond-book
123 %{_bindir}/musedata2ly
130 %{_mandir}/man1/abc2ly.1.gz
131 %{_mandir}/man1/as2text.1.gz
132 %{_mandir}/man1/convert-ly.1.gz
133 %{_mandir}/man1/etf2ly.1.gz
134 %{_mandir}/man1/lilypond.1.gz
135 %{_mandir}/man1/ly2dvi.1.gz
136 %{_mandir}/man1/midi2ly.1.gz
137 %{_mandir}/man1/lilypond-book.1.gz
138 %{_mandir}/man1/musedata2ly.1.gz
139 %{_mandir}/man1/mup2ly.1.gz
140 %{_mandir}/man1/pmx2ly.1.gz
142 %{_datadir}/lilypond/@TOPLEVEL_VERSION@/
143 %{_datadir}/locale/*/LC_MESSAGES/lilypond.mo
144 /etc/profile.d/lilypond.*
147 %defattr(-, root, root)