]>
Commit | Line | Data |
---|---|---|
1c8efec8 SS |
1 | # TODO: |
2 | # - probably gui bcond is meaningless | |
ade6ec15 JB |
3 | # |
4 | # Conditional build: | |
5 | %bcond_with gui # enable experimental GUI | |
dca87fd4 | 6 | %bcond_with doc # build docs |
ade6ec15 | 7 | # |
d2d2e1b7 | 8 | Summary: Music typesetter |
7d510172 | 9 | Summary(pl.UTF-8): Program do składania nut |
d2d2e1b7 | 10 | Name: lilypond |
07662556 | 11 | Version: 2.12.2 |
0a2c98f1 | 12 | Release: 3 |
d2d2e1b7 | 13 | License: GPL |
14 | Group: Applications/Sound | |
07662556 TP |
15 | Source0: http://lilypond.org/download/v2.12/%{name}-%{version}.tar.gz |
16 | # Source0-md5: 681dfbecf8a3710d1400cf9488be716b | |
04517bc7 JB |
17 | Patch0: %{name}-info.patch |
18 | Patch1: %{name}-sh.patch | |
9e0d95d8 | 19 | Patch3: %{name}-afm.patch |
96ae5dcc JK |
20 | Patch4: %{name}-aclocal.patch |
21 | Patch5: %{name}-bad_cast.patch | |
e54f3148 | 22 | URL: http://www.lilypond.org/ |
dca87fd4 | 23 | %{?with_doc:BuildRequires: ImageMagick-coder-png} |
6969eca1 | 24 | %{?with_doc:BuildRequires: ImageMagick} |
25 | BuildRequires: autoconf | |
62c8bd6d | 26 | BuildRequires: automake |
ade6ec15 | 27 | BuildRequires: bison >= 1.29 |
0ef28866 | 28 | BuildRequires: flex >= 2.5.4a |
743d93b2 | 29 | BuildRequires: fontconfig |
ade6ec15 | 30 | BuildRequires: fontconfig-devel >= 1:2.2.0 |
07662556 TP |
31 | BuildRequires: fontforge >= 20060125 |
32 | BuildRequires: fonts-Type1-urw | |
33 | BuildRequires: gettext-devel >= 0.17 | |
ade6ec15 | 34 | BuildRequires: ghostscript >= 8.15 |
dca87fd4 | 35 | %{?with_doc:BuildRequires: ghostscript >= 8.60} |
9e0d95d8 | 36 | BuildRequires: ghostscript-fonts-std |
ade6ec15 | 37 | %{?with_gui:BuildRequires: gtk+2-devel >= 2:2.4.0} |
07662556 | 38 | BuildRequires: guile-devel >= 5:1.8.2 |
889dbc87 JB |
39 | BuildRequires: kpathsea-devel |
40 | BuildRequires: libltdl-devel | |
07662556 | 41 | BuildRequires: libstdc++-devel >= 5:3.4 |
6969eca1 | 42 | #BuildRequires: mftrace >= 1.1.19 |
dca87fd4 | 43 | %{?with_doc:BuildRequires: netpbm-progs} |
07662556 TP |
44 | BuildRequires: pango-devel >= 1.12.0 |
45 | BuildRequires: perl-base | |
ade6ec15 | 46 | BuildRequires: pkgconfig >= 1:0.9.0 |
07662556 | 47 | BuildRequires: python-devel >= 2.4 |
6969eca1 | 48 | BuildRequires: python-modules |
49 | BuildRequires: rpm-pythonprov | |
dca87fd4 | 50 | %{?with_doc:BuildRequires: rsync} |
07662556 | 51 | BuildRequires: texinfo >= 4.11 |
dca87fd4 | 52 | %{?with_doc:BuildRequires: texinfo-texi2dvi} |
6969eca1 | 53 | #BuildRequires: texlive-dvips |
54 | #BuildRequires: texlive-fonts-cm | |
55 | #BuildRequires: texlive-fonts-cmextra | |
56 | #BuildRequires: texlive-fonts-jknappen | |
57 | %{?with_doc:BuildRequires: texlive-latex-bibtex} | |
58 | BuildRequires: texlive-metapost | |
9079e26d | 59 | BuildConflicts: lilypond < 1.6.0 |
ade6ec15 | 60 | Requires: ghostscript >= 8.15 |
07662556 TP |
61 | Requires: guile >= 5:1.8.2 |
62 | Requires: python >= 2.4 | |
96ae5dcc | 63 | Requires: texlive-latex |
d2d2e1b7 | 64 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
65 | ||
07662556 | 66 | %define texmfdir %{_datadir}/texmf |
8024e447 JK |
67 | %define texmfdistdir %{texmfdir}-dist |
68 | %define texfontsdir %{texmfdistdir}/fonts | |
889dbc87 | 69 | |
d2d2e1b7 | 70 | %description |
d2d2e1b7 | 71 | LilyPond is a music typesetter. It produces beautiful sheet music |
72 | using a high level description file as input. It excels at typesetting | |
73 | classical music, but you can also print pop-songs. With LilyPond we | |
74 | hope to make music publication software available to anyone on the | |
75 | internet. | |
76 | ||
5d405090 JR |
77 | %description -l pl.UTF-8 |
78 | LilyPond jest programem do składu muzycznego. Produkuje piękne | |
79 | partytury używając języka wysokiego poziomu jako wejście. Służy przede | |
80 | wszystkim do składania nut muzyki klasycznej, ale można drukować także | |
81 | piosenki pop. Autorzy udostępniają LilyPond z nadzieją dostarczenia | |
a7c4634e JB |
82 | wszystkim oprogramowania do publikacji muzycznych. |
83 | ||
1596742a JB |
84 | %package -n emacs-lilypond-mode-pkg |
85 | Summary: LilyPond mode for Emacs | |
7d510172 | 86 | Summary(pl.UTF-8): Tryb edycji plików LilyPond dla Emacsa |
1596742a JB |
87 | Group: Applications/Editors/Emacs |
88 | Requires: %{name} = %{version}-%{release} | |
89 | Requires: emacs | |
90 | ||
91 | %description -n emacs-lilypond-mode-pkg | |
92 | LilyPond mode for Emacs. | |
93 | ||
5d405090 JR |
94 | %description -n emacs-lilypond-mode-pkg -l pl.UTF-8 |
95 | Tryb edycji plików LilyPond dla Emacsa. | |
1596742a | 96 | |
ade6ec15 JB |
97 | %package -n vim-syntax-lilypond |
98 | Summary: LilyPond files support for Vim | |
7d510172 | 99 | Summary(pl.UTF-8): Obsługa plików LilyPonda dla Vima |
ade6ec15 JB |
100 | Group: Applications/Editors/Vim |
101 | Requires: %{name} = %{version}-%{release} | |
36009b58 | 102 | Requires: vim-rt >= 4:6.4.001-2 |
ade6ec15 JB |
103 | |
104 | %description -n vim-syntax-lilypond | |
105 | LilyPond files support for Vim. | |
106 | ||
5d405090 JR |
107 | %description -n vim-syntax-lilypond -l pl.UTF-8 |
108 | Obsługa plików LilyPonda dla Vima. | |
ade6ec15 | 109 | |
d2d2e1b7 | 110 | %prep |
111 | %setup -q | |
04517bc7 JB |
112 | %patch0 -p1 |
113 | %patch1 -p1 | |
9e0d95d8 | 114 | %patch3 -p1 |
96ae5dcc JK |
115 | %patch4 -p1 |
116 | %patch5 -p1 | |
d2d2e1b7 | 117 | |
118 | %build | |
62c8bd6d | 119 | cp -f /usr/share/automake/config.* stepmake/bin |
ade6ec15 | 120 | %{__autoconf} |
9ffc1676 | 121 | %configure \ |
ade6ec15 JB |
122 | %{?debug:--disable-optimising} \ |
123 | %{?with_gui:--enable-gui} | |
0ef76543 | 124 | %{__make} -j1 |
dca87fd4 | 125 | %{?with_doc:%{__make} -j1 web} |
d2d2e1b7 | 126 | |
127 | %install | |
128 | rm -rf $RPM_BUILD_ROOT | |
07662556 | 129 | install -d $RPM_BUILD_ROOT{%{texmfdir}/{dvips,tex},%{texfontsdir}/{source,tfm,type1}} |
d2d2e1b7 | 130 | |
889dbc87 | 131 | %{__make} install \ |
ade6ec15 | 132 | DESTDIR=$RPM_BUILD_ROOT |
dca87fd4 | 133 | %if %{with doc} |
1c8efec8 SS |
134 | %{__make} -j1 web-install \ |
135 | DESTDIR=$RPM_BUILD_ROOT | |
136 | %endif | |
07662556 TP |
137 | cp -aL out/share/lilypond/current/fonts/tfm \ |
138 | $RPM_BUILD_ROOT%{texfontsdir}/tfm/lilypond | |
e54f3148 | 139 | |
ade6ec15 | 140 | find $RPM_BUILD_ROOT -name fonts.cache-1 | xargs rm -f |
889dbc87 | 141 | |
ade6ec15 | 142 | # ? |
531a84c4 | 143 | mv -f $RPM_BUILD_ROOT%{_datadir}/lilypond/%{version}/fonts/source \ |
d6ab7bee | 144 | $RPM_BUILD_ROOT%{texfontsdir}/source/lilypond |
ade6ec15 | 145 | # for latex and dvips |
c883b725 | 146 | mv -f $RPM_BUILD_ROOT%{_datadir}/lilypond/%{version}/tex \ |
d6ab7bee | 147 | $RPM_BUILD_ROOT%{texmfdir}/tex/lilypond |
ade6ec15 JB |
148 | # both for lilypond and dvips |
149 | ln -sf %{_datadir}/lilypond/%{version}/fonts/type1 \ | |
150 | $RPM_BUILD_ROOT%{texfontsdir}/type1/lilypond | |
07662556 TP |
151 | ln -sf %{_datadir}/lilypond/%{version}/ps \ |
152 | $RPM_BUILD_ROOT%{texmfdir}/dvips/lilypond | |
153 | rm -rf $RPM_BUILD_ROOT%{_datadir}/lilypond/%{version}/dvips | |
3da54999 | 154 | |
ade6ec15 JB |
155 | # vim syntax/etc. files |
156 | install -d $RPM_BUILD_ROOT%{_datadir}/vim | |
157 | mv -f $RPM_BUILD_ROOT%{_datadir}/lilypond/%{version}/vim \ | |
158 | $RPM_BUILD_ROOT%{_datadir}/vim/vimfiles | |
159 | ||
160 | # lilypond/stepmake build system - not needed at runtime | |
161 | rm -rf $RPM_BUILD_ROOT%{_datadir}/lilypond/%{version}/make | |
0ef28866 | 162 | |
889dbc87 | 163 | %find_lang %{name} |
d2d2e1b7 | 164 | |
165 | %clean | |
9079e26d | 166 | rm -rf $RPM_BUILD_ROOT |
d2d2e1b7 | 167 | |
b82310a7 TP |
168 | %pre |
169 | test -h %{texmfdir}/dvips/lilypond || rm -rf %{texmfdir}/dvips/lilypond | |
170 | ||
889dbc87 JB |
171 | %post |
172 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1 | |
8eef6b13 | 173 | [ ! -x /usr/bin/texhash ] || /usr/bin/texhash 1>&2 |
c883b725 | 174 | [ ! -x /usr/bin/scrollkeeper-update ] || /usr/bin/scrollkeeper-update |
889dbc87 JB |
175 | |
176 | %postun | |
177 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1 | |
8eef6b13 | 178 | [ ! -x /usr/bin/texhash ] || /usr/bin/texhash 1>&2 |
c883b725 | 179 | [ ! -x /usr/bin/scrollkeeper-update ] || /usr/bin/scrollkeeper-update |
889dbc87 JB |
180 | |
181 | %files -f %{name}.lang | |
d2d2e1b7 | 182 | %defattr(644,root,root,755) |
07662556 | 183 | %doc AUTHORS.txt DEDICATION NEWS.txt README.txt THANKS |
d3bdc0ed JB |
184 | %attr(755,root,root) %{_bindir}/abc2ly |
185 | %attr(755,root,root) %{_bindir}/convert-ly | |
186 | %attr(755,root,root) %{_bindir}/etf2ly | |
07662556 | 187 | %attr(755,root,root) %{_bindir}/lilymidi |
d3bdc0ed JB |
188 | %attr(755,root,root) %{_bindir}/lilypond |
189 | %attr(755,root,root) %{_bindir}/lilypond-book | |
190 | %attr(755,root,root) %{_bindir}/lilypond-invoke-editor | |
07662556 | 191 | %attr(755,root,root) %{_bindir}/lilysong |
d3bdc0ed JB |
192 | %attr(755,root,root) %{_bindir}/midi2ly |
193 | %attr(755,root,root) %{_bindir}/musicxml2ly | |
04517bc7 JB |
194 | %dir %{_libdir}/lilypond |
195 | %dir %{_libdir}/lilypond/%{version} | |
196 | %dir %{_libdir}/lilypond/%{version}/python | |
197 | %attr(755,root,root) %{_libdir}/lilypond/%{version}/python/midi.so | |
9079e26d JB |
198 | %dir %{_datadir}/lilypond |
199 | %dir %{_datadir}/lilypond/%{version} | |
ade6ec15 | 200 | %{_datadir}/lilypond/%{version}/fonts |
9079e26d JB |
201 | %{_datadir}/lilypond/%{version}/ly |
202 | %{_datadir}/lilypond/%{version}/ps | |
203 | %dir %{_datadir}/lilypond/%{version}/python | |
e54f3148 | 204 | %{_datadir}/lilypond/%{version}/python/*.py |
205 | %{_datadir}/lilypond/%{version}/python/*.pyc | |
9079e26d | 206 | %{_datadir}/lilypond/%{version}/scm |
9079e26d | 207 | %{_infodir}/*.info* |
889dbc87 | 208 | %{_mandir}/man1/* |
e54f3148 | 209 | |
c883b725 | 210 | %{texfontsdir}/source/lilypond |
07662556 | 211 | %{texfontsdir}/tfm/lilypond |
c883b725 JB |
212 | %{texfontsdir}/type1/lilypond |
213 | %{texmfdir}/dvips/lilypond | |
214 | %{texmfdir}/tex/lilypond | |
531a84c4 | 215 | |
04517bc7 | 216 | %{_datadir}/omf/lilypond |
dca87fd4 | 217 | %{?with_doc:/usr/share/doc/lilypond} |
1596742a JB |
218 | |
219 | %files -n emacs-lilypond-mode-pkg | |
220 | %defattr(644,root,root,755) | |
221 | %{_datadir}/emacs/site-lisp/*.el | |
ade6ec15 JB |
222 | |
223 | %files -n vim-syntax-lilypond | |
224 | %defattr(644,root,root,755) | |
225 | %{_datadir}/vim/vimfiles/compiler/lilypond.vim | |
226 | %{_datadir}/vim/vimfiles/ftdetect/lilypond.vim | |
227 | %{_datadir}/vim/vimfiles/ftplugin/lilypond.vim | |
228 | %{_datadir}/vim/vimfiles/indent/lilypond.vim | |
229 | %{_datadir}/vim/vimfiles/syntax/lilypond* |