3 %bcond_with gui # enable experimental GUI
5 Summary: Music typesetter
6 Summary(pl.UTF-8): Program do składania nut
11 Group: Applications/Sound
12 Source0: http://lilypond.org/download/v2.10/%{name}-%{version}.tar.gz
13 # Source0-md5: 86a67fcc404e942be723f8a72988b286
14 Patch0: %{name}-info.patch
15 Patch1: %{name}-sh.patch
16 Patch2: %{name}-po.patch
17 Patch3: %{name}-afm.patch
18 URL: http://www.lilypond.org/
19 BuildRequires: automake
20 BuildRequires: bison >= 1.29
21 BuildRequires: flex >= 2.5.4a
22 BuildRequires: fontconfig-devel >= 1:2.2.0
23 BuildRequires: fontforge >= 20050624
24 BuildRequires: gettext-devel
25 BuildRequires: ghostscript >= 8.15
26 BuildRequires: ghostscript-fonts-std
27 %{?with_gui:BuildRequires: gtk+2-devel >= 2:2.4.0}
28 BuildRequires: guile-devel >= 5:1.6.7
29 BuildRequires: kpathsea-devel
30 BuildRequires: libltdl-devel
31 BuildRequires: libstdc++-devel >= 5:4.0
32 BuildRequires: mftrace >= 1.1.19
33 BuildRequires: pango-devel >= 1.6.0
34 BuildRequires: pkgconfig >= 1:0.9.0
35 BuildRequires: python-devel >= 2.1
36 BuildRequires: tetex-dvips
37 BuildRequires: tetex-fonts-cm
38 BuildRequires: tetex-fonts-cmextra
39 BuildRequires: tetex-fonts-jknappen
40 BuildRequires: texinfo >= 4.7
41 BuildConflicts: lilypond < 1.6.0
42 Requires: ghostscript >= 8.15
43 Requires: guile >= 5:1.6.5
44 Requires: python >= 2.1
45 Requires: tetex-format-latex >= 1.0
46 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
48 %define texmfdir /usr/share/texmf
49 %define texfontsdir %{texmfdir}/fonts
52 LilyPond is a music typesetter. It produces beautiful sheet music
53 using a high level description file as input. It excels at typesetting
54 classical music, but you can also print pop-songs. With LilyPond we
55 hope to make music publication software available to anyone on the
58 %description -l pl.UTF-8
59 LilyPond jest programem do składu muzycznego. Produkuje piękne
60 partytury używając języka wysokiego poziomu jako wejście. Służy przede
61 wszystkim do składania nut muzyki klasycznej, ale można drukować także
62 piosenki pop. Autorzy udostępniają LilyPond z nadzieją dostarczenia
63 wszystkim oprogramowania do publikacji muzycznych.
65 %package -n emacs-lilypond-mode-pkg
66 Summary: LilyPond mode for Emacs
67 Summary(pl.UTF-8): Tryb edycji plików LilyPond dla Emacsa
68 Group: Applications/Editors/Emacs
69 Requires: %{name} = %{version}-%{release}
72 %description -n emacs-lilypond-mode-pkg
73 LilyPond mode for Emacs.
75 %description -n emacs-lilypond-mode-pkg -l pl.UTF-8
76 Tryb edycji plików LilyPond dla Emacsa.
78 %package -n vim-syntax-lilypond
79 Summary: LilyPond files support for Vim
80 Summary(pl.UTF-8): Obsługa plików LilyPonda dla Vima
81 Group: Applications/Editors/Vim
82 Requires: %{name} = %{version}-%{release}
83 Requires: vim >= 4:6.4.001-2
85 %description -n vim-syntax-lilypond
86 LilyPond files support for Vim.
88 %description -n vim-syntax-lilypond -l pl.UTF-8
89 Obsługa plików LilyPonda dla Vima.
99 cp -f /usr/share/automake/config.* stepmake/bin
102 %{?debug:--disable-optimising} \
103 %{?with_gui:--enable-gui}
107 rm -rf $RPM_BUILD_ROOT
108 install -d $RPM_BUILD_ROOT{%{texmfdir}/{dvips/misc,tex},%{texfontsdir}/{source,tfm,type1}}
111 DESTDIR=$RPM_BUILD_ROOT
113 find $RPM_BUILD_ROOT -name fonts.cache-1 | xargs rm -f
116 mv -f $RPM_BUILD_ROOT%{_datadir}/lilypond/%{version}/dvips \
117 $RPM_BUILD_ROOT%{texmfdir}/dvips/lilypond
119 mv -f $RPM_BUILD_ROOT%{_datadir}/lilypond/%{version}/fonts/source \
120 $RPM_BUILD_ROOT%{texfontsdir}/source/lilypond
121 # for latex and dvips
122 mv -f $RPM_BUILD_ROOT%{_datadir}/lilypond/%{version}/tex \
123 $RPM_BUILD_ROOT%{texmfdir}/tex/lilypond
124 # both for lilypond and dvips
125 ln -sf %{_datadir}/lilypond/%{version}/fonts/type1 \
126 $RPM_BUILD_ROOT%{texfontsdir}/type1/lilypond
127 ln -sf %{_datadir}/lilypond/%{version}/ps/music-drawing-routines.ps \
128 $RPM_BUILD_ROOT%{texmfdir}/dvips/misc
131 mv -f $RPM_BUILD_ROOT%{_infodir}/lilypond/*.info* $RPM_BUILD_ROOT%{_infodir}
133 # vim syntax/etc. files
134 install -d $RPM_BUILD_ROOT%{_datadir}/vim
135 mv -f $RPM_BUILD_ROOT%{_datadir}/lilypond/%{version}/vim \
136 $RPM_BUILD_ROOT%{_datadir}/vim/vimfiles
138 # lilypond/stepmake build system - not needed at runtime
139 rm -rf $RPM_BUILD_ROOT%{_datadir}/lilypond/%{version}/make
144 rm -rf $RPM_BUILD_ROOT
147 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
148 [ ! -x /usr/bin/texhash ] || /usr/bin/texhash 1>&2
149 [ ! -x /usr/bin/scrollkeeper-update ] || /usr/bin/scrollkeeper-update
152 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
153 [ ! -x /usr/bin/texhash ] || /usr/bin/texhash 1>&2
154 [ ! -x /usr/bin/scrollkeeper-update ] || /usr/bin/scrollkeeper-update
156 %files -f %{name}.lang
157 %defattr(644,root,root,755)
158 %doc AUTHORS.txt ChangeLog DEDICATION NEWS.txt README.txt THANKS
159 %attr(755,root,root) %{_bindir}/*
160 %dir %{_libdir}/lilypond
161 %dir %{_libdir}/lilypond/%{version}
162 %dir %{_libdir}/lilypond/%{version}/python
163 %attr(755,root,root) %{_libdir}/lilypond/%{version}/python/midi.so
164 %dir %{_datadir}/lilypond
165 %dir %{_datadir}/lilypond/%{version}
166 %{_datadir}/lilypond/%{version}/fonts
167 %{_datadir}/lilypond/%{version}/ly
168 %{_datadir}/lilypond/%{version}/ps
169 %dir %{_datadir}/lilypond/%{version}/python
170 %{_datadir}/lilypond/%{version}/python/*.py
171 %{_datadir}/lilypond/%{version}/python/*.pyc
172 %{_datadir}/lilypond/%{version}/scm
176 %{texfontsdir}/source/lilypond
177 %{texfontsdir}/type1/lilypond
178 %{texmfdir}/dvips/lilypond
179 %{texmfdir}/dvips/misc/*.ps
180 %{texmfdir}/tex/lilypond
182 %{_datadir}/omf/lilypond
184 %files -n emacs-lilypond-mode-pkg
185 %defattr(644,root,root,755)
186 %{_datadir}/emacs/site-lisp/*.el
188 %files -n vim-syntax-lilypond
189 %defattr(644,root,root,755)
190 %{_datadir}/vim/vimfiles/compiler/lilypond.vim
191 %{_datadir}/vim/vimfiles/ftdetect/lilypond.vim
192 %{_datadir}/vim/vimfiles/ftplugin/lilypond.vim
193 %{_datadir}/vim/vimfiles/indent/lilypond.vim
194 %{_datadir}/vim/vimfiles/syntax/lilypond*