]> git.donarmstrong.com Git - lilypond.git/blob - make/out/lilypond.spec
72f5d55443eaaf615ed6700dc0048cb5930088eb
[lilypond.git] / make / out / lilypond.spec
1 Name: lilypond
2 Version: 1.1.63
3 Release: 1
4 Copyright: GPL
5 Group: Applications/Publishing
6 Source0: ftp.cs.uu.nl:/pub/GNU/LilyPond/development/lilypond-1.1.63.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: lilypond-icon.gif
11 BuildRoot: /tmp/lilypond-install
12 Prereq: tetex
13
14 %description 
15
16 LilyPond produces beautiful sheet music using a high level description
17 file as input.  LilyPond is part of the GNU project.
18
19
20
21 %prep
22 %setup
23 %build
24 ./configure --disable-checking --disable-debugging --enable-printing --prefix=/usr --disable-optimise --enable-shared
25 make all
26 ln -s /usr/share/texmf/fonts/tfm/public/cm/ tfm
27
28 make -C Documentation  || true
29 make htmldoc || true
30
31
32 %install
33 rm -rf $RPM_BUILD_ROOT
34 mkdir -p $RPM_BUILD_ROOT/tmp/lilypond-rpm-doc
35 mkdir htmldocs
36 tar -C htmldocs -xzf out/htmldoc.tar.gz
37 mkdir -p out/examples/
38 tar -cf - input/  | tar -C out/examples/ -xf-
39
40 strip lily/out/lilypond midi2ly/out/midi2ly
41 make prefix="$RPM_BUILD_ROOT/usr" install
42 # gzip -9fn $RPM_BUILD_ROOT/usr/info/* || true
43
44 mkdir -p $RPM_BUILD_ROOT/etc/profile.d
45 cp buildscripts/out/lilypond-profile $RPM_BUILD_ROOT/etc/profile.d/lilypond.sh
46 cp buildscripts/out/lilypond-login $RPM_BUILD_ROOT/etc/profile.d/lilypond.csh
47
48 %post
49
50 touch /tmp/.lilypond-install
51 rm `find /var/lib/texmf -name 'feta*pk -print' -or -name 'feta*tfm -print'` /tmp/.lilypond-install
52 # /sbin/install-info /usr/info/lilypond.info.gz /usr/info/dir || true
53
54 %preun
55 if [ $1 = 0 ]; then
56  true #   /sbin/install-info --delete /usr/info/lilypond.info.gz /usr/info/dir || true
57 fi
58
59
60 %files
61 %doc htmldocs/
62 %doc out/examples/
63
64 # hairy to hook it in (possibly non-existing) emacs
65 %doc mudela-mode.el
66
67 # this gets too messy...
68 # %doc input/*.ly
69 # verbatim include of input: list the directory without issuing a %dir 
70
71 /usr/bin/convert-mudela
72 /usr/bin/mudela-book
73 /usr/bin/ly2dvi
74 /usr/bin/lilypond
75 /usr/bin/midi2ly
76 /usr/man/man1/midi2ly.1
77 /usr/man/man1/lilypond.1
78 /usr/man/man1/mudela-book.1
79 /usr/man/man1/ly2dvi.1
80 /usr/man/man1/convert-mudela.1
81 /usr/share/lilypond/
82 /usr/share/locale/*/LC_MESSAGES/lilypond.mo
83 /etc/profile.d/lilypond.*
84