]> git.pld-linux.org Git - packages/lilypond.git/blob - lilypond.spec
- updated to 2.6.5, removed obsolete fhs patch
[packages/lilypond.git] / lilypond.spec
1 #
2 # Conditional build:
3 %bcond_with     gui     # enable experimental GUI
4 #
5 Summary:        Music typesetter
6 Summary(pl):    Program do sk³adania nut
7 Name:           lilypond
8 Version:        2.6.5
9 Release:        1
10 License:        GPL
11 Group:          Applications/Sound
12 Source0:        http://lilypond.org/download/v2.6/%{name}-%{version}.tar.gz
13 # Source0-md5:  faf24d726b61c92f081ea804f37ef029
14 Patch0:         %{name}-info.patch
15 Patch1:         %{name}-sh.patch
16 Patch2:         %{name}-po.patch
17 URL:            http://www.lilypond.org/
18 BuildRequires:  automake
19 BuildRequires:  bison >= 1.29
20 BuildRequires:  flex >= 2.5.4a
21 BuildRequires:  fontconfig-devel >= 1:2.2.0
22 BuildRequires:  fontforge >= 20050624
23 BuildRequires:  gettext-devel
24 BuildRequires:  ghostscript >= 8.15
25 %{?with_gui:BuildRequires:      gtk+2-devel >= 2:2.4.0}
26 BuildRequires:  guile-devel >= 5:1.6.5
27 BuildRequires:  kpathsea-devel
28 BuildRequires:  libltdl-devel
29 BuildRequires:  libstdc++-devel >= 5:3.3
30 BuildRequires:  mftrace >= 1.1.9
31 BuildRequires:  pango-devel >= 1.6.0
32 BuildRequires:  pkgconfig >= 1:0.9.0
33 BuildRequires:  python-devel >= 2.1
34 BuildRequires:  tetex-dvips
35 BuildRequires:  tetex-fonts-cm
36 BuildRequires:  tetex-fonts-cmextra
37 BuildRequires:  tetex-fonts-jknappen
38 BuildRequires:  texinfo >= 4.6
39 BuildConflicts: lilypond < 1.6.0
40 Requires:       ghostscript >= 8.15
41 Requires:       guile >= 5:1.6.5
42 Requires:       python >= 2.1
43 Requires:       tetex-format-latex >= 1.0
44 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
45
46 %define         _localedir      %{_prefix}/share/locale
47 %define         texmfdir        /usr/share/texmf
48 %define         texfontsdir     %{texmfdir}/fonts
49
50 %description
51 LilyPond is a music typesetter. It produces beautiful sheet music
52 using a high level description file as input. It excels at typesetting
53 classical music, but you can also print pop-songs. With LilyPond we
54 hope to make music publication software available to anyone on the
55 internet.
56
57 %description -l pl
58 LilyPond jest programem do sk³adu muzycznego. Produkuje piêkne
59 partytury u¿ywaj±c jêzyka wysokiego poziomu jako wej¶cie. S³u¿y przede
60 wszystkim do sk³adania nut muzyki klasycznej, ale mo¿na drukowaæ tak¿e
61 piosenki pop. Autorzy udostêpniaj± LilyPond z nadziej± dostarczenia
62 wszystkim oprogramowania do publikacji muzycznych.
63
64 %package -n emacs-lilypond-mode-pkg
65 Summary:        LilyPond mode for Emacs
66 Summary(pl):    Tryb edycji plików LilyPond dla Emacsa
67 Group:          Applications/Editors/Emacs
68 Requires:       %{name} = %{version}-%{release}
69 Requires:       emacs
70
71 %description -n emacs-lilypond-mode-pkg
72 LilyPond mode for Emacs.
73
74 %description -n emacs-lilypond-mode-pkg -l pl
75 Tryb edycji plików LilyPond dla Emacsa.
76
77 %package -n vim-syntax-lilypond
78 Summary:        LilyPond files support for Vim
79 Summary(pl):    Obs³uga plików LilyPonda dla Vima
80 Group:          Applications/Editors/Vim
81 Requires:       %{name} = %{version}-%{release}
82 Requires:       vim >= 4:6.4.001-2
83
84 %description -n vim-syntax-lilypond
85 LilyPond files support for Vim.
86
87 %description -n vim-syntax-lilypond -l pl
88 Obs³uga plików LilyPonda dla Vima.
89
90 %prep
91 %setup -q
92 %patch0 -p1
93 %patch1 -p1
94 %patch2 -p1
95
96 %build
97 cp -f /usr/share/automake/config.* stepmake/bin
98 %{__autoconf}
99 %configure \
100         %{?debug:--disable-optimising} \
101         %{?with_gui:--enable-gui}
102 %{__make}
103
104 %install
105 rm -rf $RPM_BUILD_ROOT
106 install -d $RPM_BUILD_ROOT{%{texmfdir}/{dvips/misc,tex},%{texfontsdir}/{source,tfm,type1}}
107
108 %{__make} install \
109         DESTDIR=$RPM_BUILD_ROOT
110
111 find $RPM_BUILD_ROOT -name fonts.cache-1 | xargs rm -f
112
113 # for dvips
114 mv -f $RPM_BUILD_ROOT%{_datadir}/lilypond/%{version}/dvips \
115       $RPM_BUILD_ROOT%{texmfdir}/dvips/lilypond
116 # ?
117 mv -f $RPM_BUILD_ROOT%{_datadir}/lilypond/%{version}/fonts/source \
118       $RPM_BUILD_ROOT%{texfontsdir}/source/lilypond
119 # for latex and dvips
120 mv -f $RPM_BUILD_ROOT%{_datadir}/lilypond/%{version}/fonts/tfm \
121       $RPM_BUILD_ROOT%{texfontsdir}/tfm/lilypond
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
129
130 # no need for subdir
131 mv -f $RPM_BUILD_ROOT%{_infodir}/lilypond/*.info* $RPM_BUILD_ROOT%{_infodir}
132
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
137
138 # lilypond/stepmake build system - not needed at runtime
139 rm -rf $RPM_BUILD_ROOT%{_datadir}/lilypond/%{version}/make
140
141 %find_lang %{name}
142
143 %clean
144 rm -rf $RPM_BUILD_ROOT
145
146 %post
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
150
151 %postun
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
155
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
173 %{_infodir}/*.info*
174 %{_mandir}/man1/*
175
176 %{texfontsdir}/source/lilypond
177 %{texfontsdir}/tfm/lilypond
178 %{texfontsdir}/type1/lilypond
179 %{texmfdir}/dvips/lilypond
180 %{texmfdir}/dvips/misc/*.ps
181 %{texmfdir}/tex/lilypond
182
183 %{_datadir}/omf/lilypond
184
185 %files -n emacs-lilypond-mode-pkg
186 %defattr(644,root,root,755)
187 %{_datadir}/emacs/site-lisp/*.el
188
189 %files -n vim-syntax-lilypond
190 %defattr(644,root,root,755)
191 %{_datadir}/vim/vimfiles/compiler/lilypond.vim
192 %{_datadir}/vim/vimfiles/ftdetect/lilypond.vim
193 %{_datadir}/vim/vimfiles/ftplugin/lilypond.vim
194 %{_datadir}/vim/vimfiles/indent/lilypond.vim
195 %{_datadir}/vim/vimfiles/syntax/lilypond*
This page took 0.124831 seconds and 4 git commands to generate.