]> git.pld-linux.org Git - packages/lilypond.git/blame - lilypond.spec
- updated to 2.20.0
[packages/lilypond.git] / lilypond.spec
CommitLineData
ade6ec15
JB
1#
2# Conditional build:
d31b09e8 3%bcond_without guile2 # (experimental) guile2 support
e79ac9a0 4%bcond_without doc # build docs
ade6ec15 5#
d2d2e1b7 6Summary: Music typesetter
7d510172 7Summary(pl.UTF-8): Program do składania nut
d2d2e1b7 8Name: lilypond
d31b09e8
JB
9# note: 2.20.x is stable, 2.21.x devel
10Version: 2.20.0
822dbdaa 11Release: 1
d31b09e8 12License: GPL v3+ with font exception
d2d2e1b7 13Group: Applications/Sound
d31b09e8
JB
14Source0: https://lilypond.org/download/sources/v2.20/%{name}-%{version}.tar.gz
15# Source0-md5: 65da6124713144cc63fe8ec2847ada8e
04517bc7
JB
16Patch0: %{name}-info.patch
17Patch1: %{name}-sh.patch
21da3477 18Patch2: %{name}-aclocal.patch
d31b09e8 19Patch3: %{name}-texi2html.patch
e54f3148 20URL: http://www.lilypond.org/
d31b09e8 21BuildRequires: autoconf >= 2.60
62c8bd6d 22BuildRequires: automake
ade6ec15 23BuildRequires: bison >= 1.29
0ef28866 24BuildRequires: flex >= 2.5.4a
d31b09e8 25BuildRequires: fontconfig >= 1:2.4.0
8bee7355
JK
26BuildRequires: fontconfig-devel >= 1:2.4.0
27BuildRequires: fontforge >= 20110222
28BuildRequires: fonts-TTF-DejaVu
07662556 29BuildRequires: fonts-Type1-urw
8bee7355 30BuildRequires: freetype >= 1:2.1.10
ed08bb2a 31BuildRequires: gettext-tools >= 0.17
9e0d95d8 32BuildRequires: ghostscript-fonts-std
d31b09e8 33BuildRequires: glib2-devel >= 1:2.38
e79ac9a0 34%if %{with guile2}
d31b09e8
JB
35BuildRequires: guile-devel >= 5:2.0.7
36BuildRequires: guile-devel < 5:2.3.0
e79ac9a0 37%else
d31b09e8 38BuildRequires: guile1-devel >= 1.8.2
e79ac9a0 39%endif
889dbc87 40BuildRequires: kpathsea-devel
07662556 41BuildRequires: libstdc++-devel >= 5:3.4
d31b09e8 42BuildRequires: pango-devel >= 1:1.38.0
07662556 43BuildRequires: perl-base
ade6ec15 44BuildRequires: pkgconfig >= 1:0.9.0
8bee7355 45BuildRequires: python-devel >= 1:2.4
6969eca1 46BuildRequires: python-modules
47BuildRequires: rpm-pythonprov
8bee7355 48BuildRequires: t1utils
d31b09e8 49BuildRequires: texinfo >= 6.1
8bee7355 50BuildRequires: texlive-fonts-other
6969eca1 51BuildRequires: texlive-metapost
8bee7355
JK
52%if %{with doc}
53BuildRequires: ImageMagick
54BuildRequires: ImageMagick-coder-png
d31b09e8
JB
55BuildRequires: dblatex >= 0.1.4
56BuildRequires: ghostscript >= 9.20
8bee7355
JK
57BuildRequires: netpbm-progs
58BuildRequires: rsync
d31b09e8
JB
59BuildRequires: texi2html >= 1.82
60BuildRequires: texinfo-texi2dvi >= 6.1
61# `kpsewhich tex epsf`
8bee7355 62BuildRequires: texlive
d31b09e8 63# `kpsewhich -format=mf fikparm`
8bee7355 64BuildRequires: texlive-fonts-lh
8bee7355 65BuildRequires: texlive-latex-bibtex
d31b09e8 66BuildRequires: texlive-xetex
8bee7355 67BuildRequires: zip
7e33022f 68%endif
8bee7355
JK
69BuildConflicts: lilypond < 1.6.0
70Requires: fonts-TTF-DejaVu
d31b09e8
JB
71Requires: ghostscript >= 9.20
72Requires: glib2 >= 1:2.38
73Requires: pango >= 1:1.38.0
8bee7355 74Requires: python-modules >= 1:2.4
d2d2e1b7 75BuildRoot: %{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 86LilyPond is a music typesetter. It produces beautiful sheet music
87using a high level description file as input. It excels at typesetting
88classical music, but you can also print pop-songs. With LilyPond we
89hope to make music publication software available to anyone on the
90internet.
91
5d405090
JR
92%description -l pl.UTF-8
93LilyPond jest programem do składu muzycznego. Produkuje piękne
94partytury używając języka wysokiego poziomu jako wejście. Służy przede
95wszystkim do składania nut muzyki klasycznej, ale można drukować także
96piosenki pop. Autorzy udostępniają LilyPond z nadzieją dostarczenia
a7c4634e
JB
97wszystkim oprogramowania do publikacji muzycznych.
98
1596742a
JB
99%package -n emacs-lilypond-mode-pkg
100Summary: LilyPond mode for Emacs
7d510172 101Summary(pl.UTF-8): Tryb edycji plików LilyPond dla Emacsa
1596742a
JB
102Group: Applications/Editors/Emacs
103Requires: %{name} = %{version}-%{release}
104Requires: emacs
105
106%description -n emacs-lilypond-mode-pkg
107LilyPond mode for Emacs.
108
5d405090
JR
109%description -n emacs-lilypond-mode-pkg -l pl.UTF-8
110Tryb edycji plików LilyPond dla Emacsa.
1596742a 111
ade6ec15
JB
112%package -n vim-syntax-lilypond
113Summary: LilyPond files support for Vim
7d510172 114Summary(pl.UTF-8): Obsługa plików LilyPonda dla Vima
ade6ec15
JB
115Group: Applications/Editors/Vim
116Requires: %{name} = %{version}-%{release}
36009b58 117Requires: vim-rt >= 4:6.4.001-2
ade6ec15
JB
118
119%description -n vim-syntax-lilypond
120LilyPond files support for Vim.
121
5d405090
JR
122%description -n vim-syntax-lilypond -l pl.UTF-8
123Obsł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
143rm -rf $RPM_BUILD_ROOT
07662556 144install -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
155cp -aL out/share/lilypond/current/fonts/tfm \
156 $RPM_BUILD_ROOT%{texfontsdir}/tfm/lilypond
e54f3148 157
ade6ec15 158find $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
167ln -sf %{_datadir}/lilypond/%{version}/fonts/type1 \
168 $RPM_BUILD_ROOT%{texfontsdir}/type1/lilypond
07662556
TP
169ln -sf %{_datadir}/lilypond/%{version}/ps \
170 $RPM_BUILD_ROOT%{texmfdir}/dvips/lilypond
3da54999 171
ade6ec15
JB
172# vim syntax/etc. files
173install -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 180rm -rf $RPM_BUILD_ROOT
d2d2e1b7 181
b82310a7
TP
182%pre
183test -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*
This page took 0.064756 seconds and 4 git commands to generate.