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