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