]> git.donarmstrong.com Git - lilypond.git/blob - make/lilypond.redhat.spec.in
10c068a0ff74b9c037d1df8300b135af9eb1484e
[lilypond.git] / make / lilypond.redhat.spec.in
1 # -*-rpm-spec-mode-*-
2
3 %define info yes
4 %define docdir %{_docdir}/lilypond/
5
6 Name: lilypond
7 Version: @TOPLEVEL_VERSION@
8 Release: 1
9 License: GPL
10 Group: Applications/Publishing
11 Source0: ftp.lilypond.org:/pub/LilyPond/development/lilypond-@TOPLEVEL_VERSION@.tar.gz
12 Summary: Create and print music notation 
13 URL: http://www.lilypond.org/
14 BuildRoot: %{_tmppath}/%{name}-%{version}-root
15
16
17 Buildrequires: t1utils bison flex mftrace ImageMagick
18
19 #  requires texinfo >= 4.6 really, otherwise the info files fuck up.
20 # however, that's still not standard on RH 9, so we'll leave it at  this
21 # for now
22
23 Buildrequires: texinfo
24 Requires: tetex  tetex-latex libstdc++ python 
25 Requires: guile >= 1.6.4-7
26
27 %description
28 LilyPond lets you create music notation.  It produces
29 beautiful sheet music from  a high-level description file.
30
31 %package documentation
32 Summary:  All LilyPond documentation, in HTML
33 Group: Applications/Publishing
34 # BuildArchitectures: noarch
35
36 %description documentation
37 Documentation and example files of LilyPond. An index is available at
38 %{docdir}/web/Documentation/out-www/index.html
39
40 %prep
41 %setup
42
43 %build
44
45 # DO NOT use % { configure } , it hardcodes all paths, runs libtool,
46 # so we can't do make prefixix=/tmp/ install.
47
48 # In fact, do not take out the spaces between % and { in the above comment,
49 # because RPM will gladly do a substitution anyway.
50
51 ./configure --disable-checking --prefix=%{_prefix} --enable-optimising
52
53
54 make MAKE_PFA_FILES=1 all
55 make -C mf/ pfa
56
57 # make info
58 make -C Documentation
59
60 # make  html
61 make web top-web 
62 make -C Documentation/user omf
63
64 %install
65
66
67 rm -rf $RPM_BUILD_ROOT
68 mkdir -p $RPM_BUILD_ROOT/tmp/lilypond-rpm-doc
69
70 make prefix="$RPM_BUILD_ROOT%{_prefix}" infodir="$RPM_BUILD_ROOT%{_infodir}" MAKE_PFA_FILES=1 mandir="$RPM_BUILD_ROOT%{_mandir}" install
71
72 %if %{info}
73 rm -f $RPM_BUILD_ROOT/%{_infodir}/dir
74 gzip -9fn $RPM_BUILD_ROOT%{_infodir}/*
75 %endif
76
77 mkdir -p $RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp/site-start.d
78 install -m 644 lilypond-mode.el lilypond-font-lock.el lilypond-indent.el lilypond.words $RPM_BUILD_ROOT/%{_datadir}/emacs/site-lisp/
79 install -m 644 lilypond-init.el $RPM_BUILD_ROOT/%{_datadir}/emacs/site-lisp/site-start.d
80
81 gzip -9fn $RPM_BUILD_ROOT%{_mandir}/man1/*
82
83 mkdir -p $RPM_BUILD_ROOT/etc/profile.d
84 cp buildscripts/out/lilypond-profile $RPM_BUILD_ROOT/etc/profile.d/lilypond.sh
85 cp buildscripts/out/lilypond-login $RPM_BUILD_ROOT/etc/profile.d/lilypond.csh
86
87 make prefix="$RPM_BUILD_ROOT%{_prefix}" install-html-doc
88
89
90 %post
91
92 touch /tmp/.lilypond-install
93 rm `find /var/lib/texmf -name 'feta*pk' -or -name 'feta*tfm' -or -name 'parmesan*pk' -or -name 'parmesan*tfm' -print` /tmp/.lilypond-install
94
95 %if %{info}
96 /sbin/install-info %{_infodir}/lilypond.info.gz %{_infodir}/dir 
97 %endif
98
99 # chkfontpath --add=%{_datadir}/lilypond/@TOPLEVEL_VERSION@/fonts/type1/
100
101 echo 'Please logout first before using LilyPond.'
102
103 %preun
104
105
106 %if %{info}
107 if [ $1 = 0 ]; then
108     /sbin/install-info --delete %{_infodir}/lilypond.info.gz %{_infodir}/dir 
109 fi
110 %endif
111
112 # chkfontpath --remove=%{_datadir}/share/lilypond/@TOPLEVEL_VERSION@/fonts/type1/
113
114
115 %post documentation
116 scrollkeeper-update
117
118 %postun documentation
119 scrollkeeper-update
120
121
122
123 %files
124 %defattr(-, root, root)
125 %{_datadir}/emacs/site-lisp/lilypond*
126 %{_datadir}/emacs/site-lisp/site-start.d/lilypond-*
127
128 %{_bindir}/abc2ly
129 %{_bindir}/as2text
130 %{_bindir}/convert-ly
131 %{_bindir}/etf2ly
132 %{_bindir}/lilypond
133 %{_bindir}/ly2dvi
134 %{_bindir}/midi2ly
135 %{_bindir}/lilypond-book
136 %{_bindir}/mup2ly
137 %{_bindir}/musedata2ly
138 %{_bindir}/pmx2ly
139
140 %doc buildscripts/out/convert-new-chords
141 %doc NEWS
142 %doc THANKS
143 %doc COPYING
144 %doc DEDICATION
145 %doc README.txt
146 %doc AUTHORS.txt
147
148
149 %if %{info}
150 %{_infodir}/*
151 %endif
152
153 %{_mandir}/man1/abc2ly.1.gz
154 %{_mandir}/man1/as2text.1.gz
155 %{_mandir}/man1/convert-ly.1.gz
156 %{_mandir}/man1/etf2ly.1.gz
157 %{_mandir}/man1/lilypond.1.gz
158 %{_mandir}/man1/ly2dvi.1.gz
159 %{_mandir}/man1/midi2ly.1.gz
160 %{_mandir}/man1/lilypond-book.1.gz
161 %{_mandir}/man1/musedata2ly.1.gz
162 %{_mandir}/man1/mup2ly.1.gz
163 %{_mandir}/man1/pmx2ly.1.gz
164
165 %{_datadir}/lilypond/@TOPLEVEL_VERSION@/
166 %{_datadir}/locale/*/LC_MESSAGES/lilypond.mo
167
168 %{_libdir}/lilypond/
169
170 /etc/profile.d/lilypond.*
171
172
173 %files documentation
174
175 %defattr(-, root, root)
176
177 %{docdir}/@TOPLEVEL_VERSION@
178 %{_datadir}/omf/lilypond/@TOPLEVEL_VERSION@
179
180