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