]> git.pld-linux.org Git - packages/lilypond.git/blame - lilypond.spec
- build fixes
[packages/lilypond.git] / lilypond.spec
CommitLineData
1c8efec8
SS
1# TODO:
2# - probably gui bcond is meaningless
ade6ec15
JB
3#
4# Conditional build:
5%bcond_with gui # enable experimental GUI
1c8efec8 6%bcond_with docs # build docs
ade6ec15 7#
d2d2e1b7 8Summary: Music typesetter
7d510172 9Summary(pl.UTF-8): Program do składania nut
d2d2e1b7 10Name: lilypond
07662556
TP
11Version: 2.12.2
12Release: 1
d2d2e1b7 13License: GPL
14Group: Applications/Sound
07662556
TP
15Source0: http://lilypond.org/download/v2.12/%{name}-%{version}.tar.gz
16# Source0-md5: 681dfbecf8a3710d1400cf9488be716b
04517bc7
JB
17Patch0: %{name}-info.patch
18Patch1: %{name}-sh.patch
9e0d95d8 19Patch3: %{name}-afm.patch
96ae5dcc
JK
20Patch4: %{name}-aclocal.patch
21Patch5: %{name}-bad_cast.patch
e54f3148 22URL: http://www.lilypond.org/
1c8efec8
SS
23%{?with_docs:BuildRequires: ImageMagick}
24%{?with_docs:BuildRequires: ImageMagick-coder-png}
62c8bd6d 25BuildRequires: automake
ade6ec15 26BuildRequires: bison >= 1.29
0ef28866 27BuildRequires: flex >= 2.5.4a
743d93b2 28BuildRequires: fontconfig
ade6ec15 29BuildRequires: fontconfig-devel >= 1:2.2.0
07662556
TP
30BuildRequires: fontforge >= 20060125
31BuildRequires: fonts-Type1-urw
32BuildRequires: gettext-devel >= 0.17
ade6ec15 33BuildRequires: ghostscript >= 8.15
07662556 34%{?with_docs:BuildRequires: ghostscript >= 8.60}
9e0d95d8 35BuildRequires: ghostscript-fonts-std
ade6ec15 36%{?with_gui:BuildRequires: gtk+2-devel >= 2:2.4.0}
07662556 37BuildRequires: guile-devel >= 5:1.8.2
889dbc87
JB
38BuildRequires: kpathsea-devel
39BuildRequires: libltdl-devel
07662556 40BuildRequires: libstdc++-devel >= 5:3.4
d6ab7bee 41BuildRequires: mftrace >= 1.1.19
1c8efec8 42%{?with_docs:BuildRequires: netpbm-progs}
07662556
TP
43BuildRequires: pango-devel >= 1.12.0
44BuildRequires: perl-base
ade6ec15 45BuildRequires: pkgconfig >= 1:0.9.0
07662556 46BuildRequires: python-devel >= 2.4
1c8efec8 47%{?with_docs:BuildRequires: rsync}
96ae5dcc
JK
48BuildRequires: texlive-dvips
49BuildRequires: texlive-fonts-cm
50BuildRequires: texlive-fonts-cmextra
51BuildRequires: texlive-fonts-jknappen
52%{?with_docs:BuildRequires: texlive-latex-bibtex}
53BuildRequires: texlive-metapost
07662556 54BuildRequires: texinfo >= 4.11
1c8efec8 55%{?with_docs:BuildRequires: texinfo-texi2dvi}
9079e26d 56BuildConflicts: lilypond < 1.6.0
ade6ec15 57Requires: ghostscript >= 8.15
07662556
TP
58Requires: guile >= 5:1.8.2
59Requires: python >= 2.4
96ae5dcc 60Requires: texlive-latex
d2d2e1b7 61BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
62
07662556 63%define texmfdir %{_datadir}/texmf
c883b725 64%define texfontsdir %{texmfdir}/fonts
889dbc87 65
d2d2e1b7 66%description
d2d2e1b7 67LilyPond is a music typesetter. It produces beautiful sheet music
68using a high level description file as input. It excels at typesetting
69classical music, but you can also print pop-songs. With LilyPond we
70hope to make music publication software available to anyone on the
71internet.
72
5d405090
JR
73%description -l pl.UTF-8
74LilyPond jest programem do składu muzycznego. Produkuje piękne
75partytury używając języka wysokiego poziomu jako wejście. Służy przede
76wszystkim do składania nut muzyki klasycznej, ale można drukować także
77piosenki pop. Autorzy udostępniają LilyPond z nadzieją dostarczenia
a7c4634e
JB
78wszystkim oprogramowania do publikacji muzycznych.
79
1596742a
JB
80%package -n emacs-lilypond-mode-pkg
81Summary: LilyPond mode for Emacs
7d510172 82Summary(pl.UTF-8): Tryb edycji plików LilyPond dla Emacsa
1596742a
JB
83Group: Applications/Editors/Emacs
84Requires: %{name} = %{version}-%{release}
85Requires: emacs
86
87%description -n emacs-lilypond-mode-pkg
88LilyPond mode for Emacs.
89
5d405090
JR
90%description -n emacs-lilypond-mode-pkg -l pl.UTF-8
91Tryb edycji plików LilyPond dla Emacsa.
1596742a 92
ade6ec15
JB
93%package -n vim-syntax-lilypond
94Summary: LilyPond files support for Vim
7d510172 95Summary(pl.UTF-8): Obsługa plików LilyPonda dla Vima
ade6ec15
JB
96Group: Applications/Editors/Vim
97Requires: %{name} = %{version}-%{release}
36009b58 98Requires: vim-rt >= 4:6.4.001-2
ade6ec15
JB
99
100%description -n vim-syntax-lilypond
101LilyPond files support for Vim.
102
5d405090
JR
103%description -n vim-syntax-lilypond -l pl.UTF-8
104Obsługa plików LilyPonda dla Vima.
ade6ec15 105
d2d2e1b7 106%prep
107%setup -q
04517bc7
JB
108%patch0 -p1
109%patch1 -p1
9e0d95d8 110%patch3 -p1
96ae5dcc
JK
111%patch4 -p1
112%patch5 -p1
d2d2e1b7 113
114%build
62c8bd6d 115cp -f /usr/share/automake/config.* stepmake/bin
ade6ec15 116%{__autoconf}
9ffc1676 117%configure \
ade6ec15
JB
118 %{?debug:--disable-optimising} \
119 %{?with_gui:--enable-gui}
0ef76543 120%{__make} -j1
1c8efec8 121%{?with_docs:%{__make} -j1 web}
d2d2e1b7 122
123%install
124rm -rf $RPM_BUILD_ROOT
07662556 125install -d $RPM_BUILD_ROOT{%{texmfdir}/{dvips,tex},%{texfontsdir}/{source,tfm,type1}}
d2d2e1b7 126
889dbc87 127%{__make} install \
ade6ec15 128 DESTDIR=$RPM_BUILD_ROOT
1c8efec8
SS
129%if %{with docs}
130%{__make} -j1 web-install \
131 DESTDIR=$RPM_BUILD_ROOT
132%endif
07662556
TP
133cp -aL out/share/lilypond/current/fonts/tfm \
134 $RPM_BUILD_ROOT%{texfontsdir}/tfm/lilypond
e54f3148 135
ade6ec15 136find $RPM_BUILD_ROOT -name fonts.cache-1 | xargs rm -f
889dbc87 137
ade6ec15 138# ?
531a84c4 139mv -f $RPM_BUILD_ROOT%{_datadir}/lilypond/%{version}/fonts/source \
d6ab7bee 140 $RPM_BUILD_ROOT%{texfontsdir}/source/lilypond
ade6ec15 141# for latex and dvips
c883b725 142mv -f $RPM_BUILD_ROOT%{_datadir}/lilypond/%{version}/tex \
d6ab7bee 143 $RPM_BUILD_ROOT%{texmfdir}/tex/lilypond
ade6ec15
JB
144# both for lilypond and dvips
145ln -sf %{_datadir}/lilypond/%{version}/fonts/type1 \
146 $RPM_BUILD_ROOT%{texfontsdir}/type1/lilypond
07662556
TP
147ln -sf %{_datadir}/lilypond/%{version}/ps \
148 $RPM_BUILD_ROOT%{texmfdir}/dvips/lilypond
149rm -rf $RPM_BUILD_ROOT%{_datadir}/lilypond/%{version}/dvips
3da54999 150
ade6ec15
JB
151# vim syntax/etc. files
152install -d $RPM_BUILD_ROOT%{_datadir}/vim
153mv -f $RPM_BUILD_ROOT%{_datadir}/lilypond/%{version}/vim \
154 $RPM_BUILD_ROOT%{_datadir}/vim/vimfiles
155
156# lilypond/stepmake build system - not needed at runtime
157rm -rf $RPM_BUILD_ROOT%{_datadir}/lilypond/%{version}/make
0ef28866 158
889dbc87 159%find_lang %{name}
d2d2e1b7 160
161%clean
9079e26d 162rm -rf $RPM_BUILD_ROOT
d2d2e1b7 163
b82310a7
TP
164%pre
165test -h %{texmfdir}/dvips/lilypond || rm -rf %{texmfdir}/dvips/lilypond
166
889dbc87
JB
167%post
168[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
8eef6b13 169[ ! -x /usr/bin/texhash ] || /usr/bin/texhash 1>&2
c883b725 170[ ! -x /usr/bin/scrollkeeper-update ] || /usr/bin/scrollkeeper-update
889dbc87
JB
171
172%postun
173[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
8eef6b13 174[ ! -x /usr/bin/texhash ] || /usr/bin/texhash 1>&2
c883b725 175[ ! -x /usr/bin/scrollkeeper-update ] || /usr/bin/scrollkeeper-update
889dbc87
JB
176
177%files -f %{name}.lang
d2d2e1b7 178%defattr(644,root,root,755)
07662556 179%doc AUTHORS.txt DEDICATION NEWS.txt README.txt THANKS
d3bdc0ed
JB
180%attr(755,root,root) %{_bindir}/abc2ly
181%attr(755,root,root) %{_bindir}/convert-ly
182%attr(755,root,root) %{_bindir}/etf2ly
07662556 183%attr(755,root,root) %{_bindir}/lilymidi
d3bdc0ed
JB
184%attr(755,root,root) %{_bindir}/lilypond
185%attr(755,root,root) %{_bindir}/lilypond-book
186%attr(755,root,root) %{_bindir}/lilypond-invoke-editor
07662556 187%attr(755,root,root) %{_bindir}/lilysong
d3bdc0ed
JB
188%attr(755,root,root) %{_bindir}/midi2ly
189%attr(755,root,root) %{_bindir}/musicxml2ly
04517bc7
JB
190%dir %{_libdir}/lilypond
191%dir %{_libdir}/lilypond/%{version}
192%dir %{_libdir}/lilypond/%{version}/python
193%attr(755,root,root) %{_libdir}/lilypond/%{version}/python/midi.so
9079e26d
JB
194%dir %{_datadir}/lilypond
195%dir %{_datadir}/lilypond/%{version}
ade6ec15 196%{_datadir}/lilypond/%{version}/fonts
9079e26d
JB
197%{_datadir}/lilypond/%{version}/ly
198%{_datadir}/lilypond/%{version}/ps
199%dir %{_datadir}/lilypond/%{version}/python
e54f3148 200%{_datadir}/lilypond/%{version}/python/*.py
201%{_datadir}/lilypond/%{version}/python/*.pyc
9079e26d 202%{_datadir}/lilypond/%{version}/scm
9079e26d 203%{_infodir}/*.info*
889dbc87 204%{_mandir}/man1/*
e54f3148 205
c883b725 206%{texfontsdir}/source/lilypond
07662556 207%{texfontsdir}/tfm/lilypond
c883b725
JB
208%{texfontsdir}/type1/lilypond
209%{texmfdir}/dvips/lilypond
210%{texmfdir}/tex/lilypond
531a84c4 211
04517bc7 212%{_datadir}/omf/lilypond
1c8efec8 213%{?with_docs:/usr/share/doc/lilypond}
1596742a
JB
214
215%files -n emacs-lilypond-mode-pkg
216%defattr(644,root,root,755)
217%{_datadir}/emacs/site-lisp/*.el
ade6ec15
JB
218
219%files -n vim-syntax-lilypond
220%defattr(644,root,root,755)
221%{_datadir}/vim/vimfiles/compiler/lilypond.vim
222%{_datadir}/vim/vimfiles/ftdetect/lilypond.vim
223%{_datadir}/vim/vimfiles/ftplugin/lilypond.vim
224%{_datadir}/vim/vimfiles/indent/lilypond.vim
225%{_datadir}/vim/vimfiles/syntax/lilypond*
This page took 0.185794 seconds and 4 git commands to generate.