]> git.donarmstrong.com Git - lilypond.git/blob - make/lilypond.redhat.spec.in
nested grace beams
[lilypond.git] / make / lilypond.redhat.spec.in
1 # -*- rpm-spec-mode -*-
2
3 %define info yes
4
5 Name: lilypond
6 Version: @TOPLEVEL_VERSION@
7 Release: 1
8 License: GPL
9 Group: Applications/Publishing
10 Source0: ftp.cs.uu.nl:/pub/GNU/LilyPond/development/lilypond-@TOPLEVEL_VERSION@.tar.gz
11 Summary: Create and print music notation 
12 URL: http://www.lilypond.org/
13 BuildRoot: /tmp/lilypond-install
14
15 # add lots of Buildreq: flex, bison, tetex, tetex-devel, tetex-latex, texinfo
16 Prereq: tetex  tetex-latex gcc-c++ python 
17
18 #
19 Buildreq:  t1utils bison flex pktrace texinfo
20
21 %description
22 LilyPond lets you create music notation.  It produces
23 beautiful sheet music from  a high-level description file.
24
25 %package documentation
26 Summary: Prebuilt website containing all LilyPond documentation.
27 Group: Applications/Publishing
28 # BuildArchitectures: noarch
29
30 %description documentation
31
32 The documentation of LilyPond, both in HTML and PostScript.
33
34 %prep
35 %setup
36
37 %build
38
39 # DO NOT use % { configure } , it hardcodes all paths, runs libtool,
40 # so we can't do make prefix=/tmp/ install.
41
42 # In fact, do not take out the spaces between % and { in the above comment,
43 # because RPM will gladly do a substitution anyway.
44
45 ./configure --disable-checking --prefix=%{_prefix} --enable-optimise
46
47 make MAKE_PFA_FILES=1 all
48
49 # make info
50 make -C Documentation
51
52 # make  html
53 make web-doc top-web 
54
55 %install
56
57
58 rm -rf $RPM_BUILD_ROOT
59 mkdir -p $RPM_BUILD_ROOT/tmp/lilypond-rpm-doc
60
61 strip lily/out/lilypond 
62 make prefix="$RPM_BUILD_ROOT%{_prefix}" MAKE_PFA_FILES=1 install
63
64 %if info=="yes"
65 gzip -9fn $RPM_BUILD_ROOT%{_prefix}/info/*
66 %endif
67
68 mkdir -p $RPM_BUILD_ROOT/usr/share/emacs/site-lisp/site-start.d
69 install -m 644 lilypond-mode.el lilypond-font-lock.el lilypond-indent.el $RPM_BUILD_ROOT/usr/share/emacs/site-lisp/
70 install -m 644 lilypond-init.el $RPM_BUILD_ROOT/usr/share/emacs/site-lisp/site-start.d
71
72 gzip -9fn $RPM_BUILD_ROOT%{_prefix}/man/man1/*
73
74 mkdir -p $RPM_BUILD_ROOT%{_prefix}/../etc/profile.d
75 cp buildscripts/out/lilypond-profile $RPM_BUILD_ROOT%{_prefix}/../etc/profile.d/lilypond.sh
76 cp buildscripts/out/lilypond-login $RPM_BUILD_ROOT%{_prefix}/../etc/profile.d/lilypond.csh
77
78
79 # again, make sure that main package installs even if doco fails
80 mkdir -p web/out
81 tar -C web -xzf out/web.tar.gz 
82
83
84 %post
85
86 touch /tmp/.lilypond-install
87 rm `find /var/lib/texmf -name 'feta*pk -print' -or -name 'feta*tfm -print'` /tmp/.lilypond-install
88
89 %if info=="yes"
90 /sbin/install-info %{_prefix}/info/lilypond.info.gz %{_prefix}/info/dir 
91 %endif
92
93
94 chkfontpath --add=/usr/share/lilypond/pfa/
95
96 echo 'Please logout first before using LilyPond.'
97
98 %preun
99
100 %if info=="yes"
101 if [ $1 = 0 ]; then
102     /sbin/install-info --delete %{_prefix}/info/lilypond.info.gz %{_prefix}/info/dir 
103 fi
104 %endif
105
106 chkfontpath --remove=/usr/share/lilypond/pfa/
107
108 %files
109 %defattr(-, root, root)
110 %{_datadir}/emacs/site-lisp/lilypond-*
111 %{_datadir}/emacs/site-lisp/site-start.d/lilypond-*
112
113 %{_prefix}/bin/abc2ly
114 %{_prefix}/bin/as2text
115 %{_prefix}/bin/convert-ly
116 %{_prefix}/bin/etf2ly
117 %{_prefix}/bin/lilypond
118 %{_prefix}/bin/ly2dvi
119 %{_prefix}/bin/midi2ly
120 %{_prefix}/bin/lilypond-book
121 %{_prefix}/bin/mup2ly
122 %{_prefix}/bin/musedata2ly
123 %{_prefix}/bin/pmx2ly
124
125 %if info=="yes"
126 %{_prefix}/info/lilypond.info.gz
127 %{_prefix}/info/lilypond-internals.info.gz
128 %endif
129
130 %{_prefix}/man/man1/abc2ly.1.gz
131 %{_prefix}/man/man1/as2text.1.gz
132 %{_prefix}/man/man1/convert-ly.1.gz
133 %{_prefix}/man/man1/etf2ly.1.gz
134 %{_prefix}/man/man1/lilypond.1.gz
135 %{_prefix}/man/man1/ly2dvi.1.gz
136 %{_prefix}/man/man1/midi2ly.1.gz
137 %{_prefix}/man/man1/lilypond-book.1.gz
138 %{_prefix}/man/man1/musedata2ly.1.gz
139 %{_prefix}/man/man1/mup2ly.1.gz
140 %{_prefix}/man/man1/pmx2ly.1.gz
141
142 %{_prefix}/share/lilypond/@TOPLEVEL_VERSION@/
143 %{_prefix}/share/locale/*/LC_MESSAGES/lilypond.mo
144 %{_prefix}/../etc/profile.d/lilypond.*
145
146 %files documentation
147
148 %doc web/
149 %doc input/
150 %doc mutopia/