]> git.donarmstrong.com Git - lilypond.git/blob - make/lilypond.spec.in
a88efa0ad835e525318523a0eb8372531337765a
[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 --disable-optimise --enable-shared
21 make all
22 ln -s /usr/share/texmf/fonts/tfm/public/cm/ tfm
23
24 make -C Documentation  || true
25 make htmldoc || true
26
27
28 %install
29 rm -rf $RPM_BUILD_ROOT
30 mkdir -p $RPM_BUILD_ROOT/tmp/lilypond-rpm-doc
31 mkdir htmldocs
32 tar -C htmldocs -xzf out/htmldoc.tar.gz
33 mkdir -p out/examples/
34 tar -cf - input/  | tar -C out/examples/ -xf-
35
36 strip lily/out/lilypond midi2ly/out/midi2ly
37 make prefix="$RPM_BUILD_ROOT/usr" install
38 # gzip -9fn $RPM_BUILD_ROOT/usr/info/* || true
39
40 mkdir -p $RPM_BUILD_ROOT/etc/profile.d
41 cp buildscripts/out/lilypond-profile $RPM_BUILD_ROOT/etc/profile.d/lilypond.sh
42 cp buildscripts/out/lilypond-login $RPM_BUILD_ROOT/etc/profile.d/lilypond.csh
43
44 %post
45
46 touch /tmp/.lilypond-install
47 rm `find /var/lib/texmf -name 'feta*pk -print' -or -name 'feta*tfm -print'` /tmp/.lilypond-install
48 # /sbin/install-info /usr/info/lilypond.info.gz /usr/info/dir || true
49
50 %preun
51 if [ $1 = 0 ]; then
52  true #   /sbin/install-info --delete /usr/info/lilypond.info.gz /usr/info/dir || true
53 fi
54
55
56 %files
57 %doc htmldocs/
58 %doc out/examples/
59
60 # hairy to hook it in (possibly non-existing) emacs
61 %doc mudela-mode.el
62
63 # this gets too messy...
64 # %doc input/*.ly
65 # verbatim include of input: list the directory without issuing a %dir 
66
67 /usr/bin/convert-mudela
68 /usr/bin/mudela-book
69 /usr/bin/ly2dvi
70 /usr/bin/lilypond
71 /usr/bin/midi2ly
72 /usr/man/man1/midi2ly.1
73 /usr/man/man1/lilypond.1
74 /usr/man/man1/mudela-book.1
75 /usr/man/man1/ly2dvi.1
76 /usr/man/man1/convert-mudela.1
77 /usr/share/lilypond/
78 /usr/share/locale/*/LC_MESSAGES/lilypond.mo
79 /etc/profile.d/lilypond.*
80