4 Version: @TOPLEVEL_VERSION@
7 Group: Applications/Publishing
8 Source0: ftp.cs.uu.nl:/pub/GNU/LilyPond/development/lilypond-@TOPLEVEL_VERSION@.tar.gz
9 Summary: A program for printing sheet music.
10 URL: http://www.cs.uu.nl/~hanwen/lilypond
11 # Icon: @package@-icon.gif
12 BuildRoot: /tmp/lilypond-install
16 LilyPond is a music typesetter. It produces beautiful
17 sheet music using a high level description file as input. LilyPond is
18 part of the GNU Project.
20 %package documentation
21 Summary: Prebuilt website containing all LilyPond documentation.
22 Group: Applications/Publishing
23 # BuildArchitectures: noarch
25 %description documentation
27 The documentation of LilyPond, both in HTML and PostScript.
36 # DO NOT use % { configure } , it hardcodes all paths, runs libtool,
37 # so we can't do make prefix=/tmp/ install.
39 # In fact, do not take out the spaces between % and { , because RPM will gladly
40 # do a substitution anyway.
42 ./configure --disable-checking --disable-debugging --enable-printing --prefix=%{_prefix} --disable-optimise --enable-shared
47 # %build documentation
48 # line 42: second %build
49 # ok, now make sure that lilypond package will succeed,
50 # even if documentation fails to build
52 make -C Documentation || true
59 rm -rf $RPM_BUILD_ROOT
60 mkdir -p $RPM_BUILD_ROOT/tmp/lilypond-rpm-doc
62 strip lily/out/lilypond midi2ly/out/midi2ly
63 make prefix="$RPM_BUILD_ROOT%{_prefix}" install
65 gzip -9fn $RPM_BUILD_ROOT%{_prefix}/info/* || true
70 gzip -9fn $RPM_BUILD_ROOT%{_prefix}/man/man1/* || true
75 mkdir -p $RPM_BUILD_ROOT%{_prefix}/../etc/profile.d
76 cp buildscripts/out/lilypond-profile $RPM_BUILD_ROOT%{_prefix}/../etc/profile.d/lilypond.sh
77 cp buildscripts/out/lilypond-login $RPM_BUILD_ROOT%{_prefix}/../etc/profile.d/lilypond.csh
80 #%install documentation
81 #line 63: second %install
82 # again, make sure that main package installs even if doco fails
84 tar -C web -xzf out/web.tar.gz || true
87 # urg, this symlink doesn't come through on cygwin
88 # this is the way symlinks work over there, let's fake one
89 rm -f $RPM_BUILD_ROOT%{_prefix}/share/lilypond/cmtfm
90 echo '!<symlink>c:\\texmf\\fonts\\tfm\\public\\cm' > $RPM_BUILD_ROOT%{_prefix}/share/lilypond/cmtfm
96 touch /tmp/.lilypond-install
97 rm `find /var/lib/texmf -name 'feta*pk -print' -or -name 'feta*tfm -print'` /tmp/.lilypond-install
99 /sbin/install-info %{_prefix}/info/lilypond.info.gz %{_prefix}/info/dir || true
105 /sbin/install-info --delete %{_prefix}/info/lilypond.info.gz %{_prefix}/info/dir || true
111 # hairy to hook it in (possibly non-existing) emacs
112 %doc lilypond-mode.el
113 %doc lilypond-font-lock.el
116 %{_prefix}/bin/abc2ly
117 %{_prefix}/bin/as2text
118 %{_prefix}/bin/convert-ly
119 %{_prefix}/bin/etf2ly
120 %{_prefix}/bin/lilypond
121 %{_prefix}/bin/ly2dvi
122 %{_prefix}/bin/midi2ly
123 %{_prefix}/bin/lilypond-book
124 %{_prefix}/bin/musedata2ly
125 %{_prefix}/bin/pmx2ly
131 %{_prefix}/info/lilypond.info.gz
132 %{_prefix}/info/lilypond-internals.info.gz
135 %{_prefix}/man/man1/abc2ly.1.gz
136 %{_prefix}/man/man1/as2text.1.gz
137 %{_prefix}/man/man1/convert-ly.1.gz
138 %{_prefix}/man/man1/etf2ly.1.gz
139 %{_prefix}/man/man1/lilypond.1.gz
140 %{_prefix}/man/man1/ly2dvi.1.gz
141 %{_prefix}/man/man1/midi2ly.1.gz
142 %{_prefix}/man/man1/lilypond-book.1.gz
143 %{_prefix}/man/man1/musedata2ly.1.gz
144 %{_prefix}/man/man1/pmx2ly.1.gz
146 %{_prefix}/share/lilypond/
147 %{_prefix}/share/locale/*/LC_MESSAGES/lilypond.mo
149 %{_prefix}/../etc/profile.d/lilypond.*
152 # this gets too messy...
154 # verbatim include of input: list the directory without issuing a %dir