]> git.donarmstrong.com Git - lilypond.git/blob - make/lilypond.suse.spec.in
059a922f98d365d6619961c065a318f16e646a59
[lilypond.git] / make / lilypond.suse.spec.in
1 #
2 # spec file for package lilypond (Version 1.3.149)
3 # based on 
4 #    spec file for package lilypond (Version 1.2.17)
5 #    Copyright  (c)  2000  SuSE GmbH  Nuernberg, Germany.
6 #
7 # Please send bug reports to schlemme@mathe.tu-freiberg.de
8
9 %define info yes
10
11 # neededforbuild  guile tcsh tetex te_latex te_mpost libpng python gpp libgpp gettext autoconf netpbm libnetpb gs_serv gs_lib gs_fonts guile
12 # usedforbuild    aaa_base aaa_dir autoconf automake base bash bindutil binutils bison bzip compress cpio cracklib devs diff ext2fs file fileutil find flex gawk gcc gdbm gettext gpm gpp gppshare groff gs_fonts gs_lib gs_serv guile gzip kbd less libc libgpp libnetpb libpng libtool libz lx_suse make mktemp modules ncurses net_tool netcfg netpbm nkita nkitb nssv1 pam patch perl pgp ps python rcs rpm sendmail sh_utils shadow shlibs strace syslogd sysvinit tcsh te_ams te_latex te_mpost tetex texinfo textutil timezone unzip util vim xdevel xf86 xshared guile
13
14
15 Distribution: SuSE Linux 7.0 (i386)
16 Name: lilypond
17 Version: @TOPLEVEL_VERSION@
18 Release: 2
19 Copyright:    GPL
20 Group: Applications/Publishing
21 Source0: ftp.lilyond.org:/pub/LilyPond/development/lilypond-@TOPLEVEL_VERSION@.tar.gz
22 # music notation software for.. ?
23 Summary: A program for printing sheet music.
24 URL: http://www.lilypond.org/
25 # rpm: 4.0: broken for -ta builds: rpm doesn't look in tarball for xpm
26 # Icon: lilypond-icon.xpm
27 BuildRoot: /tmp/lilypond-install
28 # add lots of Buildreq: tetex-kpath, te_mpost, bison
29 # better prereqs: tetex-latex, python, (mpost?) etc.
30 Prereq: tetex python
31
32 # use keywords: music notation software
33 %description
34 LilyPond is a music typesetter.  It produces beautiful
35 sheet music using a high level description file as input.  LilyPond is
36 part of the GNU Project.
37
38 Authors:
39 --------
40     Han-Wen Nienhuys <hanwen@cs.uu.nl>
41     Jan Nieuwenhuizen <janneke@gnu.org>
42     Alexandre Oliva <oliva@dcc.unicamp.br>
43     Mats Bengtsson <matsb@s3.kth.se>
44     Eric Bullinger <eric@aut.ee.ethz.ch>
45     Jan Arne Fagertun <Jan.A.Fagertun@energy.sintef.no>
46     Anthony Fok <foka@debian.org>
47     Neil Jerram <nj104@cus.cam.ac.uk>
48     Donald Ervin Knuth
49     Werner Lemberg <wl@gnu.org>
50     David R. Linn <drl@vuse.vanderbilt.edu>
51     François Pinard <pinard@iro.umontreal.ca>
52     Jeffrey B. Reed <daboys@bga.com>
53     Shay Rojanski
54     Tom Cato Amundsen <tca@gnu.org>
55     Laura Conrad <lconrad@world.std.com>
56     James Hammons <jlhamm@pacificnet.net>
57     Bjoern Jacke <bjoern.jacke@gmx.de>
58     Michael Krause <m.krause@tu-harburg.de>
59     David R. Linn <drl@vuse.vanderbilt.edu>
60     Adrian Mariano
61     Stephen Peters <portnoy@ai.mit.edu>
62     Glen Prideaux <glenprideaux@iname.com>
63     Roy R. Rankin <Roy.Rankin@alcatel.com.au>
64     Juergen Reuter <reuter@ipd.uka.de>
65     August S.Sigov <august@infran.ru>
66     Rune Zedeler <rune@zedeler.dk>
67
68 SuSE series: ap
69
70 %package doc
71 Summary: Prebuilt website containing all LilyPond documentation.
72 Group: Applications/Publishing
73 # BuildArchitectures: noarch
74
75 %description doc
76
77 The documentation of LilyPond, both in HTML and PostScript.
78
79 %define INSTALL install -m755 -s
80 %define INSTALL_DIR install -d -m755
81 %define INSTALL_DATA install -m644
82 %prep
83 %setup
84
85 %build
86
87 #
88
89 # DO NOT use % { configure } , it hardcodes all paths, runs libtool,
90 # so we can't do make prefix=/tmp/ install.
91
92 # In fact, do not take out the spaces between % and { , because RPM will gladly
93 # do a substitution anyway.
94
95 CFLAGS="$RPM_OPT_FLAGS" ./configure --disable-checking --disable-debugging --enable-printing --prefix=%{_prefix} --enable-optimising --enable-shared
96
97 make LDFLAGS=-s "CFLAGS=$RPM_OPT_FLAGS" all
98
99 # urg
100 # %build doc
101 # line 42: second %build
102 # ok, now make sure that lilypond package will succeed,
103 # even if documentation fails to build
104
105 make lilypond.words
106
107 make web
108
109 %install
110
111
112
113 rm -rf $RPM_BUILD_ROOT
114 mkdir -p $RPM_BUILD_ROOT/tmp/lilypond-rpm-doc
115
116 ## this is an ugly hack
117 mkdir -p scripts/share/lilypond/tex
118 cp tex/titledefs.tex scripts/share/lilypond/tex
119 ## end of hack
120
121
122 strip lily/out/lilypond 
123 make prefix="$RPM_BUILD_ROOT%{_prefix}" install
124
125 %{INSTALL_DIR} $RPM_BUILD_ROOT/usr/share/texmf/fonts/source/public/lilypond
126 (cd $RPM_BUILD_ROOT/usr/share/lilypond \
127     && mv mf/* $RPM_BUILD_ROOT/usr/share/texmf/fonts/source/public/lilypond \
128     && rm -fr mf \
129     && ln -s ../texmf/fonts/source/public/lilypond mf)
130 %{INSTALL_DIR} $RPM_BUILD_ROOT/usr/share/texmf/fonts/afm/lilypond
131 (cd $RPM_BUILD_ROOT/usr/share/lilypond \
132     && mv afm/* $RPM_BUILD_ROOT/usr/share/texmf/fonts/afm/lilypond \
133     && rm -fr afm \
134     && ln -s ../texmf/fonts/afm/lilypond afm)
135 %{INSTALL_DIR} $RPM_BUILD_ROOT/usr/share/texmf/tex/lilypond
136 (cd $RPM_BUILD_ROOT/usr/share/lilypond \
137     && mv tex/* $RPM_BUILD_ROOT/usr/share/texmf/tex/lilypond \
138     && rm -fr tex \
139     && ln -s ../texmf/tex/lilypond tex)
140 %{INSTALL_DIR} $RPM_BUILD_ROOT/usr/share/texmf/lilypond/ps
141 (cd $RPM_BUILD_ROOT/usr/share/lilypond \
142     && mv ps/* $RPM_BUILD_ROOT/usr/share/texmf/lilypond/ps \
143     && rm -fr ps \
144     && ln -s ../texmf/lilypond/ps ps)
145
146
147 %if info=="yes"
148 gzip -9fn $RPM_BUILD_ROOT%{_prefix}/info/* || true
149 %endif
150
151
152
153 gzip -9fn $RPM_BUILD_ROOT%{_prefix}/man/man1/* || true
154
155
156
157
158 mkdir -p $RPM_BUILD_ROOT%{_prefix}/../etc/profile.d
159 cp buildscripts/out/lilypond-profile $RPM_BUILD_ROOT%{_prefix}/../etc/profile.d/lilypond.sh
160 cp buildscripts/out/lilypond-login $RPM_BUILD_ROOT%{_prefix}/../etc/profile.d/lilypond.csh
161
162 # urg
163 #%install doc
164 #line 63: second %install
165 # again, make sure that main package installs even if doco fails
166 mkdir -p web/out
167 tar -C web -xzf out/web.tar.gz || true
168
169 %ifos cygwin
170 # urg, this symlink doesn't come through on cygwin
171 # this is the way symlinks work over there, let's fake one
172 rm -f $RPM_BUILD_ROOT%{_prefix}/share/lilypond/cmtfm
173 echo '!<symlink>c:\\texmf\\fonts\\tfm\\public\\cm' > $RPM_BUILD_ROOT%{_prefix}/share/lilypond/cmtfm
174 %{fix_suffixes}
175 %endif
176
177 %{?suse_check}
178
179
180 %pre
181 if [ -d usr/share/lilypond/ps ]; then
182   mv usr/share/lilypond/ps usr/share/lilypond/ps.old
183   echo "please, remove /usr/share/lilypond/ps.old manually."
184 fi
185
186 %post
187
188 touch /tmp/.lilypond-install
189 rm `find /var/lib/texmf -name 'feta*pk' -or -name 'feta*tfm' -or -name 'parmesan*pk' -or -name 'parmesan*tfm' -print'` /tmp/.lilypond-install
190 %if info=="yes"
191 /usr/bin/install-info %{_prefix}/info/lilypond.info.gz %{_prefix}/info/dir || true
192 %endif
193 mkdir -p var/adm/SuSEconfig
194 touch var/adm/SuSEconfig/run-texhash
195
196
197 %preun
198 %if info=="yes"
199 if [ $1 = 0 ]; then
200     /usr/bin/install-info --delete %{_prefix}/info/lilypond.info.gz %{_prefix}/info/dir || true
201 fi
202 %endif
203
204 %postun
205 mkdir -p var/adm/SuSEconfig
206 touch var/adm/SuSEconfig/run-texhash
207
208
209
210 %files
211 %defattr(-, root, root)
212 %doc CHANGES COPYING DEDICATION INSTALL.txt NEWS
213 %doc README.txt FAQ.txt AUTHORS.txt VERSION ROADMAP
214 %doc buildscripts/
215 %doc scripts/
216 # hairy to hook it in (possibly non-existing) emacs
217 %doc lilypond-mode.el
218 %doc lilypond-font-lock.el
219 %doc lilypond-indent.el
220 %doc lilypond-init.el
221 %doc out/lilypond.words.el
222
223 %config /etc/profile.d/*
224
225 %ifnos cygwin
226 %{_prefix}/bin/abc2ly
227 %{_prefix}/bin/convert-ly
228 %{_prefix}/bin/etf2ly
229 %{_prefix}/bin/lilypond-bin
230 %{_prefix}/bin/lilypond
231 %{_prefix}/bin/midi2ly
232 %{_prefix}/bin/lilypond-book
233 %{_prefix}/bin/mup2ly
234 %{_prefix}/bin/musedata2ly
235 %{_prefix}/bin/pmx2ly
236 %else
237 %{_prefix}/bin
238 %endif
239
240 %if info=="yes"
241 %{_prefix}/info/lilypond.info.gz
242 %{_prefix}/info/lilypond-internals.info.gz
243 %endif
244
245 %{_prefix}/man/man1/abc2ly.1.gz
246 %{_prefix}/man/man1/convert-ly.1.gz
247 %{_prefix}/man/man1/etf2ly.1.gz
248 %{_prefix}/man/man1/lilypond-bin.1.gz
249 %{_prefix}/man/man1/lilypond.1.gz
250 %{_prefix}/man/man1/midi2ly.1.gz
251 %{_prefix}/man/man1/lilypond-book.1.gz
252 %{_prefix}/man/man1/musedata2ly.1.gz
253 %{_prefix}/man/man1/mup2ly.1.gz
254 %{_prefix}/man/man1/pmx2ly.1.gz
255
256 %{_prefix}/share/lilypond/
257 %{_prefix}/share/texmf/
258 %{_prefix}/share/locale/*/LC_MESSAGES/lilypond.mo
259 # urg?
260 #%{_prefix}/../etc/profile.d/lilypond.*
261
262 %files doc
263 %defattr(-, root, root)
264 # this gets too messy...
265
266
267 %doc web/
268 # verbatim include of input: list the directory without issuing a %dir 
269
270 %changelog -n lilypond
271 * Sun Apr 22 2001 - schlemme@mathe.tu-freiberg.de
272 - update: 1.3.149
273 * Mon Apr 10 2000 - bk@suse.de
274 - added suse update config macro
275 * Thu Mar 16 2000 - kukuk@suse.de
276 - Use gs_serv, not gs_both (doesn't exist on all platforms)
277 * Wed Mar 01 2000 - uli@suse.de
278 - moved man pages to /usr/share
279 * Tue Dec 21 1999 - ke@suse.de
280 - add documentation (#271).
281 * Mon Dec 13 1999 - ke@suse.de
282 - update: 1.2.17.
283 - compiler fix (thanks to schwab@suse.de).
284 - #271.
285 * Mon Oct 25 1999 - ke@suse.de
286 - update: 1.2.16.
287 * Mon Sep 13 1999 - bs@suse.de
288 - ran old prepare_spec on spec file to switch to new prepare_spec.
289 * Mon Sep 06 1999 - ro@suse.de
290 - update to 1.2.6 to make it compile with new guile
291 - various fixes and one hack to make this compile at all
292 * Sun Aug 22 1999 - ke@suse.de
293 - provide /etc/profile.d scripts.
294 - make lily.ps available (thanks to Ulrich Windl).
295 * Tue Aug 17 1999 - ke@suse.de
296 - update: version 1.2.1.
297 * Thu Nov 05 1998 - ke@suse.de
298 - use the TDS and provide links from /usr/share/lilypond.
299 - install examples via %doc.
300 * Wed Oct 28 1998 - ke@suse.de
301 - update: version 1.0.17.
302 * Fri Aug 07 1998 - ke@suse.de
303 - initial package: version 1.0.0