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