]> git.donarmstrong.com Git - lilypond.git/blob - make/lilypond.spec.in
1864cc4b325bfbbd877f836cbe2717e27401ab77
[lilypond.git] / make / lilypond.spec.in
1 Name: lilypond
2 Version: @TOPLEVEL_VERSION@
3 Release: 1
4 Copyright: GPL
5 Group: Applications/Publishing
6 Source0: ftp.cs.uu.nl:/pub/GNU/LilyPond/development/lilypond-@TOPLEVEL_VERSION@.tar.gz
7 Summary: A program for printing sheet music.
8 URL: http://www.cs.uu.nl/~hanwen/lilypond
9 Packager: Han-Wen Nienhuys <hanwen@cs.uu.nl>
10 Icon: @package@-icon.gif
11 BuildRoot: /tmp/lilypond-install
12 Prereq: tetex
13
14 %description 
15 @BLURB@
16
17 %prep
18 %setup
19 %build
20 ./configure --disable-checking --disable-debugging --enable-printing --prefix=/usr --enable-optimise --enable-shared --enable-tex-dir='${prefix}/lib/texmf/texmf/tex/generic' --enable-mf-dir='${prefix}/lib/texmf/texmf/fonts/source/'
21 make all
22 make -C Documentation info || true
23 make htmldoc
24
25 %install
26 rm -rf $RPM_BUILD_ROOT
27 mkdir -p $RPM_BUILD_ROOT/tmp/lilypond-rpm-doc
28 tar -C $RPM_BUILD_ROOT/tmp/lilypond-rpm-doc -xzf out/htmldoc.tar.gz
29
30 strip lily/out/lilypond mi2mu/out/mi2mu
31 make prefix="$RPM_BUILD_ROOT/usr" install
32 %files
33
34 %doc /tmp/lilypond-rpm-doc
35
36 # hairy to hook it in (possibly non-existing) emacs
37 %doc mudela-mode.el
38
39 # this gets too messy...
40 # %doc input/*.ly
41 # verbatim include of input: list the directory without issuing a %dir 
42
43 %doc input
44
45 /usr/bin/convert-mudela
46 /usr/bin/mudela-book
47 /usr/bin/ly2dvi
48 /usr/bin/lilypond
49 /usr/bin/mi2mu
50 /usr/man/man1/mi2mu.1
51 /usr/man/man1/lilypond.1
52 /usr/man/man1/mudela-book.1
53 /usr/man/man1/ly2dvi.1
54 /usr/man/man1/convert-mudela.1
55 /usr/info/lilypond.info*
56 /usr/lib/texmf/texmf/tex/generic/lilypond
57 /usr/lib/texmf/texmf/fonts/source/public/lilypond
58 /usr/share/lilypond/
59 /usr/share/locale/*/LC_MESSAGES/lilypond.mo
60 %post
61
62 ## ln -s  /usr/lib/texmf/texmf/tex/lilypond  /usr/lib/texmf/texmf/tex/latex/lilypond # suck me plenty
63 texhash         # takes some time...
64 touch /tmp/.lilypond-install
65 rm `find /var/lib/texmf -name 'feta*pk -print' -or -name 'feta*tfm -print'` /tmp/.lilypond-install