4 %define docdir %{_docdir}/lilypond/
7 Version: @TOPLEVEL_VERSION@
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
17 Buildrequires: t1utils bison flex mftrace ImageMagick
18 Buildrequires: texinfo >= 4.7
19 Buildrequires: guile-devel >= 1.6.4-8
20 Buildrequires: freetype-devel >= 2.1
21 Buildrequires: fontforge
22 #fontforge must be >= 20041211 urg. 0.0.0-fdr.1.20041211
24 Requires: tetex tetex-latex libstdc++ python tetex-dvips tetex-latex
25 Requires: guile >= 1.6.4-8 ghostscript >= 8.15
28 LilyPond lets you create music notation. It produces
29 beautiful sheet music from a high-level description file.
31 %package documentation
32 Summary: All LilyPond documentation, in HTML
33 Group: Applications/Publishing
34 # BuildArchitectures: noarch
36 %description documentation
37 Documentation and example files of LilyPond. An index is available at
38 %{docdir}/web/Documentation/out-www/index.html
45 # DO NOT use % { configure } , it hardcodes all paths, runs libtool,
46 # so we can't do make prefixix=/tmp/ install.
48 # In fact, do not take out the spaces between % and { in the above comment,
49 # because RPM will gladly do a substitution anyway.
51 ./configure --disable-checking --prefix=%{_prefix} --enable-optimising
56 make -C Documentation/user local_package_docdir=%{docdir} omf
61 rm -rf $RPM_BUILD_ROOT
62 mkdir -p $RPM_BUILD_ROOT/tmp/lilypond-rpm-doc
64 make prefix="$RPM_BUILD_ROOT%{_prefix}" \
65 infodir="$RPM_BUILD_ROOT%{_infodir}" \
66 mandir="$RPM_BUILD_ROOT%{_mandir}" install
69 mkdir -p $RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp/site-start.d
70 install -m 644 elisp/lilypond-init.el $RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp/site-start.d
73 gzip -9fn $RPM_BUILD_ROOT%{_mandir}/man1/*
77 mkdir -p $RPM_BUILD_ROOT/etc/profile.d
78 cp buildscripts/out/lilypond-profile $RPM_BUILD_ROOT/etc/profile.d/lilypond.sh
79 cp buildscripts/out/lilypond-login $RPM_BUILD_ROOT/etc/profile.d/lilypond.csh
82 make prefix="$RPM_BUILD_ROOT%{_prefix}" \
83 infodir="$RPM_BUILD_ROOT%{_infodir}" \
84 webdir="$RPM_BUILD_ROOT%{_prefix}/share/doc/lilypond/" web-install
86 ln -sf ../../doc/lilypond/Documentation/user/out-www/*png $RPM_BUILD_ROOT%{_infodir}/lilypond/
90 rm -f $RPM_BUILD_ROOT/%{_infodir}/dir
91 gzip -9fn `find $RPM_BUILD_ROOT%{_infodir}/ -name '*.info'`
98 touch /tmp/.lilypond-install
99 rm `find /var/lib/texmf -name 'feta*pk' -or -name 'feta*tfm' -or -name 'parmesan*pk' -or -name 'parmesan*tfm' -print` /tmp/.lilypond-install
102 /sbin/install-info %{_infodir}/lilypond/lilypond.info.gz %{_infodir}/dir
103 /sbin/install-info %{_infodir}/lilypond/music-glossary.info.gz %{_infodir}/dir
106 export PACKAGEDIR=%{_datadir}/lilypond/@TOPLEVEL_VERSION@
107 if [ -d /usr/share/vim ]; then
108 VIMDIR=`find /usr/share/vim -name bugreport.vim`
109 VIMDIR=`dirname $VIMDIR`
110 for a in `cd $PACKAGEDIR/vim/ ; find -type d -name '*' ` ; do
112 ln -s $PACKAGEDIR/vim/$a/*.vim $VIMDIR/$a/
117 # chkfontpath --add=%{_datadir}/lilypond/@TOPLEVEL_VERSION@/fonts/type1/
119 echo 'Logout first before using LilyPond.'
122 if [ -f /usr/share/lilypond/%{version}/ls-R ]; then
123 rm -f /usr/share/lilypond/%{version}/ls-R
127 if [ -d /usr/share/vim ]; then
128 rm `find /usr/share/vim -name 'lilypond*.vim'`
133 /sbin/install-info --delete %{_infodir}/lilypond/lilypond.info.gz %{_infodir}/dir
134 /sbin/install-info --delete %{_infodir}/lilypond/music-glossary.info.gz %{_infodir}/dir
137 # chkfontpath --remove=%{_datadir}/share/lilypond/@TOPLEVEL_VERSION@/fonts/type1n/
144 %postun documentation
150 %defattr(-, root, root)
151 %{_datadir}/emacs/site-lisp/lilypond*
152 %{_datadir}/emacs/site-lisp/site-start.d/lilypond*
155 %{_bindir}/convert-ly
159 %{_bindir}/lilypond-book
162 %{_bindir}/lilypond-pdfpc-helper
173 %{_infodir}/lilypond/
176 %{_mandir}/man1/abc2ly.1.gz
177 %{_mandir}/man1/convert-ly.1.gz
178 %{_mandir}/man1/etf2ly.1.gz
179 %{_mandir}/man1/lilypond.1.gz
180 %{_mandir}/man1/midi2ly.1.gz
181 %{_mandir}/man1/lilypond-book.1.gz
182 %{_mandir}/man1/mup2ly.1.gz
183 %{_mandir}/man1/ps2png.1.gz
184 %{_mandir}/man1/lilypond-pdfpc-helper.1.gz
186 %{_datadir}/lilypond/@TOPLEVEL_VERSION@/
187 %{_datadir}/locale/*/LC_MESSAGES/lilypond.mo
191 /etc/profile.d/lilypond.*
196 %defattr(-, root, root)
199 %{_datadir}/omf/lilypond/@TOPLEVEL_VERSION@