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