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