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