]> git.donarmstrong.com Git - lilypond.git/blob - make/lilypond.redhat.spec.in
* make/lilypond.redhat.spec.in: require GUILE >= 1.6.4-7
[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.cs.uu.nl:/pub/GNU/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 texinfo
18 Requires: tetex  tetex-latex libstdc++ python 
19 Requires: guile >= 1.6.4-7
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:  All LilyPond documentation, in HTML
27 Group: Applications/Publishing
28 # BuildArchitectures: noarch
29
30 %description documentation
31 Documentation and example files of LilyPond. An index is available at
32 %{docdir}/web/Documentation/out-www/index.html
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 prefixix=/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-optimising
46
47
48 make MAKE_PFA_FILES=1 all
49 make -C mf/ pfa
50
51 # make info
52 make -C Documentation
53
54 # make  html
55 make web-doc top-web 
56 make -C Documentation/user omf
57
58 %install
59
60
61 rm -rf $RPM_BUILD_ROOT
62 mkdir -p $RPM_BUILD_ROOT/tmp/lilypond-rpm-doc
63
64 strip lily/out/lilypond 
65 make prefix="$RPM_BUILD_ROOT%{_prefix}" infodir="$RPM_BUILD_ROOT%{_infodir}" MAKE_PFA_FILES=1 mandir="$RPM_BUILD_ROOT%{_mandir}" install
66
67 %if %{info}
68 rm -f $RPM_BUILD_ROOT/%{_infodir}/dir
69 gzip -9fn $RPM_BUILD_ROOT%{_infodir}/*
70 %endif
71
72 mkdir -p $RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp/site-start.d
73 install -m 644 lilypond-mode.el lilypond-font-lock.el lilypond-indent.el lilypond.words $RPM_BUILD_ROOT/%{_datadir}/emacs/site-lisp/
74 install -m 644 lilypond-init.el $RPM_BUILD_ROOT/%{_datadir}/emacs/site-lisp/site-start.d
75
76 gzip -9fn $RPM_BUILD_ROOT%{_mandir}/man1/*
77
78 mkdir -p $RPM_BUILD_ROOT/etc/profile.d
79 cp buildscripts/out/lilypond-profile $RPM_BUILD_ROOT/etc/profile.d/lilypond.sh
80 cp buildscripts/out/lilypond-login $RPM_BUILD_ROOT/etc/profile.d/lilypond.csh
81
82 make prefix="$RPM_BUILD_ROOT%{_prefix}" install-html-doc
83
84
85 %post
86
87 touch /tmp/.lilypond-install
88 rm `find /var/lib/texmf -name 'feta*pk' -or -name 'feta*tfm' -or -name 'parmesan*pk' -or -name 'parmesan*tfm' -print` /tmp/.lilypond-install
89
90 %if %{info}
91 /sbin/install-info %{_infodir}/lilypond.info.gz %{_infodir}/dir 
92 %endif
93
94 # chkfontpath --add=%{_datadir}/lilypond/@TOPLEVEL_VERSION@/fonts/type1/
95
96 echo 'Please logout first before using LilyPond.'
97
98 %preun
99
100
101 %if %{info}
102 if [ $1 = 0 ]; then
103     /sbin/install-info --delete %{_infodir}/lilypond.info.gz %{_infodir}/dir 
104 fi
105 %endif
106
107 # chkfontpath --remove=%{_datadir}/share/lilypond/@TOPLEVEL_VERSION@/fonts/type1/
108
109
110 %post documentation
111 scrollkeeper-update
112
113 %postun documentation
114 scrollkeeper-update
115
116
117
118 %files
119 %defattr(-, root, root)
120 %{_datadir}/emacs/site-lisp/lilypond*
121 %{_datadir}/emacs/site-lisp/site-start.d/lilypond-*
122
123 %{_bindir}/abc2ly
124 %{_bindir}/as2text
125 %{_bindir}/convert-ly
126 %{_bindir}/etf2ly
127 %{_bindir}/lilypond
128 %{_bindir}/ly2dvi
129 %{_bindir}/midi2ly
130 %{_bindir}/lilypond-book
131 %{_bindir}/mup2ly
132 %{_bindir}/musedata2ly
133 %{_bindir}/pmx2ly
134
135
136
137 %if %{info}
138 %{_infodir}/*
139 %endif
140
141 %{_mandir}/man1/abc2ly.1.gz
142 %{_mandir}/man1/as2text.1.gz
143 %{_mandir}/man1/convert-ly.1.gz
144 %{_mandir}/man1/etf2ly.1.gz
145 %{_mandir}/man1/lilypond.1.gz
146 %{_mandir}/man1/ly2dvi.1.gz
147 %{_mandir}/man1/midi2ly.1.gz
148 %{_mandir}/man1/lilypond-book.1.gz
149 %{_mandir}/man1/musedata2ly.1.gz
150 %{_mandir}/man1/mup2ly.1.gz
151 %{_mandir}/man1/pmx2ly.1.gz
152
153 %{_datadir}/lilypond/@TOPLEVEL_VERSION@/
154 %{_datadir}/locale/*/LC_MESSAGES/lilypond.mo
155
156 %{_libdir}/lilypond/
157
158 /etc/profile.d/lilypond.*
159
160
161 %files documentation
162
163 %defattr(-, root, root)
164
165 %{docdir}/@TOPLEVEL_VERSION@
166 %{_datadir}/omf/lilypond/@TOPLEVEL_VERSION@
167
168