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