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