]>
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 JB |
8 | # note: 2.22.x is stable, 2.23.x devel |
9 | Version: 2.22.0 | |
822dbdaa | 10 | Release: 1 |
d31b09e8 | 11 | License: GPL v3+ with font exception |
d2d2e1b7 | 12 | Group: Applications/Sound |
4e10dce8 JB |
13 | Source0: https://lilypond.org/download/sources/v2.22/%{name}-%{version}.tar.gz |
14 | # Source0-md5: 4b0d869873b0120bda2e8bd94e1a628a | |
04517bc7 JB |
15 | Patch0: %{name}-info.patch |
16 | Patch1: %{name}-sh.patch | |
21da3477 | 17 | Patch2: %{name}-aclocal.patch |
4e10dce8 | 18 | Patch3: %{name}-mf.patch |
e54f3148 | 19 | URL: http://www.lilypond.org/ |
d31b09e8 | 20 | BuildRequires: autoconf >= 2.60 |
62c8bd6d | 21 | BuildRequires: automake |
4e10dce8 | 22 | BuildRequires: bison >= 2.4.1 |
0ef28866 | 23 | BuildRequires: flex >= 2.5.4a |
d31b09e8 | 24 | BuildRequires: fontconfig >= 1:2.4.0 |
8bee7355 JK |
25 | BuildRequires: fontconfig-devel >= 1:2.4.0 |
26 | BuildRequires: fontforge >= 20110222 | |
27 | BuildRequires: fonts-TTF-DejaVu | |
07662556 | 28 | BuildRequires: fonts-Type1-urw |
8bee7355 | 29 | BuildRequires: freetype >= 1:2.1.10 |
ed08bb2a | 30 | BuildRequires: gettext-tools >= 0.17 |
9e0d95d8 | 31 | BuildRequires: ghostscript-fonts-std |
d31b09e8 | 32 | BuildRequires: glib2-devel >= 1:2.38 |
4e10dce8 | 33 | BuildRequires: guile-devel >= 5:1.8.2 |
889dbc87 | 34 | BuildRequires: kpathsea-devel |
07662556 | 35 | BuildRequires: libstdc++-devel >= 5:3.4 |
d31b09e8 | 36 | BuildRequires: pango-devel >= 1:1.38.0 |
07662556 | 37 | BuildRequires: perl-base |
ade6ec15 | 38 | BuildRequires: pkgconfig >= 1:0.9.0 |
4e10dce8 JB |
39 | BuildRequires: python3-devel >= 1:3.5 |
40 | BuildRequires: python3-modules >= 1:3.5 | |
6969eca1 | 41 | BuildRequires: rpm-pythonprov |
8bee7355 | 42 | BuildRequires: t1utils |
d31b09e8 | 43 | BuildRequires: texinfo >= 6.1 |
8bee7355 | 44 | BuildRequires: texlive-fonts-other |
6969eca1 | 45 | BuildRequires: texlive-metapost |
8bee7355 JK |
46 | %if %{with doc} |
47 | BuildRequires: ImageMagick | |
48 | BuildRequires: ImageMagick-coder-png | |
d31b09e8 JB |
49 | BuildRequires: dblatex >= 0.1.4 |
50 | BuildRequires: ghostscript >= 9.20 | |
8bee7355 JK |
51 | BuildRequires: netpbm-progs |
52 | BuildRequires: rsync | |
d31b09e8 JB |
53 | BuildRequires: texi2html >= 1.82 |
54 | BuildRequires: texinfo-texi2dvi >= 6.1 | |
55 | # `kpsewhich tex epsf` | |
8bee7355 | 56 | BuildRequires: texlive |
d31b09e8 | 57 | # `kpsewhich -format=mf fikparm` |
8bee7355 | 58 | BuildRequires: texlive-fonts-lh |
8bee7355 | 59 | BuildRequires: texlive-latex-bibtex |
d31b09e8 | 60 | BuildRequires: texlive-xetex |
8bee7355 | 61 | BuildRequires: zip |
7e33022f | 62 | %endif |
8bee7355 JK |
63 | BuildConflicts: lilypond < 1.6.0 |
64 | Requires: fonts-TTF-DejaVu | |
d31b09e8 JB |
65 | Requires: ghostscript >= 9.20 |
66 | Requires: glib2 >= 1:2.38 | |
67 | Requires: pango >= 1:1.38.0 | |
4e10dce8 | 68 | Requires: python3-modules >= 1:3.5 |
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 | |
d31b09e8 | 121 | %patch0 -p1 |
04517bc7 | 122 | %patch1 -p1 |
21da3477 | 123 | %patch2 -p1 |
d31b09e8 | 124 | %patch3 -p1 |
d2d2e1b7 | 125 | |
126 | %build | |
ade6ec15 | 127 | %{__autoconf} |
9ffc1676 | 128 | %configure \ |
4e10dce8 | 129 | PYTHON=%{__python3} \ |
ade6ec15 | 130 | %{?debug:--disable-optimising} \ |
4e10dce8 | 131 | --with-texgyre-dir=%{texfontsdir}/opentype/public/tex-gyre/ \ |
8bee7355 | 132 | %{__enable_disable doc documentation} |
0ef76543 | 133 | %{__make} -j1 |
d2d2e1b7 | 134 | |
135 | %install | |
136 | rm -rf $RPM_BUILD_ROOT | |
4e10dce8 | 137 | install -d $RPM_BUILD_ROOT{%{texmfdir}/{dvips,tex},%{texfontsdir}/{source,tfm/lilypond,type1/lilypond}} |
d2d2e1b7 | 138 | |
889dbc87 | 139 | %{__make} install \ |
ade6ec15 | 140 | DESTDIR=$RPM_BUILD_ROOT |
8bee7355 | 141 | |
4e10dce8 JB |
142 | cp -p mf/out/*.tfm $RPM_BUILD_ROOT%{texfontsdir}/tfm/lilypond |
143 | cp -p mf/out/*.pfb $RPM_BUILD_ROOT%{texfontsdir}/type1/lilypond | |
e54f3148 | 144 | |
ade6ec15 | 145 | find $RPM_BUILD_ROOT -name fonts.cache-1 | xargs rm -f |
889dbc87 | 146 | |
ade6ec15 | 147 | # ? |
d31b09e8 | 148 | %{__mv} $RPM_BUILD_ROOT%{_datadir}/lilypond/%{version}/fonts/source \ |
d6ab7bee | 149 | $RPM_BUILD_ROOT%{texfontsdir}/source/lilypond |
ade6ec15 | 150 | # for latex and dvips |
d31b09e8 | 151 | %{__mv} $RPM_BUILD_ROOT%{_datadir}/lilypond/%{version}/tex \ |
d6ab7bee | 152 | $RPM_BUILD_ROOT%{texmfdir}/tex/lilypond |
ade6ec15 | 153 | # both for lilypond and dvips |
07662556 TP |
154 | ln -sf %{_datadir}/lilypond/%{version}/ps \ |
155 | $RPM_BUILD_ROOT%{texmfdir}/dvips/lilypond | |
3da54999 | 156 | |
ade6ec15 JB |
157 | # vim syntax/etc. files |
158 | install -d $RPM_BUILD_ROOT%{_datadir}/vim | |
d31b09e8 | 159 | %{__mv} $RPM_BUILD_ROOT%{_datadir}/lilypond/%{version}/vim \ |
ade6ec15 JB |
160 | $RPM_BUILD_ROOT%{_datadir}/vim/vimfiles |
161 | ||
889dbc87 | 162 | %find_lang %{name} |
d2d2e1b7 | 163 | |
164 | %clean | |
9079e26d | 165 | rm -rf $RPM_BUILD_ROOT |
d2d2e1b7 | 166 | |
b82310a7 TP |
167 | %pre |
168 | test -h %{texmfdir}/dvips/lilypond || rm -rf %{texmfdir}/dvips/lilypond | |
169 | ||
889dbc87 JB |
170 | %post |
171 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1 | |
8bee7355 JK |
172 | [ ! -x %{_bindir}/texhash ] || %{_bindir}/texhash 1>&2 |
173 | [ ! -x %{_bindir}/scrollkeeper-update ] || %{_bindir}/scrollkeeper-update | |
889dbc87 JB |
174 | |
175 | %postun | |
176 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1 | |
8bee7355 JK |
177 | [ ! -x %{_bindir}/texhash ] || %{_bindir}/texhash 1>&2 |
178 | [ ! -x %{_bindir}/scrollkeeper-update ] || %{_bindir}/scrollkeeper-update | |
889dbc87 JB |
179 | |
180 | %files -f %{name}.lang | |
d2d2e1b7 | 181 | %defattr(644,root,root,755) |
4e10dce8 | 182 | %doc AUTHORS.txt DEDICATION LICENSE* NEWS.txt README.md ROADMAP |
d3bdc0ed JB |
183 | %attr(755,root,root) %{_bindir}/abc2ly |
184 | %attr(755,root,root) %{_bindir}/convert-ly | |
185 | %attr(755,root,root) %{_bindir}/etf2ly | |
07662556 | 186 | %attr(755,root,root) %{_bindir}/lilymidi |
d3bdc0ed JB |
187 | %attr(755,root,root) %{_bindir}/lilypond |
188 | %attr(755,root,root) %{_bindir}/lilypond-book | |
189 | %attr(755,root,root) %{_bindir}/lilypond-invoke-editor | |
07662556 | 190 | %attr(755,root,root) %{_bindir}/lilysong |
d3bdc0ed JB |
191 | %attr(755,root,root) %{_bindir}/midi2ly |
192 | %attr(755,root,root) %{_bindir}/musicxml2ly | |
9079e26d JB |
193 | %dir %{_datadir}/lilypond |
194 | %dir %{_datadir}/lilypond/%{version} | |
ade6ec15 | 195 | %{_datadir}/lilypond/%{version}/fonts |
9079e26d JB |
196 | %{_datadir}/lilypond/%{version}/ly |
197 | %{_datadir}/lilypond/%{version}/ps | |
4e10dce8 | 198 | %{_datadir}/lilypond/%{version}/python |
9079e26d | 199 | %{_datadir}/lilypond/%{version}/scm |
e54f3148 | 200 | |
c883b725 | 201 | %{texfontsdir}/source/lilypond |
07662556 | 202 | %{texfontsdir}/tfm/lilypond |
c883b725 JB |
203 | %{texfontsdir}/type1/lilypond |
204 | %{texmfdir}/dvips/lilypond | |
205 | %{texmfdir}/tex/lilypond | |
531a84c4 | 206 | |
8bee7355 | 207 | %if %{with doc} |
d31b09e8 JB |
208 | %{_infodir}/lilypond-*.info* |
209 | %{_infodir}/music-glossary.info* | |
210 | %{_mandir}/man1/abc2ly.1* | |
211 | %{_mandir}/man1/convert-ly.1* | |
212 | %{_mandir}/man1/etf2ly.1* | |
213 | %{_mandir}/man1/lilymidi.1* | |
214 | %{_mandir}/man1/lilypond.1* | |
215 | %{_mandir}/man1/lilypond-book.1* | |
216 | %{_mandir}/man1/lilypond-invoke-editor.1* | |
217 | %{_mandir}/man1/lilysong.1* | |
218 | %{_mandir}/man1/midi2ly.1* | |
219 | %{_mandir}/man1/musicxml2ly.1* | |
8bee7355 | 220 | %endif |
1596742a JB |
221 | |
222 | %files -n emacs-lilypond-mode-pkg | |
223 | %defattr(644,root,root,755) | |
d31b09e8 | 224 | %{_datadir}/emacs/site-lisp/lilypond-*.el |
ade6ec15 JB |
225 | |
226 | %files -n vim-syntax-lilypond | |
227 | %defattr(644,root,root,755) | |
228 | %{_datadir}/vim/vimfiles/compiler/lilypond.vim | |
229 | %{_datadir}/vim/vimfiles/ftdetect/lilypond.vim | |
230 | %{_datadir}/vim/vimfiles/ftplugin/lilypond.vim | |
231 | %{_datadir}/vim/vimfiles/indent/lilypond.vim | |
232 | %{_datadir}/vim/vimfiles/syntax/lilypond* |