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