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