]> git.pld-linux.org Git - packages/lilypond.git/blame - lilypond.spec
- updated to 2.22.0
[packages/lilypond.git] / lilypond.spec
CommitLineData
ade6ec15
JB
1#
2# Conditional build:
e79ac9a0 3%bcond_without doc # build docs
ade6ec15 4#
d2d2e1b7 5Summary: Music typesetter
7d510172 6Summary(pl.UTF-8): Program do składania nut
d2d2e1b7 7Name: lilypond
4e10dce8
JB
8# note: 2.22.x is stable, 2.23.x devel
9Version: 2.22.0
822dbdaa 10Release: 1
d31b09e8 11License: GPL v3+ with font exception
d2d2e1b7 12Group: Applications/Sound
4e10dce8
JB
13Source0: https://lilypond.org/download/sources/v2.22/%{name}-%{version}.tar.gz
14# Source0-md5: 4b0d869873b0120bda2e8bd94e1a628a
04517bc7
JB
15Patch0: %{name}-info.patch
16Patch1: %{name}-sh.patch
21da3477 17Patch2: %{name}-aclocal.patch
4e10dce8 18Patch3: %{name}-mf.patch
e54f3148 19URL: http://www.lilypond.org/
d31b09e8 20BuildRequires: autoconf >= 2.60
62c8bd6d 21BuildRequires: automake
4e10dce8 22BuildRequires: bison >= 2.4.1
0ef28866 23BuildRequires: flex >= 2.5.4a
d31b09e8 24BuildRequires: fontconfig >= 1:2.4.0
8bee7355
JK
25BuildRequires: fontconfig-devel >= 1:2.4.0
26BuildRequires: fontforge >= 20110222
27BuildRequires: fonts-TTF-DejaVu
07662556 28BuildRequires: fonts-Type1-urw
8bee7355 29BuildRequires: freetype >= 1:2.1.10
ed08bb2a 30BuildRequires: gettext-tools >= 0.17
9e0d95d8 31BuildRequires: ghostscript-fonts-std
d31b09e8 32BuildRequires: glib2-devel >= 1:2.38
4e10dce8 33BuildRequires: guile-devel >= 5:1.8.2
889dbc87 34BuildRequires: kpathsea-devel
07662556 35BuildRequires: libstdc++-devel >= 5:3.4
d31b09e8 36BuildRequires: pango-devel >= 1:1.38.0
07662556 37BuildRequires: perl-base
ade6ec15 38BuildRequires: pkgconfig >= 1:0.9.0
4e10dce8
JB
39BuildRequires: python3-devel >= 1:3.5
40BuildRequires: python3-modules >= 1:3.5
6969eca1 41BuildRequires: rpm-pythonprov
8bee7355 42BuildRequires: t1utils
d31b09e8 43BuildRequires: texinfo >= 6.1
8bee7355 44BuildRequires: texlive-fonts-other
6969eca1 45BuildRequires: texlive-metapost
8bee7355
JK
46%if %{with doc}
47BuildRequires: ImageMagick
48BuildRequires: ImageMagick-coder-png
d31b09e8
JB
49BuildRequires: dblatex >= 0.1.4
50BuildRequires: ghostscript >= 9.20
8bee7355
JK
51BuildRequires: netpbm-progs
52BuildRequires: rsync
d31b09e8
JB
53BuildRequires: texi2html >= 1.82
54BuildRequires: texinfo-texi2dvi >= 6.1
55# `kpsewhich tex epsf`
8bee7355 56BuildRequires: texlive
d31b09e8 57# `kpsewhich -format=mf fikparm`
8bee7355 58BuildRequires: texlive-fonts-lh
8bee7355 59BuildRequires: texlive-latex-bibtex
d31b09e8 60BuildRequires: texlive-xetex
8bee7355 61BuildRequires: zip
7e33022f 62%endif
8bee7355
JK
63BuildConflicts: lilypond < 1.6.0
64Requires: fonts-TTF-DejaVu
d31b09e8
JB
65Requires: ghostscript >= 9.20
66Requires: glib2 >= 1:2.38
67Requires: pango >= 1:1.38.0
4e10dce8 68Requires: python3-modules >= 1:3.5
d2d2e1b7 69BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
70
07662556 71%define texmfdir %{_datadir}/texmf
8024e447 72%define texmfdistdir %{texmfdir}-dist
7e33022f 73%if "%{pld_release}" != "th"
74%define texfontsdir %{texmfdir}/fonts
75%else
8024e447 76%define texfontsdir %{texmfdistdir}/fonts
7e33022f 77%endif
889dbc87 78
d2d2e1b7 79%description
d2d2e1b7 80LilyPond is a music typesetter. It produces beautiful sheet music
81using a high level description file as input. It excels at typesetting
82classical music, but you can also print pop-songs. With LilyPond we
83hope to make music publication software available to anyone on the
84internet.
85
5d405090
JR
86%description -l pl.UTF-8
87LilyPond jest programem do składu muzycznego. Produkuje piękne
88partytury używając języka wysokiego poziomu jako wejście. Służy przede
89wszystkim do składania nut muzyki klasycznej, ale można drukować także
90piosenki pop. Autorzy udostępniają LilyPond z nadzieją dostarczenia
a7c4634e
JB
91wszystkim oprogramowania do publikacji muzycznych.
92
1596742a
JB
93%package -n emacs-lilypond-mode-pkg
94Summary: LilyPond mode for Emacs
7d510172 95Summary(pl.UTF-8): Tryb edycji plików LilyPond dla Emacsa
1596742a
JB
96Group: Applications/Editors/Emacs
97Requires: %{name} = %{version}-%{release}
98Requires: emacs
99
100%description -n emacs-lilypond-mode-pkg
101LilyPond mode for Emacs.
102
5d405090
JR
103%description -n emacs-lilypond-mode-pkg -l pl.UTF-8
104Tryb edycji plików LilyPond dla Emacsa.
1596742a 105
ade6ec15
JB
106%package -n vim-syntax-lilypond
107Summary: LilyPond files support for Vim
7d510172 108Summary(pl.UTF-8): Obsługa plików LilyPonda dla Vima
ade6ec15
JB
109Group: Applications/Editors/Vim
110Requires: %{name} = %{version}-%{release}
36009b58 111Requires: vim-rt >= 4:6.4.001-2
ade6ec15
JB
112
113%description -n vim-syntax-lilypond
114LilyPond files support for Vim.
115
5d405090
JR
116%description -n vim-syntax-lilypond -l pl.UTF-8
117Obsługa plików LilyPonda dla Vima.
ade6ec15 118
d2d2e1b7 119%prep
120%setup -q
d31b09e8 121%patch0 -p1
04517bc7 122%patch1 -p1
21da3477 123%patch2 -p1
d31b09e8 124%patch3 -p1
d2d2e1b7 125
126%build
ade6ec15 127%{__autoconf}
9ffc1676 128%configure \
4e10dce8 129 PYTHON=%{__python3} \
ade6ec15 130 %{?debug:--disable-optimising} \
4e10dce8 131 --with-texgyre-dir=%{texfontsdir}/opentype/public/tex-gyre/ \
8bee7355 132 %{__enable_disable doc documentation}
0ef76543 133%{__make} -j1
d2d2e1b7 134
135%install
136rm -rf $RPM_BUILD_ROOT
4e10dce8 137install -d $RPM_BUILD_ROOT{%{texmfdir}/{dvips,tex},%{texfontsdir}/{source,tfm/lilypond,type1/lilypond}}
d2d2e1b7 138
889dbc87 139%{__make} install \
ade6ec15 140 DESTDIR=$RPM_BUILD_ROOT
8bee7355 141
4e10dce8
JB
142cp -p mf/out/*.tfm $RPM_BUILD_ROOT%{texfontsdir}/tfm/lilypond
143cp -p mf/out/*.pfb $RPM_BUILD_ROOT%{texfontsdir}/type1/lilypond
e54f3148 144
ade6ec15 145find $RPM_BUILD_ROOT -name fonts.cache-1 | xargs rm -f
889dbc87 146
ade6ec15 147# ?
d31b09e8 148%{__mv} $RPM_BUILD_ROOT%{_datadir}/lilypond/%{version}/fonts/source \
d6ab7bee 149 $RPM_BUILD_ROOT%{texfontsdir}/source/lilypond
ade6ec15 150# for latex and dvips
d31b09e8 151%{__mv} $RPM_BUILD_ROOT%{_datadir}/lilypond/%{version}/tex \
d6ab7bee 152 $RPM_BUILD_ROOT%{texmfdir}/tex/lilypond
ade6ec15 153# both for lilypond and dvips
07662556
TP
154ln -sf %{_datadir}/lilypond/%{version}/ps \
155 $RPM_BUILD_ROOT%{texmfdir}/dvips/lilypond
3da54999 156
ade6ec15
JB
157# vim syntax/etc. files
158install -d $RPM_BUILD_ROOT%{_datadir}/vim
d31b09e8 159%{__mv} $RPM_BUILD_ROOT%{_datadir}/lilypond/%{version}/vim \
ade6ec15
JB
160 $RPM_BUILD_ROOT%{_datadir}/vim/vimfiles
161
889dbc87 162%find_lang %{name}
d2d2e1b7 163
164%clean
9079e26d 165rm -rf $RPM_BUILD_ROOT
d2d2e1b7 166
b82310a7
TP
167%pre
168test -h %{texmfdir}/dvips/lilypond || rm -rf %{texmfdir}/dvips/lilypond
169
889dbc87
JB
170%post
171[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
8bee7355
JK
172[ ! -x %{_bindir}/texhash ] || %{_bindir}/texhash 1>&2
173[ ! -x %{_bindir}/scrollkeeper-update ] || %{_bindir}/scrollkeeper-update
889dbc87
JB
174
175%postun
176[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
8bee7355
JK
177[ ! -x %{_bindir}/texhash ] || %{_bindir}/texhash 1>&2
178[ ! -x %{_bindir}/scrollkeeper-update ] || %{_bindir}/scrollkeeper-update
889dbc87
JB
179
180%files -f %{name}.lang
d2d2e1b7 181%defattr(644,root,root,755)
4e10dce8 182%doc AUTHORS.txt DEDICATION LICENSE* NEWS.txt README.md ROADMAP
d3bdc0ed
JB
183%attr(755,root,root) %{_bindir}/abc2ly
184%attr(755,root,root) %{_bindir}/convert-ly
185%attr(755,root,root) %{_bindir}/etf2ly
07662556 186%attr(755,root,root) %{_bindir}/lilymidi
d3bdc0ed
JB
187%attr(755,root,root) %{_bindir}/lilypond
188%attr(755,root,root) %{_bindir}/lilypond-book
189%attr(755,root,root) %{_bindir}/lilypond-invoke-editor
07662556 190%attr(755,root,root) %{_bindir}/lilysong
d3bdc0ed
JB
191%attr(755,root,root) %{_bindir}/midi2ly
192%attr(755,root,root) %{_bindir}/musicxml2ly
9079e26d
JB
193%dir %{_datadir}/lilypond
194%dir %{_datadir}/lilypond/%{version}
ade6ec15 195%{_datadir}/lilypond/%{version}/fonts
9079e26d
JB
196%{_datadir}/lilypond/%{version}/ly
197%{_datadir}/lilypond/%{version}/ps
4e10dce8 198%{_datadir}/lilypond/%{version}/python
9079e26d 199%{_datadir}/lilypond/%{version}/scm
e54f3148 200
c883b725 201%{texfontsdir}/source/lilypond
07662556 202%{texfontsdir}/tfm/lilypond
c883b725
JB
203%{texfontsdir}/type1/lilypond
204%{texmfdir}/dvips/lilypond
205%{texmfdir}/tex/lilypond
531a84c4 206
8bee7355 207%if %{with doc}
d31b09e8
JB
208%{_infodir}/lilypond-*.info*
209%{_infodir}/music-glossary.info*
210%{_mandir}/man1/abc2ly.1*
211%{_mandir}/man1/convert-ly.1*
212%{_mandir}/man1/etf2ly.1*
213%{_mandir}/man1/lilymidi.1*
214%{_mandir}/man1/lilypond.1*
215%{_mandir}/man1/lilypond-book.1*
216%{_mandir}/man1/lilypond-invoke-editor.1*
217%{_mandir}/man1/lilysong.1*
218%{_mandir}/man1/midi2ly.1*
219%{_mandir}/man1/musicxml2ly.1*
8bee7355 220%endif
1596742a
JB
221
222%files -n emacs-lilypond-mode-pkg
223%defattr(644,root,root,755)
d31b09e8 224%{_datadir}/emacs/site-lisp/lilypond-*.el
ade6ec15
JB
225
226%files -n vim-syntax-lilypond
227%defattr(644,root,root,755)
228%{_datadir}/vim/vimfiles/compiler/lilypond.vim
229%{_datadir}/vim/vimfiles/ftdetect/lilypond.vim
230%{_datadir}/vim/vimfiles/ftplugin/lilypond.vim
231%{_datadir}/vim/vimfiles/indent/lilypond.vim
232%{_datadir}/vim/vimfiles/syntax/lilypond*
This page took 0.129229 seconds and 4 git commands to generate.