]> git.donarmstrong.com Git - lilypond.git/blob - make/out/suse.spec
release: 1.3.153
[lilypond.git] / make / out / suse.spec
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: 1.3.153
18 Release: 2
19 Copyright:    GPL
20 Group: Applications/Publishing
21 Source0: ftp.cs.uu.nl:/pub/GNU/LilyPond/development/lilypond-1.3.153.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 <reuterj@ira.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-optimise --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 -C Documentation  || true
106 make web || true
107
108 %install
109
110
111
112 rm -rf $RPM_BUILD_ROOT
113 mkdir -p $RPM_BUILD_ROOT/tmp/lilypond-rpm-doc
114
115 ## this is an ugly hack
116 mkdir -p scripts/share/lilypond/tex
117 cp tex/titledefs.tex scripts/share/lilypond/tex
118 ## end of hack
119
120
121 strip lily/out/lilypond midi2ly/out/midi2ly
122 make prefix="$RPM_BUILD_ROOT%{_prefix}" install
123
124 %{INSTALL_DIR} $RPM_BUILD_ROOT/usr/share/texmf/fonts/source/public/lilypond
125 (cd $RPM_BUILD_ROOT/usr/share/lilypond \
126     && mv mf/* $RPM_BUILD_ROOT/usr/share/texmf/fonts/source/public/lilypond \
127     && rm -fr mf \
128     && ln -s ../texmf/fonts/source/public/lilypond mf)
129 %{INSTALL_DIR} $RPM_BUILD_ROOT/usr/share/texmf/fonts/afm/lilypond
130 (cd $RPM_BUILD_ROOT/usr/share/lilypond \
131     && mv afm/* $RPM_BUILD_ROOT/usr/share/texmf/fonts/afm/lilypond \
132     && rm -fr afm \
133     && ln -s ../texmf/fonts/afm/lilypond afm)
134 %{INSTALL_DIR} $RPM_BUILD_ROOT/usr/share/texmf/tex/lilypond
135 (cd $RPM_BUILD_ROOT/usr/share/lilypond \
136     && mv tex/* $RPM_BUILD_ROOT/usr/share/texmf/tex/lilypond \
137     && rm -fr tex \
138     && ln -s ../texmf/tex/lilypond tex)
139 %{INSTALL_DIR} $RPM_BUILD_ROOT/usr/share/texmf/lilypond/ps
140 (cd $RPM_BUILD_ROOT/usr/share/lilypond \
141     && mv ps/* $RPM_BUILD_ROOT/usr/share/texmf/lilypond/ps \
142     && rm -fr ps \
143     && ln -s ../texmf/lilypond/ps ps)
144
145
146 %if info=="yes"
147 gzip -9fn $RPM_BUILD_ROOT%{_prefix}/info/* || true
148 %endif
149
150
151
152 gzip -9fn $RPM_BUILD_ROOT%{_prefix}/man/man1/* || true
153
154
155
156
157 mkdir -p $RPM_BUILD_ROOT%{_prefix}/../etc/profile.d
158 cp buildscripts/out/lilypond-profile $RPM_BUILD_ROOT%{_prefix}/../etc/profile.d/lilypond.sh
159 cp buildscripts/out/lilypond-login $RPM_BUILD_ROOT%{_prefix}/../etc/profile.d/lilypond.csh
160
161 # urg
162 #%install doc
163 #line 63: second %install
164 # again, make sure that main package installs even if doco fails
165 mkdir -p web/out
166 tar -C web -xzf out/web.tar.gz || true
167
168 %ifos cygwin
169 # urg, this symlink doesn't come through on cygwin
170 # this is the way symlinks work over there, let's fake one
171 rm -f $RPM_BUILD_ROOT%{_prefix}/share/lilypond/cmtfm
172 echo '!<symlink>c:\\texmf\\fonts\\tfm\\public\\cm' > $RPM_BUILD_ROOT%{_prefix}/share/lilypond/cmtfm
173 %{fix_suffixes}
174 %endif
175
176 %{?suse_check}
177
178
179 %pre
180 if [ -d usr/share/lilypond/ps ]; then
181   mv usr/share/lilypond/ps usr/share/lilypond/ps.old
182   echo "please, remove /usr/share/lilypond/ps.old manually."
183 fi
184
185 %post
186
187 touch /tmp/.lilypond-install
188 rm `find /var/lib/texmf -name 'feta*pk -print' -or -name 'feta*tfm -print'` /tmp/.lilypond-install
189 %if info=="yes"
190 /usr/bin/install-info %{_prefix}/info/lilypond.info.gz %{_prefix}/info/dir || true
191 %endif
192 mkdir -p var/adm/SuSEconfig
193 touch var/adm/SuSEconfig/run-texhash
194
195
196 %preun
197 %if info=="yes"
198 if [ $1 = 0 ]; then
199     /usr/bin/install-info --delete %{_prefix}/info/lilypond.info.gz %{_prefix}/info/dir || true
200 fi
201 %endif
202
203 %postun
204 mkdir -p var/adm/SuSEconfig
205 touch var/adm/SuSEconfig/run-texhash
206
207
208
209 %files
210 %defattr(-, root, root)
211 %doc CHANGES COPYING DEDICATION INSTALL.txt NEWS
212 %doc README.txt FAQ.txt AUTHORS.txt VERSION ROADMAP
213 %doc buildscripts/
214 %doc scripts/
215 # hairy to hook it in (possibly non-existing) emacs
216 %doc lilypond-mode.el
217 %doc lilypond-font-lock.el
218
219 %config /etc/profile.d/*
220
221 %ifnos cygwin
222 %{_prefix}/bin/abc2ly
223 %{_prefix}/bin/as2text
224 %{_prefix}/bin/convert-ly
225 %{_prefix}/bin/etf2ly
226 %{_prefix}/bin/lilypond
227 %{_prefix}/bin/ly2dvi
228 %{_prefix}/bin/midi2ly
229 %{_prefix}/bin/lilypond-book
230 %{_prefix}/bin/mup2ly
231 %{_prefix}/bin/musedata2ly
232 %{_prefix}/bin/pmx2ly
233 %else
234 %{_prefix}/bin
235 %endif
236
237 %if info=="yes"
238 %{_prefix}/info/lilypond.info.gz
239 %{_prefix}/info/lilypond-internals.info.gz
240 %endif
241
242 %{_prefix}/man/man1/abc2ly.1.gz
243 %{_prefix}/man/man1/as2text.1.gz
244 %{_prefix}/man/man1/convert-ly.1.gz
245 %{_prefix}/man/man1/etf2ly.1.gz
246 %{_prefix}/man/man1/lilypond.1.gz
247 %{_prefix}/man/man1/ly2dvi.1.gz
248 %{_prefix}/man/man1/midi2ly.1.gz
249 %{_prefix}/man/man1/lilypond-book.1.gz
250 %{_prefix}/man/man1/musedata2ly.1.gz
251 %{_prefix}/man/man1/mup2ly.1.gz
252 %{_prefix}/man/man1/pmx2ly.1.gz
253
254 %{_prefix}/share/lilypond/
255 %{_prefix}/share/texmf/
256 %{_prefix}/share/locale/*/LC_MESSAGES/lilypond.mo
257 # urg?
258 #%{_prefix}/../etc/profile.d/lilypond.*
259
260 %files doc
261 # this gets too messy...
262 %doc mutopia/
263 %doc input/
264 %doc web/
265 # verbatim include of input: list the directory without issuing a %dir 
266
267 %changelog -n lilypond
268 * Sun Apr 22 2001 - schlemme@mathe.tu-freiberg.de
269 - update: 1.3.149
270 * Mon Apr 10 2000 - bk@suse.de
271 - added suse update config macro
272 * Thu Mar 16 2000 - kukuk@suse.de
273 - Use gs_serv, not gs_both (doesn't exist on all platforms)
274 * Wed Mar 01 2000 - uli@suse.de
275 - moved man pages to /usr/share
276 * Tue Dec 21 1999 - ke@suse.de
277 - add documentation (#271).
278 * Mon Dec 13 1999 - ke@suse.de
279 - update: 1.2.17.
280 - compiler fix (thanks to schwab@suse.de).
281 - #271.
282 * Mon Oct 25 1999 - ke@suse.de
283 - update: 1.2.16.
284 * Mon Sep 13 1999 - bs@suse.de
285 - ran old prepare_spec on spec file to switch to new prepare_spec.
286 * Mon Sep 06 1999 - ro@suse.de
287 - update to 1.2.6 to make it compile with new guile
288 - various fixes and one hack to make this compile at all
289 * Sun Aug 22 1999 - ke@suse.de
290 - provide /etc/profile.d scripts.
291 - make lily.ps available (thanks to Ulrich Windl).
292 * Tue Aug 17 1999 - ke@suse.de
293 - update: version 1.2.1.
294 * Thu Nov 05 1998 - ke@suse.de
295 - use the TDS and provide links from /usr/share/lilypond.
296 - install examples via %doc.
297 * Wed Oct 28 1998 - ke@suse.de
298 - update: version 1.0.17.
299 * Fri Aug 07 1998 - ke@suse.de
300 - initial package: version 1.0.0