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