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