]> git.donarmstrong.com Git - lilypond.git/blob - make/out/lilypond.redhat.spec
release: 1.4.5
[lilypond.git] / make / out / lilypond.redhat.spec
1 %define info yes
2
3 Name: lilypond
4 Version: 1.4.5
5 Release: 1
6 License: GPL
7 Group: Applications/Publishing
8 Source0: ftp.cs.uu.nl:/pub/GNU/LilyPond/development/lilypond-1.4.5.tar.gz
9 Summary: Create and print music notation 
10 URL: http://www.cs.uu.nl/~hanwen/lilypond
11 BuildRoot: /tmp/lilypond-install
12 # add lots of Buildreq: flex, bison, tetex, tetex-devel, tetex-latex, texinfo
13 # better prereqs: tetex-latex, python, (mpost?) etc.
14 Prereq: tetex
15
16
17 %description
18 LilyPond lets you create music notation.  It produces
19 beautiful sheet music from  a high-level description file.
20
21 %package documentation
22 Summary: Prebuilt website containing all LilyPond documentation.
23 Group: Applications/Publishing
24 # BuildArchitectures: noarch
25
26 %description documentation
27
28 The documentation of LilyPond, both in HTML and PostScript.
29
30 %prep
31 %setup
32
33 %build
34
35 # DO NOT use % { configure } , it hardcodes all paths, runs libtool,
36 # so we can't do make prefix=/tmp/ install.
37
38 # In fact, do not take out the spaces between % and { in the above comment,
39 # because RPM will gladly do a substitution anyway.
40
41 ./configure --disable-checking --prefix=%{_prefix} --enable-optimise
42
43 make all
44
45 # make info
46 make -C Documentation
47
48 # make  html
49 make web-doc top-web 
50
51 %install
52
53
54 rm -rf $RPM_BUILD_ROOT
55 mkdir -p $RPM_BUILD_ROOT/tmp/lilypond-rpm-doc
56
57 strip lily/out/lilypond midi2ly/out/midi2ly
58 make prefix="$RPM_BUILD_ROOT%{_prefix}" install
59
60 %if info=="yes"
61 gzip -9fn $RPM_BUILD_ROOT%{_prefix}/info/*
62 %endif
63
64 mkdir -p $RPM_BUILD_ROOT/usr/share/emacs/site-lisp/site-start.d
65 install -m 644 lilypond-mode.el lilypond-font-lock.el $RPM_BUILD_ROOT/usr/share/emacs/site-lisp/
66 install -m 644 lilypond-init.el $RPM_BUILD_ROOT/usr/share/emacs/site-lisp/site-start.d
67
68 gzip -9fn $RPM_BUILD_ROOT%{_prefix}/man/man1/*
69
70 mkdir -p $RPM_BUILD_ROOT%{_prefix}/../etc/profile.d
71 cp buildscripts/out/lilypond-profile $RPM_BUILD_ROOT%{_prefix}/../etc/profile.d/lilypond.sh
72 cp buildscripts/out/lilypond-login $RPM_BUILD_ROOT%{_prefix}/../etc/profile.d/lilypond.csh
73
74
75 # again, make sure that main package installs even if doco fails
76 mkdir -p web/out
77 tar -C web -xzf out/web.tar.gz 
78
79
80 %post
81
82 touch /tmp/.lilypond-install
83 rm `find /var/lib/texmf -name 'feta*pk -print' -or -name 'feta*tfm -print'` /tmp/.lilypond-install
84
85 %if info=="yes"
86 /sbin/install-info %{_prefix}/info/lilypond.info.gz %{_prefix}/info/dir 
87 %endif
88
89 %preun
90
91 %if info=="yes"
92 if [ $1 = 0 ]; then
93     /sbin/install-info --delete %{_prefix}/info/lilypond.info.gz %{_prefix}/info/dir 
94 fi
95 %endif
96
97
98 %files
99 %defattr(-, root, root)
100 %{_datadir}/emacs/site-lisp/lilypond-*
101 %{_datadir}/emacs/site-lisp/site-start.d/lilypond-*
102
103 %{_prefix}/bin/abc2ly
104 %{_prefix}/bin/as2text
105 %{_prefix}/bin/convert-ly
106 %{_prefix}/bin/etf2ly
107 %{_prefix}/bin/lilypond
108 %{_prefix}/bin/ly2dvi
109 %{_prefix}/bin/midi2ly
110 %{_prefix}/bin/lilypond-book
111 %{_prefix}/bin/mup2ly
112 %{_prefix}/bin/musedata2ly
113 %{_prefix}/bin/pmx2ly
114
115 %if info=="yes"
116 %{_prefix}/info/lilypond.info.gz
117 %{_prefix}/info/lilypond-internals.info.gz
118 %endif
119
120 %{_prefix}/man/man1/abc2ly.1.gz
121 %{_prefix}/man/man1/as2text.1.gz
122 %{_prefix}/man/man1/convert-ly.1.gz
123 %{_prefix}/man/man1/etf2ly.1.gz
124 %{_prefix}/man/man1/lilypond.1.gz
125 %{_prefix}/man/man1/ly2dvi.1.gz
126 %{_prefix}/man/man1/midi2ly.1.gz
127 %{_prefix}/man/man1/lilypond-book.1.gz
128 %{_prefix}/man/man1/musedata2ly.1.gz
129 %{_prefix}/man/man1/mup2ly.1.gz
130 %{_prefix}/man/man1/pmx2ly.1.gz
131
132 %{_prefix}/share/lilypond/
133 %{_prefix}/share/locale/*/LC_MESSAGES/lilypond.mo
134 %{_prefix}/../etc/profile.d/lilypond.*
135
136 %files documentation
137 %doc web/