]>
Commit | Line | Data |
---|---|---|
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 | 8 | Summary: Music typesetter |
7d510172 | 9 | Summary(pl.UTF-8): Program do składania nut |
d2d2e1b7 | 10 | Name: lilypond |
07662556 TP |
11 | Version: 2.12.2 |
12 | Release: 1 | |
d2d2e1b7 | 13 | License: GPL |
14 | Group: Applications/Sound | |
07662556 TP |
15 | Source0: http://lilypond.org/download/v2.12/%{name}-%{version}.tar.gz |
16 | # Source0-md5: 681dfbecf8a3710d1400cf9488be716b | |
04517bc7 JB |
17 | Patch0: %{name}-info.patch |
18 | Patch1: %{name}-sh.patch | |
9e0d95d8 | 19 | Patch3: %{name}-afm.patch |
96ae5dcc JK |
20 | Patch4: %{name}-aclocal.patch |
21 | Patch5: %{name}-bad_cast.patch | |
e54f3148 | 22 | URL: http://www.lilypond.org/ |
1c8efec8 SS |
23 | %{?with_docs:BuildRequires: ImageMagick} |
24 | %{?with_docs:BuildRequires: ImageMagick-coder-png} | |
62c8bd6d | 25 | BuildRequires: automake |
ade6ec15 | 26 | BuildRequires: bison >= 1.29 |
0ef28866 | 27 | BuildRequires: flex >= 2.5.4a |
743d93b2 | 28 | BuildRequires: fontconfig |
ade6ec15 | 29 | BuildRequires: fontconfig-devel >= 1:2.2.0 |
07662556 TP |
30 | BuildRequires: fontforge >= 20060125 |
31 | BuildRequires: fonts-Type1-urw | |
32 | BuildRequires: gettext-devel >= 0.17 | |
ade6ec15 | 33 | BuildRequires: ghostscript >= 8.15 |
07662556 | 34 | %{?with_docs:BuildRequires: ghostscript >= 8.60} |
9e0d95d8 | 35 | BuildRequires: ghostscript-fonts-std |
ade6ec15 | 36 | %{?with_gui:BuildRequires: gtk+2-devel >= 2:2.4.0} |
07662556 | 37 | BuildRequires: guile-devel >= 5:1.8.2 |
889dbc87 JB |
38 | BuildRequires: kpathsea-devel |
39 | BuildRequires: libltdl-devel | |
07662556 | 40 | BuildRequires: libstdc++-devel >= 5:3.4 |
d6ab7bee | 41 | BuildRequires: mftrace >= 1.1.19 |
1c8efec8 | 42 | %{?with_docs:BuildRequires: netpbm-progs} |
07662556 TP |
43 | BuildRequires: pango-devel >= 1.12.0 |
44 | BuildRequires: perl-base | |
ade6ec15 | 45 | BuildRequires: pkgconfig >= 1:0.9.0 |
07662556 | 46 | BuildRequires: python-devel >= 2.4 |
1c8efec8 | 47 | %{?with_docs:BuildRequires: rsync} |
96ae5dcc JK |
48 | BuildRequires: texlive-dvips |
49 | BuildRequires: texlive-fonts-cm | |
50 | BuildRequires: texlive-fonts-cmextra | |
51 | BuildRequires: texlive-fonts-jknappen | |
52 | %{?with_docs:BuildRequires: texlive-latex-bibtex} | |
53 | BuildRequires: texlive-metapost | |
07662556 | 54 | BuildRequires: texinfo >= 4.11 |
1c8efec8 | 55 | %{?with_docs:BuildRequires: texinfo-texi2dvi} |
9079e26d | 56 | BuildConflicts: lilypond < 1.6.0 |
ade6ec15 | 57 | Requires: ghostscript >= 8.15 |
07662556 TP |
58 | Requires: guile >= 5:1.8.2 |
59 | Requires: python >= 2.4 | |
96ae5dcc | 60 | Requires: texlive-latex |
d2d2e1b7 | 61 | BuildRoot: %{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 | 67 | LilyPond is a music typesetter. It produces beautiful sheet music |
68 | using a high level description file as input. It excels at typesetting | |
69 | classical music, but you can also print pop-songs. With LilyPond we | |
70 | hope to make music publication software available to anyone on the | |
71 | internet. | |
72 | ||
5d405090 JR |
73 | %description -l pl.UTF-8 |
74 | LilyPond jest programem do składu muzycznego. Produkuje piękne | |
75 | partytury używając języka wysokiego poziomu jako wejście. Służy przede | |
76 | wszystkim do składania nut muzyki klasycznej, ale można drukować także | |
77 | piosenki pop. Autorzy udostępniają LilyPond z nadzieją dostarczenia | |
a7c4634e JB |
78 | wszystkim oprogramowania do publikacji muzycznych. |
79 | ||
1596742a JB |
80 | %package -n emacs-lilypond-mode-pkg |
81 | Summary: LilyPond mode for Emacs | |
7d510172 | 82 | Summary(pl.UTF-8): Tryb edycji plików LilyPond dla Emacsa |
1596742a JB |
83 | Group: Applications/Editors/Emacs |
84 | Requires: %{name} = %{version}-%{release} | |
85 | Requires: emacs | |
86 | ||
87 | %description -n emacs-lilypond-mode-pkg | |
88 | LilyPond mode for Emacs. | |
89 | ||
5d405090 JR |
90 | %description -n emacs-lilypond-mode-pkg -l pl.UTF-8 |
91 | Tryb edycji plików LilyPond dla Emacsa. | |
1596742a | 92 | |
ade6ec15 JB |
93 | %package -n vim-syntax-lilypond |
94 | Summary: LilyPond files support for Vim | |
7d510172 | 95 | Summary(pl.UTF-8): Obsługa plików LilyPonda dla Vima |
ade6ec15 JB |
96 | Group: Applications/Editors/Vim |
97 | Requires: %{name} = %{version}-%{release} | |
36009b58 | 98 | Requires: vim-rt >= 4:6.4.001-2 |
ade6ec15 JB |
99 | |
100 | %description -n vim-syntax-lilypond | |
101 | LilyPond files support for Vim. | |
102 | ||
5d405090 JR |
103 | %description -n vim-syntax-lilypond -l pl.UTF-8 |
104 | Obsł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 | 115 | cp -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 | |
124 | rm -rf $RPM_BUILD_ROOT | |
07662556 | 125 | install -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 |
133 | cp -aL out/share/lilypond/current/fonts/tfm \ |
134 | $RPM_BUILD_ROOT%{texfontsdir}/tfm/lilypond | |
e54f3148 | 135 | |
ade6ec15 | 136 | find $RPM_BUILD_ROOT -name fonts.cache-1 | xargs rm -f |
889dbc87 | 137 | |
ade6ec15 | 138 | # ? |
531a84c4 | 139 | mv -f $RPM_BUILD_ROOT%{_datadir}/lilypond/%{version}/fonts/source \ |
d6ab7bee | 140 | $RPM_BUILD_ROOT%{texfontsdir}/source/lilypond |
ade6ec15 | 141 | # for latex and dvips |
c883b725 | 142 | mv -f $RPM_BUILD_ROOT%{_datadir}/lilypond/%{version}/tex \ |
d6ab7bee | 143 | $RPM_BUILD_ROOT%{texmfdir}/tex/lilypond |
ade6ec15 JB |
144 | # both for lilypond and dvips |
145 | ln -sf %{_datadir}/lilypond/%{version}/fonts/type1 \ | |
146 | $RPM_BUILD_ROOT%{texfontsdir}/type1/lilypond | |
07662556 TP |
147 | ln -sf %{_datadir}/lilypond/%{version}/ps \ |
148 | $RPM_BUILD_ROOT%{texmfdir}/dvips/lilypond | |
149 | rm -rf $RPM_BUILD_ROOT%{_datadir}/lilypond/%{version}/dvips | |
3da54999 | 150 | |
ade6ec15 JB |
151 | # vim syntax/etc. files |
152 | install -d $RPM_BUILD_ROOT%{_datadir}/vim | |
153 | mv -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 | |
157 | rm -rf $RPM_BUILD_ROOT%{_datadir}/lilypond/%{version}/make | |
0ef28866 | 158 | |
889dbc87 | 159 | %find_lang %{name} |
d2d2e1b7 | 160 | |
161 | %clean | |
9079e26d | 162 | rm -rf $RPM_BUILD_ROOT |
d2d2e1b7 | 163 | |
b82310a7 TP |
164 | %pre |
165 | test -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* |