4 %define version @TOPLEVEL_VERSION@
7 Summary: A program for printing sheet music.
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 BuildRoot: %{_tmppath}/%{name}-buildroot
16 BuildRequires: t1utils bison texinfo
17 Requires: tetex tetex-latex chkfontpath XFree86 info-install
20 LilyPond is a music typesetter. It produces beautiful sheet music using a
21 high level description file as input. Lilypond is part of the GNU project.
23 LilyPond is split into two packages. The package "lilypond" provides the
24 core package, containing the utilities for converting the music source
25 (.ly) files into printable output. The package "lilypond-documentation"
26 provides the full documentation, example .ly files for various features and
27 the Mutopia project files (musical equivalent of the Gutenberg project - see
28 http://www.mutopiaproject.org for details).
30 If you are new to lilypond, you will almost certainly want to install the
31 "lilypond-documentation" package in addition to the "lilypond" package.
33 %package documentation
34 Summary: LilyPond documentation, examples and Mutopia files.
35 Group: Applications/Publishing
38 %description documentation
39 The documentation of LilyPond, both in HTML and PostScript, along with
40 example input files and the files from the Mutopia project.
43 rm -rf $RPM_BUILD_ROOT
48 # DO NOT use % { configure } , it hardcodes all paths, runs libtool,
49 # so we can't do make prefix=/tmp/ install.
50 # -- not sure what this comment means; it's a relic from the PPC spec file -- mbrown@fensystems.co.uk
51 ##./configure --disable-checking --disable-debugging --enable-printing --prefix=%{_prefix} --disable-optimising --enable-shared
52 ## Add options if needed
53 ./configure --disable-checking --prefix=%{_prefix} --enable-optimising
54 make MAKE_PFA_FILES=1 all
64 # Create installation root folders
65 rm -rf $RPM_BUILD_ROOT
66 RPM_DOC_ROOT=$RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
68 mkdir -p $RPM_DOC_ROOT
70 strip lily/out/lilypond
71 make prefix="$RPM_BUILD_ROOT%{_prefix}" infodir="$RPM_BUILD_ROOT%{_infodir}" MAKE_PFA_FILES=1 mandir="$RPM_BUILD_ROOT%{_mandir}" install
74 rm -f $RPM_BUILD_ROOT/%{_infodir}/dir
75 bzip2 $RPM_BUILD_ROOT%{_infodir}/*
78 mkdir -p $RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp/site-start.d
79 install -m 644 lilypond-mode.el lilypond-font-lock.el lilypond-indent.el lilypond.words $RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp/
80 install -m 644 lilypond-init.el $RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp/site-start.d
82 bzip2 $RPM_BUILD_ROOT%{_mandir}/man1/*
84 mkdir -p $RPM_BUILD_ROOT%{_prefix}/../etc/profile.d
85 cp buildscripts/out/lilypond-profile $RPM_BUILD_ROOT%{_prefix}/../etc/profile.d/lilypond.sh
86 cp buildscripts/out/lilypond-login $RPM_BUILD_ROOT%{_prefix}/../etc/profile.d/lilypond.csh
89 # again, make sure that main package installs even if doco fails
91 tar -C web -xzf out/web.tar.gz
94 # Every entry must be changed according package specifications
95 # Pay attention to "section" "command" and "longtitle"
97 mkdir -p $RPM_BUILD_ROOT%{_menudir}
98 cat >$RPM_BUILD_ROOT%{_menudir}/%{name} <<EOF
99 ?package(%name): command="%{_bindir}/%{name}" needs="X11" \
100 icon="%{name}.xpm" section="Applications/Publishing" \
101 title="%{name}" longtitle="%{name}"
105 install -d $RPM_BUILD_ROOT/%{_miconsdir}
106 install -d $RPM_BUILD_ROOT/%{_iconsdir}
107 install -d $RPM_BUILD_ROOT/%{_liconsdir}
108 install -m 644 Documentation/pictures/%{name}-16x16.xpm $RPM_BUILD_ROOT/%{_miconsdir}/%{name}.xpm
109 install -m 644 Documentation/pictures/%{name}-32x32.xpm $RPM_BUILD_ROOT/%{_iconsdir}/%{name}.xpm
110 install -m 644 Documentation/pictures/%{name}-48x48.xpm $RPM_BUILD_ROOT/%{_liconsdir}/%{name}.xpm
115 touch /tmp/.lilypond-install
116 rm `find /var/lib/texmf -name 'feta*pk' -or -name 'feta*tfm' -or -name 'parmesan*pk' -or -name 'parmesan*tfm' -print` /tmp/.lilypond-install
119 /sbin/install-info %{_infodir}/lilypond.info.bz2 %{_infodir}/dir
122 /usr/X11R6/bin/mkfontdir %{_datadir}/lilypond/%{version}/fonts/type1/
123 chkfontpath --add=%{_datadir}/lilypond/%{version}/fonts/type1/
129 /sbin/install-info --delete %{_infodir}/lilypond.info.bz2 %{_infodir}/dir
133 rm -f %{_datadir}/lilypond/%{version}/fonts/type1/fonts.dir
134 chkfontpath --remove=%{_datadir}/lilypond/%{version}/fonts/type1/
140 rm -rf $RPM_BUILD_ROOT
143 %defattr(-, root, root)
144 %doc COPYING README.txt INSTALL.txt DEDICATION NEWS AUTHORS.txt THANKS
146 %{_datadir}/emacs/site-lisp/site-start.d/lilypond-*
147 %{_datadir}/emacs/site-lisp/lilypond*
153 %{_datadir}/%{name}/%{version}/
154 %{_datadir}/locale/*/LC_MESSAGES/lilypond.mo
155 %{_prefix}/../etc/profile.d/lilypond.*
164 %defattr(-, root, root)
169 * Fri Nov 30 2002 Heikki Johannes Junes <hjunes@cc.hut.fi> 1.7.8-4mdk
170 - add pre/post-dependencies and menus with icon from source.
172 * Fri Oct 28 2002 Heikki Johannes Junes <hjunes@cc.hut.fi> 1.7.4-1mdk
173 - info, commented menu
175 * Fri Aug 30 2002 Heikki Johannes Junes <hjunes@cc.hut.fi> 1.6.0-1mdk
176 - Adapted from lilypond.redhat.skel and skeleton found in Mandrake's RPM-docs.
177 - TODO: info (?) and dependencies.
179 * Fri Jun 01 2001 Lenny Cartier <lenny@mandrakesoft.com> 1.4.2-1mdk
180 - updated by Michael Brown <mbrown@linux-mandrake.com> :
183 - Removed /etc/profile.d scripts: all TeX bits are now located properly
184 - Rearranged documentation
186 - Updated README.first
188 * Mon Feb 26 2001 Lenny Cartier <lenny@mandrakesoft.com> 1.3.129-1mdk
189 - added in contribs by Michael Brown <mbrown@fensystems.co.uk> :
190 - Removed info files completely (couldn't get info reader to read them)
191 - TODO: Get this to work at some point (in the meantime, use documentation in lilypond-extras)
193 * Sat Feb 17 2001 Michael Brown <mbrown@fensystems.co.uk>
194 - Moved TeX font folders into the system TeX tree (this ensures that the /var/lib/texmf font cache is used instead of current folder)
195 - Added mktexlsr to post-install and post-uninstall scripts
196 - Patched scripts in /etc/profile.d to reflect changes to font locations
197 - Added QuickStart guide and Points to note sections to README.first (well worth reading)
198 - Fixed install-info and uninstall-info sections to use Mandrake's RPM macros :-)
200 * Tue Feb 13 2001 Michael Brown <mbrown@fensystems.co.uk>
201 - First Mandrake package
202 - spec file heavily adapted from PowerPC contribs.
203 - Note HTML documentation may contain duff links and may be incomplete. Lots of warnings appear when building HTML docs.
204 - PostScript documentation is duplicated (how do you get an rpm package to contain a symlink?)
205 - Created README.first file