]>
Commit | Line | Data |
---|---|---|
ade6ec15 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with gui # enable experimental GUI | |
4 | # | |
d2d2e1b7 | 5 | Summary: Music typesetter |
7d510172 | 6 | Summary(pl.UTF-8): Program do składania nut |
d2d2e1b7 | 7 | Name: lilypond |
84723dff | 8 | Version: 2.10.0 |
c883b725 | 9 | Release: 1 |
d2d2e1b7 | 10 | License: GPL |
11 | Group: Applications/Sound | |
84723dff JB |
12 | Source0: http://lilypond.org/download/v2.10/%{name}-%{version}.tar.gz |
13 | # Source0-md5: 82e4487c5c1fa1d2e478d5974a3630df | |
04517bc7 JB |
14 | Patch0: %{name}-info.patch |
15 | Patch1: %{name}-sh.patch | |
2269c4cc | 16 | Patch2: %{name}-po.patch |
9e0d95d8 | 17 | Patch3: %{name}-afm.patch |
e54f3148 | 18 | URL: http://www.lilypond.org/ |
62c8bd6d | 19 | BuildRequires: automake |
ade6ec15 | 20 | BuildRequires: bison >= 1.29 |
0ef28866 | 21 | BuildRequires: flex >= 2.5.4a |
ade6ec15 JB |
22 | BuildRequires: fontconfig-devel >= 1:2.2.0 |
23 | BuildRequires: fontforge >= 20050624 | |
e54f3148 | 24 | BuildRequires: gettext-devel |
ade6ec15 | 25 | BuildRequires: ghostscript >= 8.15 |
9e0d95d8 | 26 | BuildRequires: ghostscript-fonts-std |
ade6ec15 JB |
27 | %{?with_gui:BuildRequires: gtk+2-devel >= 2:2.4.0} |
28 | BuildRequires: guile-devel >= 5:1.6.5 | |
889dbc87 JB |
29 | BuildRequires: kpathsea-devel |
30 | BuildRequires: libltdl-devel | |
ade6ec15 JB |
31 | BuildRequires: libstdc++-devel >= 5:3.3 |
32 | BuildRequires: mftrace >= 1.1.9 | |
33 | BuildRequires: pango-devel >= 1.6.0 | |
34 | BuildRequires: pkgconfig >= 1:0.9.0 | |
04517bc7 | 35 | BuildRequires: python-devel >= 2.1 |
e54f3148 | 36 | BuildRequires: tetex-dvips |
37 | BuildRequires: tetex-fonts-cm | |
531a84c4 | 38 | BuildRequires: tetex-fonts-cmextra |
39 | BuildRequires: tetex-fonts-jknappen | |
9e0d95d8 | 40 | BuildRequires: texinfo >= 4.7 |
9079e26d | 41 | BuildConflicts: lilypond < 1.6.0 |
ade6ec15 JB |
42 | Requires: ghostscript >= 8.15 |
43 | Requires: guile >= 5:1.6.5 | |
0ef28866 JB |
44 | Requires: python >= 2.1 |
45 | Requires: tetex-format-latex >= 1.0 | |
d2d2e1b7 | 46 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
47 | ||
c883b725 JB |
48 | %define texmfdir /usr/share/texmf |
49 | %define texfontsdir %{texmfdir}/fonts | |
889dbc87 | 50 | |
d2d2e1b7 | 51 | %description |
d2d2e1b7 | 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 | |
56 | internet. | |
57 | ||
5d405090 JR |
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 | |
a7c4634e JB |
63 | wszystkim oprogramowania do publikacji muzycznych. |
64 | ||
1596742a JB |
65 | %package -n emacs-lilypond-mode-pkg |
66 | Summary: LilyPond mode for Emacs | |
7d510172 | 67 | Summary(pl.UTF-8): Tryb edycji plików LilyPond dla Emacsa |
1596742a JB |
68 | Group: Applications/Editors/Emacs |
69 | Requires: %{name} = %{version}-%{release} | |
70 | Requires: emacs | |
71 | ||
72 | %description -n emacs-lilypond-mode-pkg | |
73 | LilyPond mode for Emacs. | |
74 | ||
5d405090 JR |
75 | %description -n emacs-lilypond-mode-pkg -l pl.UTF-8 |
76 | Tryb edycji plików LilyPond dla Emacsa. | |
1596742a | 77 | |
ade6ec15 JB |
78 | %package -n vim-syntax-lilypond |
79 | Summary: LilyPond files support for Vim | |
7d510172 | 80 | Summary(pl.UTF-8): Obsługa plików LilyPonda dla Vima |
ade6ec15 JB |
81 | Group: Applications/Editors/Vim |
82 | Requires: %{name} = %{version}-%{release} | |
83 | Requires: vim >= 4:6.4.001-2 | |
84 | ||
85 | %description -n vim-syntax-lilypond | |
86 | LilyPond files support for Vim. | |
87 | ||
5d405090 JR |
88 | %description -n vim-syntax-lilypond -l pl.UTF-8 |
89 | Obsługa plików LilyPonda dla Vima. | |
ade6ec15 | 90 | |
d2d2e1b7 | 91 | %prep |
92 | %setup -q | |
04517bc7 JB |
93 | %patch0 -p1 |
94 | %patch1 -p1 | |
2269c4cc | 95 | %patch2 -p1 |
9e0d95d8 | 96 | %patch3 -p1 |
d2d2e1b7 | 97 | |
98 | %build | |
62c8bd6d | 99 | cp -f /usr/share/automake/config.* stepmake/bin |
ade6ec15 | 100 | %{__autoconf} |
9ffc1676 | 101 | %configure \ |
ade6ec15 JB |
102 | %{?debug:--disable-optimising} \ |
103 | %{?with_gui:--enable-gui} | |
0ef76543 | 104 | %{__make} -j1 |
d2d2e1b7 | 105 | |
106 | %install | |
107 | rm -rf $RPM_BUILD_ROOT | |
ade6ec15 | 108 | install -d $RPM_BUILD_ROOT{%{texmfdir}/{dvips/misc,tex},%{texfontsdir}/{source,tfm,type1}} |
d2d2e1b7 | 109 | |
889dbc87 | 110 | %{__make} install \ |
ade6ec15 | 111 | DESTDIR=$RPM_BUILD_ROOT |
e54f3148 | 112 | |
ade6ec15 | 113 | find $RPM_BUILD_ROOT -name fonts.cache-1 | xargs rm -f |
889dbc87 | 114 | |
ade6ec15 | 115 | # for dvips |
c883b725 JB |
116 | mv -f $RPM_BUILD_ROOT%{_datadir}/lilypond/%{version}/dvips \ |
117 | $RPM_BUILD_ROOT%{texmfdir}/dvips/lilypond | |
ade6ec15 | 118 | # ? |
531a84c4 | 119 | mv -f $RPM_BUILD_ROOT%{_datadir}/lilypond/%{version}/fonts/source \ |
120 | $RPM_BUILD_ROOT%{texfontsdir}/source/lilypond | |
ade6ec15 | 121 | # for latex and dvips |
d4b43f60 | 122 | mv -f $RPM_BUILD_ROOT%{_datadir}/lilypond/%{version}/fonts/tfm \ |
531a84c4 | 123 | $RPM_BUILD_ROOT%{texfontsdir}/tfm/lilypond |
c883b725 JB |
124 | mv -f $RPM_BUILD_ROOT%{_datadir}/lilypond/%{version}/tex \ |
125 | $RPM_BUILD_ROOT%{texmfdir}/tex/lilypond | |
ade6ec15 JB |
126 | # both for lilypond and dvips |
127 | ln -sf %{_datadir}/lilypond/%{version}/fonts/type1 \ | |
128 | $RPM_BUILD_ROOT%{texfontsdir}/type1/lilypond | |
129 | ln -sf %{_datadir}/lilypond/%{version}/ps/music-drawing-routines.ps \ | |
130 | $RPM_BUILD_ROOT%{texmfdir}/dvips/misc | |
8eef6b13 | 131 | |
ade6ec15 | 132 | # no need for subdir |
3da54999 JB |
133 | mv -f $RPM_BUILD_ROOT%{_infodir}/lilypond/*.info* $RPM_BUILD_ROOT%{_infodir} |
134 | ||
ade6ec15 JB |
135 | # vim syntax/etc. files |
136 | install -d $RPM_BUILD_ROOT%{_datadir}/vim | |
137 | mv -f $RPM_BUILD_ROOT%{_datadir}/lilypond/%{version}/vim \ | |
138 | $RPM_BUILD_ROOT%{_datadir}/vim/vimfiles | |
139 | ||
140 | # lilypond/stepmake build system - not needed at runtime | |
141 | rm -rf $RPM_BUILD_ROOT%{_datadir}/lilypond/%{version}/make | |
0ef28866 | 142 | |
889dbc87 | 143 | %find_lang %{name} |
d2d2e1b7 | 144 | |
145 | %clean | |
9079e26d | 146 | rm -rf $RPM_BUILD_ROOT |
d2d2e1b7 | 147 | |
889dbc87 JB |
148 | %post |
149 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1 | |
8eef6b13 | 150 | [ ! -x /usr/bin/texhash ] || /usr/bin/texhash 1>&2 |
c883b725 | 151 | [ ! -x /usr/bin/scrollkeeper-update ] || /usr/bin/scrollkeeper-update |
889dbc87 JB |
152 | |
153 | %postun | |
154 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1 | |
8eef6b13 | 155 | [ ! -x /usr/bin/texhash ] || /usr/bin/texhash 1>&2 |
c883b725 | 156 | [ ! -x /usr/bin/scrollkeeper-update ] || /usr/bin/scrollkeeper-update |
889dbc87 JB |
157 | |
158 | %files -f %{name}.lang | |
d2d2e1b7 | 159 | %defattr(644,root,root,755) |
e54f3148 | 160 | %doc AUTHORS.txt ChangeLog DEDICATION NEWS.txt README.txt THANKS |
889dbc87 | 161 | %attr(755,root,root) %{_bindir}/* |
04517bc7 JB |
162 | %dir %{_libdir}/lilypond |
163 | %dir %{_libdir}/lilypond/%{version} | |
164 | %dir %{_libdir}/lilypond/%{version}/python | |
165 | %attr(755,root,root) %{_libdir}/lilypond/%{version}/python/midi.so | |
9079e26d JB |
166 | %dir %{_datadir}/lilypond |
167 | %dir %{_datadir}/lilypond/%{version} | |
ade6ec15 | 168 | %{_datadir}/lilypond/%{version}/fonts |
9079e26d JB |
169 | %{_datadir}/lilypond/%{version}/ly |
170 | %{_datadir}/lilypond/%{version}/ps | |
171 | %dir %{_datadir}/lilypond/%{version}/python | |
e54f3148 | 172 | %{_datadir}/lilypond/%{version}/python/*.py |
173 | %{_datadir}/lilypond/%{version}/python/*.pyc | |
9079e26d | 174 | %{_datadir}/lilypond/%{version}/scm |
9079e26d | 175 | %{_infodir}/*.info* |
889dbc87 | 176 | %{_mandir}/man1/* |
e54f3148 | 177 | |
c883b725 JB |
178 | %{texfontsdir}/source/lilypond |
179 | %{texfontsdir}/tfm/lilypond | |
180 | %{texfontsdir}/type1/lilypond | |
181 | %{texmfdir}/dvips/lilypond | |
ade6ec15 | 182 | %{texmfdir}/dvips/misc/*.ps |
c883b725 | 183 | %{texmfdir}/tex/lilypond |
531a84c4 | 184 | |
04517bc7 | 185 | %{_datadir}/omf/lilypond |
1596742a JB |
186 | |
187 | %files -n emacs-lilypond-mode-pkg | |
188 | %defattr(644,root,root,755) | |
189 | %{_datadir}/emacs/site-lisp/*.el | |
ade6ec15 JB |
190 | |
191 | %files -n vim-syntax-lilypond | |
192 | %defattr(644,root,root,755) | |
193 | %{_datadir}/vim/vimfiles/compiler/lilypond.vim | |
194 | %{_datadir}/vim/vimfiles/ftdetect/lilypond.vim | |
195 | %{_datadir}/vim/vimfiles/ftplugin/lilypond.vim | |
196 | %{_datadir}/vim/vimfiles/indent/lilypond.vim | |
197 | %{_datadir}/vim/vimfiles/syntax/lilypond* |