]> git.pld-linux.org Git - packages/lilypond.git/blob - lilypond.spec
- updated to 2.2.4
[packages/lilypond.git] / lilypond.spec
1 Summary:        Music typesetter
2 Summary(pl):    Program do sk³adania nut
3 Name:           lilypond
4 Version:        2.2.4
5 Release:        1
6 License:        GPL
7 Group:          Applications/Sound
8 Source0:        http://lilypond.org/download/v2.2/%{name}-%{version}.tar.gz
9 # Source0-md5:  2f96e5ca3ae6943ed22a28a0b35927fd
10 Patch0:         %{name}-info.patch
11 Patch1:         %{name}-sh.patch
12 URL:            http://www.lilypond.org/
13 BuildRequires:  automake
14 BuildRequires:  bison >= 1.25
15 BuildRequires:  flex
16 BuildRequires:  fontforge
17 BuildRequires:  gettext-devel
18 BuildRequires:  guile-devel >= 1.6
19 BuildRequires:  kpathsea-devel
20 BuildRequires:  libltdl-devel
21 BuildRequires:  libstdc++-devel >= 5:3.0
22 BuildRequires:  mftrace >= 1.0.17
23 BuildRequires:  python-devel >= 2.1
24 BuildRequires:  tetex-dvips
25 BuildRequires:  tetex-fonts-cm
26 BuildRequires:  tetex-fonts-cmextra
27 BuildRequires:  tetex-fonts-jknappen
28 BuildRequires:  texinfo >= 4.6
29 BuildConflicts: lilypond < 1.6.0
30 Requires:       tetex-format-latex
31 Requires:       ghostscript
32 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33
34 %define         _localedir      %{_prefix}/share/locale
35 %define         texfontsdir     /usr/share/texmf/fonts
36
37 %description
38 LilyPond is a music typesetter. It produces beautiful sheet music
39 using a high level description file as input. It excels at typesetting
40 classical music, but you can also print pop-songs. With LilyPond we
41 hope to make music publication software available to anyone on the
42 internet.
43
44 %description -l pl
45 LilyPond jest programem do sk³adu muzycznego. Produkuje piêkne
46 partytury u¿ywaj±c jêzyka wysokiego poziomu jako wej¶cie. S³u¿y przede
47 wszystkim do sk³adania nut muzyki klasycznej, ale mo¿na drukowaæ tak¿e
48 piosenki pop. Autorzy udostêpniaj± LilyPond z nadziej± dostarczenia
49 wszystkim oprogramowania do publikacji muzycznych.
50
51 %package -n emacs-lilypond-mode-pkg
52 Summary:        LilyPond mode for Emacs
53 Summary(pl):    Tryb edycji plików LilyPond dla Emacsa
54 Group:          Applications/Editors/Emacs
55 Requires:       %{name} = %{version}-%{release}
56 Requires:       emacs
57
58 %description -n emacs-lilypond-mode-pkg
59 LilyPond mode for Emacs.
60
61 %description -n emacs-lilypond-mode-pkg -l pl
62 Tryb edycji plików LilyPond dla Emacsa.
63
64 %prep
65 %setup -q
66 %patch0 -p1
67 %patch1 -p1
68
69 %build
70 cp -f /usr/share/automake/config.* stepmake/bin
71 %configure \
72         %{?debug:--disable-optimising}
73 %{__make}
74
75 %install
76 rm -rf $RPM_BUILD_ROOT
77 install -d $RPM_BUILD_ROOT%{texfontsdir}/{source,tfm,type1}
78
79 %{__make} install \
80         local_lilypond_datadir=$RPM_BUILD_ROOT%{_datadir}/lilypond/%{version} \
81         datadir=$RPM_BUILD_ROOT%{_datadir} \
82         mandir=$RPM_BUILD_ROOT%{_mandir} \
83         bindir=$RPM_BUILD_ROOT%{_bindir} \
84         localedir=$RPM_BUILD_ROOT%{_localedir} \
85         infodir=$RPM_BUILD_ROOT%{_infodir} \
86         libdir=$RPM_BUILD_ROOT%{_libdir}
87
88 %{__perl} -pi -e "s#$RPM_BUILD_ROOT##" $RPM_BUILD_ROOT%{_bindir}/*
89
90 mv -f $RPM_BUILD_ROOT%{_datadir}/lilypond/%{version}/fonts/source \
91       $RPM_BUILD_ROOT%{texfontsdir}/source/lilypond
92 mv -f $RPM_BUILD_ROOT%{_datadir}/lilypond/%{version}/fonts/tfm \
93       $RPM_BUILD_ROOT%{texfontsdir}/tfm/lilypond
94 mv -f $RPM_BUILD_ROOT%{_datadir}/lilypond/%{version}/fonts/type1 \
95       $RPM_BUILD_ROOT%{texfontsdir}/type1/lilypond
96
97 mv -f $RPM_BUILD_ROOT%{_infodir}/lilypond/*.info* $RPM_BUILD_ROOT%{_infodir}
98
99 %find_lang %{name}
100
101 %clean
102 rm -rf $RPM_BUILD_ROOT
103
104 %post
105 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
106 [ ! -x /usr/bin/texhash ] || /usr/bin/texhash 1>&2
107
108 %postun
109 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
110 [ ! -x /usr/bin/texhash ] || /usr/bin/texhash 1>&2
111
112 %files -f %{name}.lang
113 %defattr(644,root,root,755)
114 %doc AUTHORS.txt ChangeLog DEDICATION NEWS.txt README.txt THANKS
115 %attr(755,root,root) %{_bindir}/*
116 %dir %{_libdir}/lilypond
117 %dir %{_libdir}/lilypond/%{version}
118 %dir %{_libdir}/lilypond/%{version}/python
119 %attr(755,root,root) %{_libdir}/lilypond/%{version}/python/midi.so
120 %dir %{_datadir}/lilypond
121 %dir %{_datadir}/lilypond/%{version}
122 %{_datadir}/lilypond/%{version}/ly
123 %{_datadir}/lilypond/%{version}/ps
124 %dir %{_datadir}/lilypond/%{version}/python
125 %{_datadir}/lilypond/%{version}/python/*.py
126 %{_datadir}/lilypond/%{version}/python/*.pyc
127 %{_datadir}/lilypond/%{version}/dvips
128 %{_datadir}/lilypond/%{version}/fonts
129 %{_datadir}/lilypond/%{version}/scm
130 %{_datadir}/lilypond/%{version}/tex
131 %{_infodir}/*.info*
132 %{_mandir}/man1/*
133
134 # lilypond/stepmake build system - not needed at runtime
135 #%{_datadir}/lilypond/%{version}/make
136
137 %{texfontsdir}/*/lilypond
138
139 # needed? subpackage? (could install in non-existing dir)
140 %{_datadir}/omf/lilypond
141
142 %files -n emacs-lilypond-mode-pkg
143 %defattr(644,root,root,755)
144 %{_datadir}/emacs/site-lisp/*.el
This page took 0.088493 seconds and 4 git commands to generate.