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