]> git.donarmstrong.com Git - lilypond.git/blob - make/lilypond.suse.spec.in
0e156560e8a32ba156fac48e7f8dd90ef8b78b0a
[lilypond.git] / make / lilypond.suse.spec.in
1 #
2 # spec file for package lilypond (Version 2.4.4)
3 #
4 # Copyright (c) 2005 SUSE LINUX Products GmbH, Nuernberg, Germany.
5 # This file and all modifications and additions to the pristine
6 # package are under the same license as the package itself.
7 #
8 # Please submit bugfixes or comments via http://www.suse.de/feedback/
9 #
10
11 # norootforbuild
12 # neededforbuild  ImageMagick autotrace cups-libs ec-fonts-mftraced emacs emacs-nox flex fontforge freetype2 gettext ghostscript-fonts-std ghostscript-library ghostscript-serv glib2 gpp guile libexif libgimpprint libgpp libjpeg liblcms libnetpbm libpng-devel-packages libtiff mftrace netpbm potrace python python-devel scrollkeeper t1utils tcsh te_kpath te_latex te_mpost tetex x-devel-packages
13
14 BuildRequires: aaa_base acl attr bash bind-utils bison bzip2 coreutils cpio cpp cracklib cvs cyrus-sasl db devs diffutils e2fsprogs file filesystem fillup findutils flex gawk gdbm-devel glibc glibc-devel glibc-locale gpm grep groff gzip info insserv klogd less libacl libattr libgcc libnscd libselinux libstdc++ libxcrypt libzio m4 make man mktemp module-init-tools ncurses ncurses-devel net-tools netcfg openldap2-client openssl pam pam-modules patch permissions popt procinfo procps psmisc pwdutils rcs readline sed strace syslogd sysvinit tar tcpd texinfo timezone unzip util-linux vim zlib zlib-devel ImageMagick autoconf automake autotrace binutils cups-libs ec-fonts-mftraced emacs emacs-nox expat fontconfig fontconfig-devel fontforge freetype2 gcc gcc-c++ gdbm gettext ghostscript-fonts-std ghostscript-library glib2 gnome-filesystem guile libexif libgimpprint libjpeg libjpeg-devel liblcms libnetpbm libpng libpng-devel libstdc++-devel libtiff libtiff-devel libtool mftrace netpbm perl potrace python python-devel rpm scrollkeeper t1utils tcsh te_ams te_kpath te_latex te_mpost tetex xorg-x11-devel xorg-x11-libs
15
16 Name:         lilypond
17 %define info yes
18 License:      Other License(s), see package, GPL
19 Group:        Productivity/Publishing/Other
20 Requires:     tetex te_latex python tcsh mftrace
21 Autoreqprov:  on
22 Requires:     scrollkeeper t1utils autotrace mftrace ec-fonts-mftraced
23 Summary:      Music Typesetter
24 Version:      2.4.4
25 Release:      7
26 URL:          http://www.lilypond.org/
27 Source:       lilypond-%{version}.tar.bz2
28 Patch:        lilypond-%{version}.dif
29 Patch1:       lilypond-profile.patch
30 Patch2:       lilypond-gs.patch
31 BuildRoot:    %{_tmppath}/%{name}-%{version}-build
32 PreReq:       %install_info_prereq /usr/bin/touch /usr/bin/sed
33
34 %description
35 GNU LilyPond - The Music Typesetter.
36
37
38
39 Authors:
40 --------
41     Han-Wen Nienhuys <hanwen@cs.uu.nl>
42     Jan Nieuwenhuizen <janneke@gnu.org>
43     Alexandre Oliva <oliva@dcc.unicamp.br>
44     Mats Bengtsson <matsb@s3.kth.se>
45     Eric Bullinger <eric@aut.ee.ethz.ch>
46     Jan Arne Fagertun <Jan.A.Fagertun@energy.sintef.no>
47     Anthony Fok <foka@debian.org>
48     Neil Jerram <nj104@cus.cam.ac.uk>
49     Donald Ervin Knuth
50     Werner Lemberg <xlwy01@uxp1.hrz.uni-dortmund.de>
51     David R. Linn <drl@vuse.vanderbilt.edu>
52     François Pinard <pinard@iro.umontreal.ca>
53     Jeffrey B. Reed <daboys@bga.com>
54     Shay Rojanski
55
56 %package documentation
57 Summary:      Music Typesetter
58 Group:        Productivity/Publishing/Other
59
60 %description documentation
61 GNU LilyPond - The Music Typesetter.
62
63
64
65 Authors:
66 --------
67     Han-Wen Nienhuys <hanwen@cs.uu.nl>
68     Jan Nieuwenhuizen <janneke@gnu.org>
69     Alexandre Oliva <oliva@dcc.unicamp.br>
70     Mats Bengtsson <matsb@s3.kth.se>
71     Eric Bullinger <eric@aut.ee.ethz.ch>
72     Jan Arne Fagertun <Jan.A.Fagertun@energy.sintef.no>
73     Anthony Fok <foka@debian.org>
74     Neil Jerram <nj104@cus.cam.ac.uk>
75     Donald Ervin Knuth
76     Werner Lemberg <xlwy01@uxp1.hrz.uni-dortmund.de>
77     David R. Linn <drl@vuse.vanderbilt.edu>
78     François Pinard <pinard@iro.umontreal.ca>
79     Jeffrey B. Reed <daboys@bga.com>
80     Shay Rojanski
81
82 %debug_package
83 %prep
84 %setup -q
85 %patch
86 %patch1
87 %patch2
88 # unpack examples
89 mkdir -p out/examples/
90 tar -cf - input/  | tar -C out/examples/ -xf- || true
91
92 %build
93 #autoreconf -f -i
94 export CFLAGS="$RPM_OPT_FLAGS"
95 export CXXFLAGS="$RPM_OPT_FLAGS"
96 export PATH="$PATH:$PWD"
97 echo "mf -ini $*" > inimf
98 chmod a+x inimf
99 # There is an ugly warning: "PACKAGE_NAME" redefined, which breaks the configure check.
100 export ac_cv_header_Python_h=yes
101 ./autogen.sh --disable-checking \
102         --disable-debugging \
103         --enable-printing \
104         --prefix=%{_prefix} \
105         --libdir=%{_libdir} \
106         --disable-optimise \
107         --enable-shared \
108         --mandir=$RPM_BUILD_ROOT%{_mandir} \
109         --infodir=$RPM_BUILD_ROOT%{_infodir}
110 make all
111
112 %install
113 rm -rf $RPM_BUILD_ROOT
114 make prefix="$RPM_BUILD_ROOT%{_prefix}" mandir="$RPM_BUILD_ROOT%{_mandir}" infodir="$RPM_BUILD_ROOT%{_infodir}" libdir="$RPM_BUILD_ROOT%{_libdir}" install
115 #
116 # do not install profiles - configure texmf.cnf in trigger instead
117 #install -m 755 -d $RPM_BUILD_ROOT%{_prefix}/../etc/profile.d
118 #install -m 644 buildscripts/out/lilypond-profile $RPM_BUILD_ROOT%{_prefix}/../etc/profile.d/lilypond.sh
119 #install -m 644 buildscripts/out/lilypond-login $RPM_BUILD_ROOT%{_prefix}/../etc/profile.d/lilypond.csh
120 cd elisp
121 emacs-nox -batch -f batch-byte-compile *.el
122 cp *.elc $RPM_BUILD_ROOT/usr/share/emacs/site-lisp
123 cd -
124 cd Documentation
125 make local-WWW
126 cd -
127 cd Documentation/bibliography
128 make local-WWW
129 cd -
130 mkdir -p $RPM_BUILD_ROOT/usr/share/doc/packages/%{name}
131 cp -a AUTHORS.txt COPYING ChangeLog DEDICATION NEWS.txt README.txt ROADMAP THANKS VERSION server.el.patch Documentation input $RPM_BUILD_ROOT/usr/share/doc/packages/%{name}
132 ( cd $RPM_BUILD_ROOT/usr/share/doc/packages/%{name}/Documentation ; find -type d -name out -exec sh -c "cd {} ; mv * .. ; cd .. ; rm -f dummy.dep GNUmakefile SConscript index.html.in ; rmdir out" \; )
133 rm -f $RPM_BUILD_ROOT/usr/share/emacs/site-lisp/server.el.patch
134 mv $RPM_BUILD_ROOT/usr/share/info/lilypond/* $RPM_BUILD_ROOT/usr/share/info
135 rmdir $RPM_BUILD_ROOT/usr/share/info/lilypond
136 find $RPM_BUILD_ROOT/usr/share -type f -exec sh -c '
137 sed s:$RPM_BUILD_ROOT::g <{} >{}~
138 if ! cmp {} {}~ ; then cat {}~ >{} ; fi ; rm {}~
139 ' \;
140 %find_lang %{name}
141 # This is required by tetex-3.0.
142 ( cd $RPM_BUILD_ROOT/usr/share/lilypond/%{version}/scm ; ln -s ../tex/*.enc . )
143 ( cd $RPM_BUILD_ROOT/usr/share/lilypond/%{version}/dvips ; ln -s ../tex/*.ps . )
144 texhash $RPM_BUILD_ROOT/usr/share/lilypond/%{version}
145
146 %clean
147 rm -rf $RPM_BUILD_ROOT
148
149 %post
150 %install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
151 %install_info --info-dir=%{_infodir} %{_infodir}/music-glossary.info.gz
152 touch var/adm/SuSEconfig/run-scrollkeeper
153
154 %post documentation
155 %install_info --info-dir=%{_infodir} %{_infodir}/lilypond-internals.info.gz
156
157 %triggerin -- tetex
158 sed -i '
159   s@^\(TEXMF[[:space:]]*=.*\)\(,!!/usr/share/lilypond/[^,}]*\)\(.*\)}@\1\3}@;
160   s@^\(TEXMFDBS[[:space:]]*=.*\)\(;/usr/share/lilypond/[^;]*\)\(.*\)@\1\3@;
161   s@^\(TEXMF[[:space:]]*=.*\)}@\1,!!/usr/share/lilypond/%{version}}@;
162   s@^\(TEXMFDBS[[:space:]]*=.*\)@\1;/usr/share/lilypond/%{version}@;
163   ' etc/texmf/web2c/texmf.cnf
164 texhash usr/share/lilypond/%{version}
165
166 %postun
167 %install_info_delete --info-dir=%{_infodir} %{_infodir}/music-glossary.info.gz
168 %install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
169 touch var/adm/SuSEconfig/run-scrollkeeper
170 if [ $1 = 0 ] ; then
171   sed -i '
172     s@^\(TEXMF[[:space:]]*=.*\)\(,!!/usr/share/lilypond/[^,}]*\)\(.*\)}@\1\3}@;
173     s@^\(TEXMFDBS[[:space:]]*=.*\)\(;/usr/share/lilypond/[^;]*\)\(.*\)@\1\3@;
174     ' etc/texmf/web2c/texmf.cnf
175 fi
176
177 %postun documentation
178 %install_info_delete --info-dir=%{_infodir} %{_infodir}/lilypond-internals.info.gz
179
180 %files -f %{name}.lang
181 %defattr(-,root,root)
182 %doc %dir /usr/share/doc/packages/%{name}
183 %doc /usr/share/doc/packages/%{name}/AUTHORS.txt
184 %doc /usr/share/doc/packages/%{name}/COPYING
185 %doc /usr/share/doc/packages/%{name}/ChangeLog
186 %doc /usr/share/doc/packages/%{name}/DEDICATION
187 %doc /usr/share/doc/packages/%{name}/NEWS.txt
188 %doc /usr/share/doc/packages/%{name}/README.txt
189 %doc /usr/share/doc/packages/%{name}/ROADMAP
190 %doc /usr/share/doc/packages/%{name}/THANKS
191 %doc /usr/share/doc/packages/%{name}/VERSION
192 %doc /usr/share/doc/packages/%{name}/server.el.patch
193 %doc %{_infodir}/music-glossary.*
194 %doc %{_infodir}/%{name}.*
195 %doc %{_mandir}/man?/*.*
196 #/etc/profile.d/lilypond.*
197 %{_prefix}/bin/*
198 %{_prefix}/%_lib/lilypond
199 %dir %{_prefix}/share/lilypond
200 %dir %{_prefix}/share/lilypond/%{version}
201 %{_prefix}/share/lilypond/%{version}/[a-km-z]*
202 %{_prefix}/share/lilypond/%{version}/ly
203 %ghost %{_prefix}/share/lilypond/%{version}/ls-R
204 %{_prefix}/share/omf/lilypond
205 /usr/share/emacs/site-lisp/*.el
206 /usr/share/emacs/site-lisp/*.elc
207
208 %files documentation
209 %defattr(-,root,root)
210 %doc /usr/share/doc/packages/lilypond/Documentation
211 %doc /usr/share/doc/packages/lilypond/input
212 %doc %{_infodir}/lilypond-internals.*
213
214 %changelog -n lilypond
215 * Tue Mar 15 2005 - sbrabec@suse.cz
216 - Fixed building of documentation (#71717).
217 * Tue Mar 01 2005 - sbrabec@suse.cz
218 - Fixed creation of latin1.enc with latest gs.
219 - Symlink files to proper texmf hierarchy.
220 - Configure texmf.cnf instead of setting profile.
221 - Include ls-R file.
222 * Mon Feb 28 2005 - sbrabec@suse.cz
223 - Fixed profile scripts (#66754).
224 * Tue Feb 15 2005 - ro@suse.de
225 - hack to build with tetex-3.0
226 * Wed Jan 26 2005 - sbrabec@suse.cz
227 - Updated to version 2.4.4.
228 * Fri Jan 14 2005 - ro@suse.de
229 - fix mftrace calling options
230 * Wed Aug 25 2004 - sbrabec@suse.cz
231 - Updated to version 2.2.6.
232 * Tue Aug 24 2004 - sbrabec@suse.cz
233 - Updated to version 2.2.5.
234 * Thu Aug 19 2004 - ro@suse.de
235 - updated neededforbuild
236 * Thu Aug 19 2004 - ro@suse.de
237 - PfaEdit has been renamed to fontforge
238 * Wed Apr 28 2004 - ro@suse.de
239 - change return type of initmidi to void
240 * Tue Mar 23 2004 - sbrabec@suse.cz
241 - Fixed autogen.sh (fixes LILYPONDPREFIX problems, bug #35351).
242 - Added PfaEdit to neededforbuild to simplify and autohint fonts.
243 * Mon Feb 09 2004 - ro@suse.de
244 - expand neededforbuild
245 * Fri Feb 06 2004 - sbrabec@suse.cz
246 - Updated to version 2.0.3.
247 * Sat Jan 10 2004 - adrian@suse.de
248 - add %%defattr
249 * Fri Aug 29 2003 - ro@suse.de
250 - specify libdir for lib64
251 * Thu Aug 28 2003 - ro@suse.de
252 - fixed problem with lilypond-internal texinfo page
253 * Tue Aug 26 2003 - sbrabec@suse.cz
254 - Updated to version 1.8.1.
255 - Fixed problems with new bison and head/tail usage.
256 * Wed Jul 02 2003 - ro@suse.de
257 - remove traces of buildroot from installed files
258 * Fri Jun 27 2003 - ro@suse.de
259 - fix head and tail calling syntax in even more places ....
260 * Mon Jun 16 2003 - kukuk@suse.de
261 - Add missing directories to filelist
262 * Tue Jun 10 2003 - ro@suse.de
263 - remove unpackaged files from buildroot
264 * Thu Apr 24 2003 - ro@suse.de
265 - fix install_info --delete call and move from preun to postun
266 * Fri Apr 11 2003 - ro@suse.de
267 - fix deprecated head/tail calling syntax (-1)
268 * Thu Feb 20 2003 - ro@suse.de
269 - try to solve the info mess with new approach
270   music-glossary get's it's own dir entry
271 * Tue Feb 18 2003 - sbrabec@suse.cz
272 - Added %%install_info macros (bug #23437). Workaround problems of multi
273   file info dir section.
274 * Fri Feb 07 2003 - ro@suse.de
275 - added x-devel-packages to neededforbuild (for metafont run)
276 * Thu Feb 06 2003 - ro@suse.de
277 - touch config.h again
278 * Thu Jan 30 2003 - ro@suse.de
279 - fixed configure.in
280   (and regenerated configure with archaic autoconf)
281 - fixed countless multiline string issues
282 * Wed Dec 04 2002 - sbrabec@suse.cz
283 - Updated to version 1.6.6. Use mftrace.
284 * Thu Nov 21 2002 - ro@suse.de
285 - fix build with current bison (missing semicolons)
286 * Tue Sep 17 2002 - ro@suse.de
287 - removed bogus self-provides
288 * Mon Apr 15 2002 - pmladek@suse.cz
289 - fixed to compile with gcc-3.1
290 - patch gcc3.1-bug contains temporary fixes for gcc-3.1 bugs
291 * Fri Feb 01 2002 - ro@suse.de
292 - changed neededforbuild <libpng> to <libpng-devel-packages>
293 * Sun Jan 27 2002 - ro@suse.de
294 - fixed to build with new bison
295 * Thu Jan 17 2002 - pmladek@suse.cz
296 - updated to version 1.4.10
297 - fixed lilypond-book.py for python-2.2
298 - errors when compiling Documentation are not ignored again
299 * Wed Jan 16 2002 - ro@suse.de
300 - ignore errors when compiling the Documentation
301   to make the package build
302   (broke with python2.2 in lilypond-book.py:
303   lilypond-block in texi target)
304 * Tue Dec 11 2001 - pmladek@suse.cz
305 - updated to version 1.4.9:
306   * many bug fixes
307 - removed obsolete midi2ly patch
308 - cleaned up specfile
309 * Tue Dec 04 2001 - pmladek@suse.cz
310 - fixed to compile with new bison (version 1.30)
311 * Tue Sep 11 2001 - pmladek@suse.cz
312 - fixed midi2ly - do not print bad char ;
313 - fixed documentation
314 * Fri Jul 20 2001 - pmladek@suse.cz
315 - updated to vesion 1.4.5
316 * Fri Jul 20 2001 - kukuk@suse.de
317 - changed neededforbuild <gs_fonts> to <ghostscript-fonts-std>
318 - changed neededforbuild <gs_lib> to <ghostscript-library>
319 - changed neededforbuild <gs_serv> to <ghostscript-serv>
320 * Tue Jul 10 2001 - pmladek@suse.cz
321 - fixed profile scripts (bug #9324)
322 * Fri May 11 2001 - nadvornik@suse.cz
323 - update to stable release 1.4.0
324 - fixed requires and documentation
325 * Tue May 08 2001 - mfabian@suse.de
326 - bzip2 sources
327 * Tue Apr 24 2001 - nadvornik@suse.cz
328 - update to 1.3.150, this fixes bug #6701
329 * Wed Feb 28 2001 - nadvornik@suse.cz
330 - update to 1.3.132, fixed bug #6536
331 - spec file cleanup
332 * Thu Nov 30 2000 - ro@suse.de
333 - neededforbuild libnetpb -> libnetpbm
334 * Fri Nov 24 2000 - lmarks@suse.com
335 - Changed spec file so that package builds even if htmldoc fails.
336 * Fri Nov 24 2000 - kukuk@suse.de
337 - fix use of macros for mandir and infodir
338 * Thu Nov 23 2000 - ro@suse.de
339 - changelog dates fixed
340 * Wed Nov 22 2000 - lmarks@suse.com
341 - Added small patch from devolpers.
342 * Tue Nov 21 2000 - lmarks@suse.com
343 - Lilypond 1.2.17 will not compile with Guile 1.4
344 - Updated Lilpond to 1.3.108
345 - Used new spec file from make/out/lilpond.spec
346 - moved man-pages and info-pages to /usr/share
347 * Mon Apr 10 2000 - bk@suse.de
348 - added suse update config macro
349 * Thu Mar 16 2000 - kukuk@suse.de
350 - Use gs_serv, not gs_both (doesn't exist on all platforms)
351 * Wed Mar 01 2000 - uli@suse.de
352 - moved man pages to /usr/share
353 * Tue Dec 21 1999 - ke@suse.de
354 - add documentation (#271).
355 * Mon Dec 13 1999 - ke@suse.de
356 - update: 1.2.17.
357 - compiler fix (thanks to schwab@suse.de).
358 - #271.
359 * Mon Oct 25 1999 - ke@suse.de
360 - update: 1.2.16.
361 * Mon Sep 13 1999 - bs@suse.de
362 - ran old prepare_spec on spec file to switch to new prepare_spec.
363 * Mon Sep 06 1999 - ro@suse.de
364 - update to 1.2.6 to make it compile with new guile
365 - various fixes and one hack to make this compile at all
366 * Sun Aug 22 1999 - ke@suse.de
367 - provide /etc/profile.d scripts.
368 - make lily.ps available (thanks to Ulrich Windl).
369 * Tue Aug 17 1999 - ke@suse.de
370 - update: version 1.2.1.
371 * Thu Nov 05 1998 - ke@suse.de
372 - use the TDS and provide links from /usr/share/lilypond.
373 - install examples via %%doc.
374 * Wed Oct 28 1998 - ke@suse.de
375 - update: version 1.0.17.
376 * Fri Aug 07 1998 - ke@suse.de
377 - initial package: version 1.0.0