]> git.pld-linux.org Git - packages/lilypond.git/blame - lilypond.spec
Release: 1
[packages/lilypond.git] / lilypond.spec
CommitLineData
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 6Summary: Music typesetter
7d510172 7Summary(pl.UTF-8): Program do składania nut
d2d2e1b7 8Name: lilypond
8bee7355 9Version: 2.19.33
822dbdaa 10Release: 1
d2d2e1b7 11License: GPL
12Group: Applications/Sound
8bee7355
JK
13Source0: http://download.linuxaudio.org/lilypond/sources/v2.19/%{name}-%{version}.tar.gz
14# Source0-md5: 942ac963423b08903d0df21fb22fbe70
04517bc7
JB
15Patch0: %{name}-info.patch
16Patch1: %{name}-sh.patch
21da3477 17Patch2: %{name}-aclocal.patch
e54f3148 18URL: http://www.lilypond.org/
6969eca1 19BuildRequires: autoconf
62c8bd6d 20BuildRequires: automake
ade6ec15 21BuildRequires: bison >= 1.29
0ef28866 22BuildRequires: flex >= 2.5.4a
743d93b2 23BuildRequires: fontconfig
8bee7355
JK
24BuildRequires: fontconfig-devel >= 1:2.4.0
25BuildRequires: fontforge >= 20110222
26BuildRequires: fonts-TTF-DejaVu
07662556 27BuildRequires: fonts-Type1-urw
8bee7355 28BuildRequires: freetype >= 1:2.1.10
ed08bb2a 29BuildRequires: gettext-tools >= 0.17
9e0d95d8 30BuildRequires: ghostscript-fonts-std
e79ac9a0 31%if %{with guile2}
8bee7355 32BuildRequires: guile-devel >= 5:2.0.0
e79ac9a0
JK
33%else
34BuildRequires: guile1-devel
35%endif
889dbc87 36BuildRequires: kpathsea-devel
07662556 37BuildRequires: libstdc++-devel >= 5:3.4
07662556
TP
38BuildRequires: pango-devel >= 1.12.0
39BuildRequires: perl-base
ade6ec15 40BuildRequires: pkgconfig >= 1:0.9.0
8bee7355 41BuildRequires: python-devel >= 1:2.4
6969eca1 42BuildRequires: python-modules
43BuildRequires: rpm-pythonprov
8bee7355 44BuildRequires: t1utils
07662556 45BuildRequires: texinfo >= 4.11
8bee7355 46BuildRequires: texlive-fonts-other
6969eca1 47BuildRequires: texlive-metapost
8bee7355
JK
48%if %{with doc}
49BuildRequires: ImageMagick
50BuildRequires: ImageMagick-coder-png
51BuildRequires: dblatex
52BuildRequires: ghostscript >= 8.60
53BuildRequires: guile1 >= 1.8.0
54BuildRequires: netpbm-progs
55BuildRequires: rsync
56BuildRequires: texi2html
57BuildRequires: texinfo
58BuildRequires: texinfo-texi2dvi
59BuildRequires: texlive
60BuildRequires: texlive-fonts-lh
61BuildRequires: texlive-format-pdflatex
62BuildRequires: texlive-latex-bibtex
63BuildRequires: zip
7e33022f 64%endif
8bee7355
JK
65BuildConflicts: lilypond < 1.6.0
66Requires: fonts-TTF-DejaVu
67Requires: ghostscript >= 8.60
68Requires: python-modules >= 1:2.4
d2d2e1b7 69BuildRoot: %{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 80LilyPond is a music typesetter. It produces beautiful sheet music
81using a high level description file as input. It excels at typesetting
82classical music, but you can also print pop-songs. With LilyPond we
83hope to make music publication software available to anyone on the
84internet.
85
5d405090
JR
86%description -l pl.UTF-8
87LilyPond jest programem do składu muzycznego. Produkuje piękne
88partytury używając języka wysokiego poziomu jako wejście. Służy przede
89wszystkim do składania nut muzyki klasycznej, ale można drukować także
90piosenki pop. Autorzy udostępniają LilyPond z nadzieją dostarczenia
a7c4634e
JB
91wszystkim oprogramowania do publikacji muzycznych.
92
1596742a
JB
93%package -n emacs-lilypond-mode-pkg
94Summary: LilyPond mode for Emacs
7d510172 95Summary(pl.UTF-8): Tryb edycji plików LilyPond dla Emacsa
1596742a
JB
96Group: Applications/Editors/Emacs
97Requires: %{name} = %{version}-%{release}
98Requires: emacs
99
100%description -n emacs-lilypond-mode-pkg
101LilyPond mode for Emacs.
102
5d405090
JR
103%description -n emacs-lilypond-mode-pkg -l pl.UTF-8
104Tryb edycji plików LilyPond dla Emacsa.
1596742a 105
ade6ec15
JB
106%package -n vim-syntax-lilypond
107Summary: LilyPond files support for Vim
7d510172 108Summary(pl.UTF-8): Obsługa plików LilyPonda dla Vima
ade6ec15
JB
109Group: Applications/Editors/Vim
110Requires: %{name} = %{version}-%{release}
36009b58 111Requires: vim-rt >= 4:6.4.001-2
ade6ec15
JB
112
113%description -n vim-syntax-lilypond
114LilyPond files support for Vim.
115
5d405090
JR
116%description -n vim-syntax-lilypond -l pl.UTF-8
117Obsł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
135rm -rf $RPM_BUILD_ROOT
07662556 136install -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
147cp -aL out/share/lilypond/current/fonts/tfm \
148 $RPM_BUILD_ROOT%{texfontsdir}/tfm/lilypond
e54f3148 149
ade6ec15 150find $RPM_BUILD_ROOT -name fonts.cache-1 | xargs rm -f
889dbc87 151
ade6ec15 152# ?
531a84c4 153mv -f $RPM_BUILD_ROOT%{_datadir}/lilypond/%{version}/fonts/source \
d6ab7bee 154 $RPM_BUILD_ROOT%{texfontsdir}/source/lilypond
ade6ec15 155# for latex and dvips
c883b725 156mv -f $RPM_BUILD_ROOT%{_datadir}/lilypond/%{version}/tex \
d6ab7bee 157 $RPM_BUILD_ROOT%{texmfdir}/tex/lilypond
ade6ec15
JB
158# both for lilypond and dvips
159ln -sf %{_datadir}/lilypond/%{version}/fonts/type1 \
160 $RPM_BUILD_ROOT%{texfontsdir}/type1/lilypond
07662556
TP
161ln -sf %{_datadir}/lilypond/%{version}/ps \
162 $RPM_BUILD_ROOT%{texmfdir}/dvips/lilypond
163rm -rf $RPM_BUILD_ROOT%{_datadir}/lilypond/%{version}/dvips
3da54999 164
ade6ec15
JB
165# vim syntax/etc. files
166install -d $RPM_BUILD_ROOT%{_datadir}/vim
167mv -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
171rm -rf $RPM_BUILD_ROOT%{_datadir}/lilypond/%{version}/make
0ef28866 172
889dbc87 173%find_lang %{name}
d2d2e1b7 174
175%clean
9079e26d 176rm -rf $RPM_BUILD_ROOT
d2d2e1b7 177
b82310a7
TP
178%pre
179test -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*
This page took 0.115948 seconds and 4 git commands to generate.