]> git.pld-linux.org Git - packages/lilypond.git/blame - lilypond.spec
- tabs in preamble
[packages/lilypond.git] / lilypond.spec
CommitLineData
ade6ec15
JB
1#
2# Conditional build:
3%bcond_with gui # enable experimental GUI
4#
d2d2e1b7 5Summary: Music typesetter
7d510172 6Summary(pl.UTF-8): Program do składania nut
d2d2e1b7 7Name: lilypond
84723dff 8Version: 2.10.0
c883b725 9Release: 1
d2d2e1b7 10License: GPL
11Group: Applications/Sound
84723dff
JB
12Source0: http://lilypond.org/download/v2.10/%{name}-%{version}.tar.gz
13# Source0-md5: 82e4487c5c1fa1d2e478d5974a3630df
04517bc7
JB
14Patch0: %{name}-info.patch
15Patch1: %{name}-sh.patch
2269c4cc 16Patch2: %{name}-po.patch
9e0d95d8 17Patch3: %{name}-afm.patch
e54f3148 18URL: http://www.lilypond.org/
62c8bd6d 19BuildRequires: automake
ade6ec15 20BuildRequires: bison >= 1.29
0ef28866 21BuildRequires: flex >= 2.5.4a
ade6ec15
JB
22BuildRequires: fontconfig-devel >= 1:2.2.0
23BuildRequires: fontforge >= 20050624
e54f3148 24BuildRequires: gettext-devel
ade6ec15 25BuildRequires: ghostscript >= 8.15
9e0d95d8 26BuildRequires: ghostscript-fonts-std
ade6ec15
JB
27%{?with_gui:BuildRequires: gtk+2-devel >= 2:2.4.0}
28BuildRequires: guile-devel >= 5:1.6.5
889dbc87
JB
29BuildRequires: kpathsea-devel
30BuildRequires: libltdl-devel
ade6ec15
JB
31BuildRequires: libstdc++-devel >= 5:3.3
32BuildRequires: mftrace >= 1.1.9
33BuildRequires: pango-devel >= 1.6.0
34BuildRequires: pkgconfig >= 1:0.9.0
04517bc7 35BuildRequires: python-devel >= 2.1
e54f3148 36BuildRequires: tetex-dvips
37BuildRequires: tetex-fonts-cm
531a84c4 38BuildRequires: tetex-fonts-cmextra
39BuildRequires: tetex-fonts-jknappen
9e0d95d8 40BuildRequires: texinfo >= 4.7
9079e26d 41BuildConflicts: lilypond < 1.6.0
ade6ec15
JB
42Requires: ghostscript >= 8.15
43Requires: guile >= 5:1.6.5
0ef28866
JB
44Requires: python >= 2.1
45Requires: tetex-format-latex >= 1.0
d2d2e1b7 46BuildRoot: %{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 52LilyPond is a music typesetter. It produces beautiful sheet music
53using a high level description file as input. It excels at typesetting
54classical music, but you can also print pop-songs. With LilyPond we
55hope to make music publication software available to anyone on the
56internet.
57
5d405090
JR
58%description -l pl.UTF-8
59LilyPond jest programem do składu muzycznego. Produkuje piękne
60partytury używając języka wysokiego poziomu jako wejście. Służy przede
61wszystkim do składania nut muzyki klasycznej, ale można drukować także
62piosenki pop. Autorzy udostępniają LilyPond z nadzieją dostarczenia
a7c4634e
JB
63wszystkim oprogramowania do publikacji muzycznych.
64
1596742a
JB
65%package -n emacs-lilypond-mode-pkg
66Summary: LilyPond mode for Emacs
7d510172 67Summary(pl.UTF-8): Tryb edycji plików LilyPond dla Emacsa
1596742a
JB
68Group: Applications/Editors/Emacs
69Requires: %{name} = %{version}-%{release}
70Requires: emacs
71
72%description -n emacs-lilypond-mode-pkg
73LilyPond mode for Emacs.
74
5d405090
JR
75%description -n emacs-lilypond-mode-pkg -l pl.UTF-8
76Tryb edycji plików LilyPond dla Emacsa.
1596742a 77
ade6ec15
JB
78%package -n vim-syntax-lilypond
79Summary: LilyPond files support for Vim
7d510172 80Summary(pl.UTF-8): Obsługa plików LilyPonda dla Vima
ade6ec15
JB
81Group: Applications/Editors/Vim
82Requires: %{name} = %{version}-%{release}
83Requires: vim >= 4:6.4.001-2
84
85%description -n vim-syntax-lilypond
86LilyPond files support for Vim.
87
5d405090
JR
88%description -n vim-syntax-lilypond -l pl.UTF-8
89Obsł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 99cp -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
107rm -rf $RPM_BUILD_ROOT
ade6ec15 108install -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 113find $RPM_BUILD_ROOT -name fonts.cache-1 | xargs rm -f
889dbc87 114
ade6ec15 115# for dvips
c883b725
JB
116mv -f $RPM_BUILD_ROOT%{_datadir}/lilypond/%{version}/dvips \
117 $RPM_BUILD_ROOT%{texmfdir}/dvips/lilypond
ade6ec15 118# ?
531a84c4 119mv -f $RPM_BUILD_ROOT%{_datadir}/lilypond/%{version}/fonts/source \
120 $RPM_BUILD_ROOT%{texfontsdir}/source/lilypond
ade6ec15 121# for latex and dvips
d4b43f60 122mv -f $RPM_BUILD_ROOT%{_datadir}/lilypond/%{version}/fonts/tfm \
531a84c4 123 $RPM_BUILD_ROOT%{texfontsdir}/tfm/lilypond
c883b725
JB
124mv -f $RPM_BUILD_ROOT%{_datadir}/lilypond/%{version}/tex \
125 $RPM_BUILD_ROOT%{texmfdir}/tex/lilypond
ade6ec15
JB
126# both for lilypond and dvips
127ln -sf %{_datadir}/lilypond/%{version}/fonts/type1 \
128 $RPM_BUILD_ROOT%{texfontsdir}/type1/lilypond
129ln -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
133mv -f $RPM_BUILD_ROOT%{_infodir}/lilypond/*.info* $RPM_BUILD_ROOT%{_infodir}
134
ade6ec15
JB
135# vim syntax/etc. files
136install -d $RPM_BUILD_ROOT%{_datadir}/vim
137mv -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
141rm -rf $RPM_BUILD_ROOT%{_datadir}/lilypond/%{version}/make
0ef28866 142
889dbc87 143%find_lang %{name}
d2d2e1b7 144
145%clean
9079e26d 146rm -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*
This page took 0.088682 seconds and 4 git commands to generate.