1 # -*- rpm-spec-mode -*-
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: /tmp/lilypond-install
15 # add lots of Buildreq: flex, bison, tetex, tetex-devel, tetex-latex, texinfo
16 Prereq: tetex tetex-latex gcc-c++ python
19 Buildreq: t1utils bison flex pktrace texinfo
22 LilyPond lets you create music notation. It produces
23 beautiful sheet music from a high-level description file.
25 %package documentation
26 Summary: Prebuilt website containing all LilyPond documentation.
27 Group: Applications/Publishing
28 # BuildArchitectures: noarch
30 %description documentation
32 The documentation of LilyPond, both in HTML and PostScript.
39 # DO NOT use % { configure } , it hardcodes all paths, runs libtool,
40 # so we can't do make prefix=/tmp/ install.
42 # In fact, do not take out the spaces between % and { in the above comment,
43 # because RPM will gladly do a substitution anyway.
45 ./configure --disable-checking --prefix=%{_prefix} --enable-optimise
47 make MAKE_PFA_FILES=1 all
58 rm -rf $RPM_BUILD_ROOT
59 mkdir -p $RPM_BUILD_ROOT/tmp/lilypond-rpm-doc
61 strip lily/out/lilypond
62 make prefix="$RPM_BUILD_ROOT%{_prefix}" MAKE_PFA_FILES=1 install
65 gzip -9fn $RPM_BUILD_ROOT%{_prefix}/info/*
68 mkdir -p $RPM_BUILD_ROOT/usr/share/emacs/site-lisp/site-start.d
69 install -m 644 lilypond-mode.el lilypond-font-lock.el lilypond-indent.el $RPM_BUILD_ROOT/usr/share/emacs/site-lisp/
70 install -m 644 lilypond-init.el $RPM_BUILD_ROOT/usr/share/emacs/site-lisp/site-start.d
72 gzip -9fn $RPM_BUILD_ROOT%{_prefix}/man/man1/*
74 mkdir -p $RPM_BUILD_ROOT%{_prefix}/../etc/profile.d
75 cp buildscripts/out/lilypond-profile $RPM_BUILD_ROOT%{_prefix}/../etc/profile.d/lilypond.sh
76 cp buildscripts/out/lilypond-login $RPM_BUILD_ROOT%{_prefix}/../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 -print' -or -name 'feta*tfm -print'` /tmp/.lilypond-install
90 /sbin/install-info %{_prefix}/info/lilypond.info.gz %{_prefix}/info/dir
94 /usr/X11R6/bin/mkfontdir /usr/share/lilypond/@TOPLEVEL_VERSION@/fonts/type1/
95 chkfontpath --add=/usr/share/lilypond/@TOPLEVEL_VERSION@/fonts/type1/
97 echo 'Please logout first before using LilyPond.'
103 /sbin/install-info --delete %{_prefix}/info/lilypond.info.gz %{_prefix}/info/dir
107 rm -f /usr/share/lilypond/@TOPLEVEL_VERSION@/fonts/type1/fonts.dir
108 chkfontpath --remove=/usr/share/lilypond/@TOPLEVEL_VERSION@/fonts/type1/
111 %defattr(-, root, root)
112 %{_datadir}/emacs/site-lisp/lilypond-*
113 %{_datadir}/emacs/site-lisp/site-start.d/lilypond-*
115 %{_prefix}/bin/abc2ly
116 %{_prefix}/bin/as2text
117 %{_prefix}/bin/convert-ly
118 %{_prefix}/bin/etf2ly
119 %{_prefix}/bin/lilypond
120 %{_prefix}/bin/ly2dvi
121 %{_prefix}/bin/midi2ly
122 %{_prefix}/bin/lilypond-book
123 %{_prefix}/bin/mup2ly
124 %{_prefix}/bin/musedata2ly
125 %{_prefix}/bin/pmx2ly
128 %{_prefix}/info/lilypond.info.gz
129 %{_prefix}/info/lilypond-internals.info.gz
132 %{_prefix}/man/man1/abc2ly.1.gz
133 %{_prefix}/man/man1/as2text.1.gz
134 %{_prefix}/man/man1/convert-ly.1.gz
135 %{_prefix}/man/man1/etf2ly.1.gz
136 %{_prefix}/man/man1/lilypond.1.gz
137 %{_prefix}/man/man1/ly2dvi.1.gz
138 %{_prefix}/man/man1/midi2ly.1.gz
139 %{_prefix}/man/man1/lilypond-book.1.gz
140 %{_prefix}/man/man1/musedata2ly.1.gz
141 %{_prefix}/man/man1/mup2ly.1.gz
142 %{_prefix}/man/man1/pmx2ly.1.gz
144 %{_prefix}/share/lilypond/@TOPLEVEL_VERSION@/
145 %{_prefix}/share/locale/*/LC_MESSAGES/lilypond.mo
146 %{_prefix}/../etc/profile.d/lilypond.*