6 Summary: A program for printing sheet music.
9 Source0: ftp.cs.uu.nl:/pub/GNU/LilyPond/development/lilypond-%{version}.tar.gz
10 ## Patch0: lilypond-GNUmakefile.in.patch.bz2
13 URL: http://www.lilypond.org/
14 BuildRoot: %{_tmppath}/%{name}-buildroot
15 BuildRequires: guile guile-devel
19 LilyPond is a music typesetter. It produces beautiful sheet music using a
20 high level description file as input. Lilypond is part of the GNU project.
22 LilyPond is split into two packages. The package "lilypond" provides the
23 core package, containing the utilities for converting the music source
24 (.ly) files into printable output. The package "lilypond-extras" provides
25 the full documentation, example .ly files for various features and the
26 Mutopia project files (musical equivalent of the Gutenberg project - see
27 http://www.mutopiaproject.org for details).
29 If you are new to lilypond, you will almost certainly want to install the
30 "lilypond-extras" package in addition to the "lilypond" package.
32 You may also wish to investigate the "denemo" package, which provides a
33 graphical front end to lilypond.
35 See the file README.first for more information.
39 Summary: LilyPond documentation, examples and Mutopia files.
44 The documentation of LilyPond, both in HTML and PostScript, along with
45 example input files and the files from the Mutopia project.
52 # DO NOT use % { configure } , it hardcodes all paths, runs libtool,
53 # so we can't do make prefix=/tmp/ install.
54 # -- not sure what this comment means; it's a relic from the PPC spec file -- mbrown@fensystems.co.uk
55 ./configure --disable-checking --disable-debugging --enable-printing --prefix=%{_prefix} --disable-optimise --enable-shared
61 # Create installation root folders
62 rm -rf $RPM_BUILD_ROOT
63 RPM_DOC_ROOT=$RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
65 mkdir -p $RPM_DOC_ROOT
67 make prefix="$RPM_BUILD_ROOT%{_prefix}" install
70 # Move info and man files into correct locations
71 mv $RPM_BUILD_ROOT/usr/info $RPM_BUILD_ROOT%{_infodir}
72 mv $RPM_BUILD_ROOT/usr/man $RPM_BUILD_ROOT%{_mandir}
74 # Move TeX font files into system TeX tree locations
75 mkdir -p $RPM_BUILD_ROOT%{_datadir}/texmf/fonts/{afm,source,tfm}
76 mv $RPM_BUILD_ROOT%{_datadir}/lilypond/afm $RPM_BUILD_ROOT%{_datadir}/texmf/fonts/afm/lilypond
77 mv $RPM_BUILD_ROOT%{_datadir}/lilypond/mf $RPM_BUILD_ROOT%{_datadir}/texmf/fonts/source/lilypond
78 mv $RPM_BUILD_ROOT%{_datadir}/lilypond/tfm $RPM_BUILD_ROOT%{_datadir}/texmf/fonts/tfm/lilypond
79 mkdir -p $RPM_BUILD_ROOT%{_datadir}/texmf/tex
80 mv $RPM_BUILD_ROOT%{_datadir}/lilypond/tex $RPM_BUILD_ROOT%{_datadir}/texmf/tex/lilypond
82 # Copy emacs mode files into %{_datadir}/lilypond/emacs
83 mkdir -p $RPM_BUILD_ROOT%{_datadir}/lilypond/emacs
84 cp *.el $RPM_BUILD_ROOT%{_datadir}/lilypond/emacs/
86 # Create documentation tree in %{_docdir}
87 mkdir -p $RPM_DOC_ROOT/HTML
88 tar -C $RPM_DOC_ROOT/HTML -xzf out/web.tar.gz
89 ln -s HTML/input $RPM_DOC_ROOT/Examples
90 ln -s HTML/input/test $RPM_DOC_ROOT/Tricks
91 ln -s HTML/mutopia $RPM_DOC_ROOT/Mutopia
92 mkdir -p $RPM_DOC_ROOT/Printable
93 ln -s ../HTML/Documentation/user/out-www/lilypond.ps.gz $RPM_DOC_ROOT/Printable/Manual.ps.gz
94 ln -s ../HTML/Documentation/user/out-www/glossary.ps.gz $RPM_DOC_ROOT/Printable/Glossary.ps.gz
95 cp AUTHORS.txt CHANGES COPYING DEDICATION FAQ.txt NEWS README.txt VERSION README.mandrake $RPM_DOC_ROOT/README.first
98 touch /tmp/.lilypond-install
99 rm `find /var/lib/texmf -name 'feta*pk -print' -or -name 'feta*tfm -print'` /tmp/.lilypond-install
101 %_install_info lilypond.info
102 %_install_info lilypond-internals.info
104 echo 'Please logout first before using LilyPond.'
108 %_remove_install_info lilypond.info
109 %_remove_install_info lilypond-internals.info
115 %files -f %{name}.lang
116 %defattr(-,root,root,0755)
118 %{_datadir}/lilypond/
119 %{_datadir}/texmf/fonts/afm/lilypond
120 %{_datadir}/texmf/fonts/source/lilypond
121 %{_datadir}/texmf/fonts/tfm/lilypond
122 %{_datadir}/texmf/tex/lilypond
125 %doc %{_mandir}/man1/*
126 %doc %{_docdir}/%{name}-%{version}/AUTHORS.txt
127 %doc %{_docdir}/%{name}-%{version}/CHANGES
128 %doc %{_docdir}/%{name}-%{version}/COPYING
129 %doc %{_docdir}/%{name}-%{version}/DEDICATION
130 %doc %{_docdir}/%{name}-%{version}/FAQ.txt
131 %doc %{_docdir}/%{name}-%{version}/NEWS
132 %doc %{_docdir}/%{name}-%{version}/README.txt
133 %doc %{_docdir}/%{name}-%{version}/VERSION
134 %doc %{_docdir}/%{name}-%{version}/README.first
137 %defattr(-,root,root,0755)
138 %doc %{_docdir}/%{name}-%{version}/HTML
139 %doc %{_docdir}/%{name}-%{version}/Mutopia
140 %doc %{_docdir}/%{name}-%{version}/Printable
141 %doc %{_docdir}/%{name}-%{version}/Tricks
142 %doc %{_docdir}/%{name}-%{version}/Examples
146 * Fri Jun 01 2001 Lenny Cartier <lenny@mandrakesoft.com> 1.4.2-1mdk
147 - updated by Michael Brown <mbrown@linux-mandrake.com> :
150 - Removed /etc/profile.d scripts: all TeX bits are now located properly
151 - Rearranged documentation
153 - Updated README.first
155 * Mon Feb 26 2001 Lenny Cartier <lenny@mandrakesoft.com> 1.3.129-1mdk
156 - added in contribs by Michael Brown <mbrown@fensystems.co.uk> :
157 - Removed info files completely (couldn't get info reader to read them)
158 - TODO: Get this to work at some point (in the meantime, use documentation in lilypond-extras)
160 * Sat Feb 17 2001 Michael Brown <mbrown@fensystems.co.uk>
161 - Moved TeX font folders into the system TeX tree (this ensures that the /var/lib/texmf font cache is used instead of current folder)
162 - Added mktexlsr to post-install and post-uninstall scripts
163 - Patched scripts in /etc/profile.d to reflect changes to font locations
164 - Added QuickStart guide and Points to note sections to README.first (well worth reading)
165 - Fixed install-info and uninstall-info sections to use Mandrake's RPM macros :-)
167 * Tue Feb 13 2001 Michael Brown <mbrown@fensystems.co.uk>
168 - First Mandrake package
169 - spec file heavily adapted from PowerPC contribs.
170 - Note HTML documentation may contain duff links and may be incomplete. Lots of warnings appear when building HTML docs.
171 - PostScript documentation is duplicated (how do you get an rpm package to contain a symlink?)
172 - Created README.first file