]> git.donarmstrong.com Git - lilypond.git/blob - make/lilypond.spec.in
f7bee128c43e70dc6bea87edfae41edfd42cc4f2
[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 # Icon: @package@-icon.gif
10 BuildRoot: /tmp/lilypond-install
11 Prereq: tetex
12
13 %description
14 LilyPond is a music typesetter.  It produces beautiful
15 sheet music using a high level description file as input.  LilyPond is
16 part of the GNU Project.
17
18
19 %package documentation
20 Summary: Prebuilt website containing all LilyPond documentation.
21 Group: Applications/Publishing
22 # BuildArchitectures: noarch
23
24 %description documentation
25
26
27 The documentation of LilyPond, both in HTML and PostScript.
28
29 %prep
30 %setup
31 %build
32 #./configure --disable-checking --disable-debugging --enable-printing --prefix=/usr --disable-optimise --enable-shared
33 %{configure} --disable-checking --disable-debugging --enable-printing --prefix=%{_prefix} --disable-optimise --enable-shared
34 make all
35 ln -s %{_prefix}/share/texmf/fonts/tfm/public/cm/ tfm
36
37 # urg
38 # %build documentation
39 # line 42: second %build
40 # ok, now make sure that lilypond package will succeed,
41 # even if documentation fails to build
42 make -C Documentation  || true
43 make htmldoc || true
44
45 %install
46 rm -rf $RPM_BUILD_ROOT
47 mkdir -p $RPM_BUILD_ROOT/tmp/lilypond-rpm-doc
48
49 strip lily/out/lilypond midi2ly/out/midi2ly
50 make prefix="$RPM_BUILD_ROOT%{_prefix}" install
51 # gzip -9fn $RPM_BUILD_ROOT%{_prefix}/info/* || true
52
53 mkdir -p $RPM_BUILD_ROOT%{_prefix}/../etc/profile.d
54 cp buildscripts/out/lilypond-profile $RPM_BUILD_ROOT%{_prefix}/../etc/profile.d/lilypond.sh
55 cp buildscripts/out/lilypond-login $RPM_BUILD_ROOT%{_prefix}/../etc/profile.d/lilypond.csh
56
57 # urg
58 #%install documentation
59 #line 63: second %install
60 # again, make sure that main package installs even if doco fails
61 mkdir -p htmldocs/out
62 tar -C htmldocs -xzf out/htmldoc.tar.gz || true
63 mkdir -p out/examples/
64 tar -cf - input/  | tar -C out/examples/ -xf- || true
65
66 %post
67
68 touch /tmp/.lilypond-install
69 rm `find /var/lib/texmf -name 'feta*pk -print' -or -name 'feta*tfm -print'` /tmp/.lilypond-install
70 # /sbin/install-info %{_prefix}/info/lilypond.info.gz %{_prefix}/info/dir || true
71
72 %preun
73 if [ $1 = 0 ]; then
74  true #   /sbin/install-info --delete %{_prefix}/info/lilypond.info.gz %{_prefix}/info/dir || true
75 fi
76
77
78 %files
79 # hairy to hook it in (possibly non-existing) emacs
80 %doc mudela-mode.el
81
82 %{_prefix}/bin/abc2ly
83 %{_prefix}/bin/convert-mudela
84 %{_prefix}/bin/mudela-book
85 %{_prefix}/bin/ly2dvi
86 %{_prefix}/bin/lilypond
87 %{_prefix}/bin/midi2ly
88 %{_prefix}/man/man1/midi2ly.1
89 %{_prefix}/man/man1/lilypond.1
90 %{_prefix}/man/man1/mudela-book.1
91 %{_prefix}/man/man1/ly2dvi.1
92 %{_prefix}/man/man1/convert-mudela.1
93 %{_prefix}/share/lilypond/
94 %{_prefix}/share/locale/*/LC_MESSAGES/lilypond.mo
95 # urg?
96 %{_prefix}/../etc/profile.d/lilypond.*
97
98 %files documentation
99 # this gets too messy...
100 # %doc input/*.ly
101 # verbatim include of input: list the directory without issuing a %dir 
102 %doc htmldocs/
103 %doc out/examples/
104 %doc mutopia/