]> git.donarmstrong.com Git - lilypond.git/blob - make/lilypond.mandrake.spec.in
Repairs info. Commented menu. Correct directories.
[lilypond.git] / make / lilypond.mandrake.spec.in
1 %define info yes
2
3 %define name lilypond
4 %define version @TOPLEVEL_VERSION@
5 %define release 1mdk
6
7 Summary:        A program for printing sheet music.
8 Name:           %{name}
9 Version:        %{version}
10 Release:        %{release}
11 License:        GPL
12 Group:          Applications/Publishing
13 URL:            http://www.lilypond.org/
14 Source0:        ftp.cs.uu.nl:/pub/GNU/LilyPond/development/lilypond-%{version}.tar.gz
15 # Source1:      %name-16x16.png.tar.bz2
16 # Source2:      %name-32x32.png.tar.bz2
17 # Source3:      %name-48x48.png.tar.bz2
18 BuildRoot:      %{_tmppath}/%{name}-buildroot
19 BuildRequires:  t1utils bison texinfo
20 Requires:       tetex tetex-latex
21
22 %description
23 LilyPond is a music typesetter.  It produces beautiful sheet music using a
24 high level description file as input.  Lilypond is part of the GNU project.
25  
26 LilyPond is split into two packages.  The package "lilypond" provides the
27 core package, containing the utilities for converting the music source
28 (.ly) files into printable output.  The package "lilypond-documentation" 
29 provides the full documentation, example .ly files for various features and 
30 the Mutopia project files (musical equivalent of the Gutenberg project - see
31 http://www.mutopiaproject.org for details).
32  
33 If you are new to lilypond, you will almost certainly want to install the
34 "lilypond-documentation" package in addition to the "lilypond" package.
35  
36 %package documentation
37 Summary: LilyPond documentation, examples and Mutopia files.
38 Group: Applications/Publishing
39 Requires: lilypond
40
41 %description documentation
42 The documentation of LilyPond, both in HTML and PostScript, along with
43 example input files and the files from the Mutopia project.
44
45 %prep
46 rm -rf $RPM_BUILD_ROOT
47
48 %setup
49
50 %build
51 # DO NOT use % { configure } , it hardcodes all paths, runs libtool,
52 # so we can't do make prefix=/tmp/ install.
53 # -- not sure what this comment means; it's a relic from the PPC spec file -- mbrown@fensystems.co.uk
54 ##./configure --disable-checking --disable-debugging --enable-printing --prefix=%{_prefix} --disable-optimising --enable-shared
55 ## Add options if needed
56 ./configure --disable-checking --prefix=%{_prefix} --enable-optimising
57 make MAKE_PFA_FILES=1 all
58
59 # make info
60 make -C Documentation
61
62 # make  html
63 make web-doc top-web 
64
65 %install
66
67 # Create installation root folders
68 rm -rf $RPM_BUILD_ROOT
69 RPM_DOC_ROOT=$RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
70 rm -rf $RPM_DOC_ROOT
71 mkdir -p $RPM_DOC_ROOT
72
73 strip lily/out/lilypond 
74 make prefix="$RPM_BUILD_ROOT%{_prefix}" infodir="$RPM_BUILD_ROOT%{_infodir}" MAKE_PFA_FILES=1 mandir="$RPM_BUILD_ROOT%{_mandir}" install
75
76 %if %{info}
77   rm -f $RPM_BUILD_ROOT/%{_infodir}/dir
78   bzip2 $RPM_BUILD_ROOT%{_infodir}/*
79 %endif
80
81 mkdir -p $RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp/site-start.d
82 install -m 644 lilypond-mode.el lilypond-font-lock.el lilypond-indent.el $RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp/
83 install -m 644 lilypond-init.el $RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp/site-start.d
84
85 bzip2 $RPM_BUILD_ROOT%{_mandir}/man1/*
86
87 mkdir -p $RPM_BUILD_ROOT%{_prefix}/../etc/profile.d
88 cp buildscripts/out/lilypond-profile $RPM_BUILD_ROOT%{_prefix}/../etc/profile.d/lilypond.sh
89 cp buildscripts/out/lilypond-login $RPM_BUILD_ROOT%{_prefix}/../etc/profile.d/lilypond.csh
90
91
92 # again, make sure that main package installs even if doco fails
93 mkdir -p web/out
94 tar -C web -xzf out/web.tar.gz 
95
96 # Menu
97 # Every entry must be changed according package specifications
98 # Pay attention to "section" "command" and "longtitle"
99
100 # mkdir -p $RPM_BUILD_ROOT%{_menudir}
101 # cat >$RPM_BUILD_ROOT%{_menudir}/%{name} <<EOF
102 # ?package(%name): command="%{_bindir}/%{name}" needs="X11" \
103 # icon="%{name}.png" section="Applications/Publishing" \
104 # title="%{name}" longtitle="%{name}"
105 # EOF
106   
107 # icon
108 # install -d $RPM_BUILD_ROOT/%{_miconsdir}
109 # install -d $RPM_BUILD_ROOT/%{_iconsdir}
110 # install -d $RPM_BUILD_ROOT/%{_liconsdir}
111 # bzcat %{SOURCE1} > $RPM_BUILD_ROOT/%{_miconsdir}/%{name}.png
112 # bzcat %{SOURCE2} > $RPM_BUILD_ROOT/%{_iconsdir}/%{name}.png
113 # bzcat %{SOURCE3} > $RPM_BUILD_ROOT/%{_liconsdir}/%{name}.png
114
115 %post
116 # %{update_menus}
117
118 touch /tmp/.lilypond-install
119 rm `find /var/lib/texmf -name 'feta*pk' -or -name 'feta*tfm' -or -name 'parmesan*pk' -or -name 'parmesan*tfm' -print` /tmp/.lilypond-install
120
121 %if %{info}
122   /sbin/install-info %{_infodir}/lilypond.info.bz2 %{_infodir}/dir 
123 %endif
124
125 /usr/X11R6/bin/mkfontdir %{_datadir}/lilypond/%{version}/fonts/type1/
126 chkfontpath --add=%{_datadir}/lilypond/%{version}/fonts/type1/
127
128 %preun
129
130 %if %{info}
131   if [ $1 = 0 ]; then
132     /sbin/install-info --delete %{_infodir}/lilypond.info.bz2 %{_infodir}/dir 
133   fi
134 %endif
135
136 rm -f %{_datadir}/lilypond/%{version}/fonts/type1/fonts.dir
137 chkfontpath --remove=%{_datadir}/lilypond/%{version}/fonts/type1/
138
139 %postun
140 # %{clean_menus}
141
142 %clean
143 rm -rf $RPM_BUILD_ROOT
144
145 %files
146 %defattr(-, root, root)
147 %doc COPYING README.txt INSTALL.txt DEDICATION NEWS AUTHORS.txt THANKS
148
149 # is the following really started during startup of emacs?
150 %{_datadir}/emacs/site-lisp/site-start.d/lilypond-*
151 %{_datadir}/emacs/site-lisp/lilypond-*
152
153 %if %{info}
154   %{_infodir}/*
155 %endif
156
157 %{_datadir}/%{name}/%{version}/
158 %{_datadir}/locale/*/LC_MESSAGES/lilypond.mo
159 %{_prefix}/../etc/profile.d/lilypond.*
160 %_bindir/*
161 %_mandir/*
162 # %_menudir/*
163 # %_miconsdir/*
164 # %_iconsdir/*
165 # %_liconsdir/*
166
167 %files documentation
168
169 %doc web/
170
171 %changelog
172 * Fri Oct 28 2002 Heikki Johannes Junes <hjunes@cc.hut.fi> 1.7.4-1mdk
173 - info, commented menu
174
175 %changelog
176 * Fri Aug 30 2002 Heikki Johannes Junes <hjunes@cc.hut.fi> 1.6.0-1mdk
177 - Adapted from lilypond.redhat.skel and skeleton found in Mandrake's RPM-docs.
178 - TODO: info (?) and dependencies.
179
180 %changelog
181 * Fri Jun 01 2001 Lenny Cartier <lenny@mandrakesoft.com> 1.4.2-1mdk
182 - updated by Michael Brown <mbrown@linux-mandrake.com> :
183         - Upgraded to 1.4.2
184         - Changed URL
185         - Removed /etc/profile.d scripts: all TeX bits are now located properly
186         - Rearranged documentation
187         - Tidied spec file
188         - Updated README.first
189
190 * Mon Feb 26 2001 Lenny Cartier <lenny@mandrakesoft.com> 1.3.129-1mdk
191 - added in contribs by Michael Brown <mbrown@fensystems.co.uk> :
192         - Removed info files completely (couldn't get info reader to read them)
193         - TODO: Get this to work at some point (in the meantime, use documentation in lilypond-extras)
194
195 * Sat Feb 17 2001 Michael Brown <mbrown@fensystems.co.uk>
196 - Moved TeX font folders into the system TeX tree (this ensures that the /var/lib/texmf font cache is used instead of current folder)
197 - Added mktexlsr to post-install and post-uninstall scripts
198 - Patched scripts in /etc/profile.d to reflect changes to font locations
199 - Added QuickStart guide and Points to note sections to README.first (well worth reading)
200 - Fixed install-info and uninstall-info sections to use Mandrake's RPM macros :-)
201
202 * Tue Feb 13 2001 Michael Brown <mbrown@fensystems.co.uk>
203 - First Mandrake package
204 - spec file heavily adapted from PowerPC contribs.
205 - Note HTML documentation may contain duff links and may be incomplete.  Lots of warnings appear when building HTML docs.
206 - PostScript documentation is duplicated (how do you get an rpm package to contain a symlink?)
207 - Created README.first file