]> git.donarmstrong.com Git - lilypond.git/blob - make/lilypond.spec.in
release: 1.3.0
[lilypond.git] / make / lilypond.spec.in
1 Name: lilypond
2 Version: @TOPLEVEL_VERSION@
3 Release: 1
4 Copyright: GPL
5 Group: Applications/Publishing
6 Source0: ftp.cs.uu.nl:/pub/GNU/LilyPond/development/lilypond-@TOPLEVEL_VERSION@.tar.gz
7 Summary: A program for printing sheet music.
8 URL: http://www.cs.uu.nl/~hanwen/lilypond
9 Packager: Han-Wen Nienhuys <hanwen@cs.uu.nl>
10 # Icon: @package@-icon.gif
11 BuildRoot: /tmp/lilypond-install
12 Prereq: tetex
13
14 %description 
15 @BLURB@
16
17 %package documentation
18 Summary: Prebuilt website containing all LilyPond documentation.
19 Group: Applications/Publishing
20 # BuildArchitectures: noarch
21
22 %description documentation
23 @BLURB@
24
25 The documentation of LilyPond, both in HTML and PostScript.
26
27 %prep
28 %setup
29 %build
30 ./configure --disable-checking --disable-debugging --enable-printing --prefix=/usr --disable-optimise --enable-shared
31 make all
32 ln -s /usr/share/texmf/fonts/tfm/public/cm/ tfm
33
34 # urg
35 # %build documentation
36 # line 42: second %build
37 # ok, now make sure that lilypond package will succeed,
38 # even if documentation fails to build
39 make -C Documentation  || true
40 make htmldoc || true
41
42 %install
43 rm -rf $RPM_BUILD_ROOT
44 mkdir -p $RPM_BUILD_ROOT/tmp/lilypond-rpm-doc
45
46 strip lily/out/lilypond midi2ly/out/midi2ly
47 make prefix="$RPM_BUILD_ROOT/usr" install
48 # gzip -9fn $RPM_BUILD_ROOT/usr/info/* || true
49
50 mkdir -p $RPM_BUILD_ROOT/etc/profile.d
51 cp buildscripts/out/lilypond-profile $RPM_BUILD_ROOT/etc/profile.d/lilypond.sh
52 cp buildscripts/out/lilypond-login $RPM_BUILD_ROOT/etc/profile.d/lilypond.csh
53
54 # urg
55 #%install documentation
56 #line 63: second %install
57 # again, make sure that main package installs even if doco fails
58 mkdir -p htmldocs/out
59 tar -C htmldocs -xzf out/htmldoc.tar.gz || true
60 mkdir -p out/examples/
61 tar -cf - input/  | tar -C out/examples/ -xf- || true
62
63 %post
64
65 touch /tmp/.lilypond-install
66 rm `find /var/lib/texmf -name 'feta*pk -print' -or -name 'feta*tfm -print'` /tmp/.lilypond-install
67 # /sbin/install-info /usr/info/lilypond.info.gz /usr/info/dir || true
68
69 %preun
70 if [ $1 = 0 ]; then
71  true #   /sbin/install-info --delete /usr/info/lilypond.info.gz /usr/info/dir || true
72 fi
73
74
75 %files
76 # hairy to hook it in (possibly non-existing) emacs
77 %doc mudela-mode.el
78
79 /usr/bin/abc2ly
80 /usr/bin/convert-mudela
81 /usr/bin/mudela-book
82 /usr/bin/ly2dvi
83 /usr/bin/lilypond
84 /usr/bin/midi2ly
85 /usr/man/man1/midi2ly.1
86 /usr/man/man1/lilypond.1
87 /usr/man/man1/mudela-book.1
88 /usr/man/man1/ly2dvi.1
89 /usr/man/man1/convert-mudela.1
90 /usr/share/lilypond/
91 /usr/share/locale/*/LC_MESSAGES/lilypond.mo
92 /etc/profile.d/lilypond.*
93
94 %files documentation
95 # this gets too messy...
96 # %doc input/*.ly
97 # verbatim include of input: list the directory without issuing a %dir 
98 %doc htmldocs/
99 %doc out/examples/
100 %doc mutopia/