--- /dev/null
+--- lilypond-1.4.13/scripts/lilypond-book.py.orig Thu May 2 12:11:47 2002
++++ lilypond-1.4.13/scripts/lilypond-book.py Sun Jul 14 23:25:15 2002
+@@ -60,6 +60,8 @@
+ except ImportError:
+ import re
+
++import sre
++
+ program_version = '@TOPLEVEL_VERSION@'
+ if program_version == '@' + 'TOPLEVEL_VERSION' + '@':
+ program_version = '1.4.12'
+@@ -485,7 +487,7 @@
+
+ def output_verbatim (body):
+ if __main__.format == 'texi':
+- body = re.sub ('([@{}])', '@\\1', body)
++ body = sre.sub ('([@{}])', '@\\1', body)
+ return get_output ('output-verbatim') % body
+
+
Summary: Music typesetter
Summary(pl): Program do skĀ³adania nut
Name: lilypond
-Version: 1.2.6
+Version: 1.4.13
Release: 1
License: GPL
Group: Applications/Sound
Source0: ftp://ftp.gnu.org/gnu/lilypond/%{name}-%{version}.tar.gz
+Patch0: %{name}-pythonhack.patch
URL: http://www.cs.uu.nl/people/hanwen/lilypond/index.html
+BuildRequires: bison
+BuildRequires: flex
+BuildRequires: guile-devel
+BuildRequires: kpathsea-devel
+BuildRequires: libltdl-devel
+BuildRequires: libstdc++-devel
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+%define _datadir %{_prefix}/share/lilypond
+%define _localedir %{_prefix}/share/locale
+
%description
LilyPond is a music typesetter. It produces beautiful sheet music
using a high level description file as input. It excels at typesetting
%prep
%setup -q
+%patch -p1
%build
%configure2_13
%install
rm -rf $RPM_BUILD_ROOT
-%{__make} install DESTDIR=$RPM_BUILD_ROOT
+%{__make} install \
+ datadir=$RPM_BUILD_ROOT%{_datadir} \
+ mandir=$RPM_BUILD_ROOT%{_mandir} \
+ bindir=$RPM_BUILD_ROOT%{_bindir} \
+ localedir=$RPM_BUILD_ROOT%{_localedir} \
+ infodir=$RPM_BUILD_ROOT%{_infodir}
+
+%find_lang %{name}
%clean
rm -rf ${RPM_BUILD_ROOT}
-%files
+%post
+[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
+
+%postun
+[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
+
+%files -f %{name}.lang
%defattr(644,root,root,755)
+%doc AUTHORS.txt CHANGES DEDICATION FAQ.txt NEWS README.txt
+%attr(755,root,root) %{_bindir}/*
+%{_datadir}
+%{_infodir}/*
+%{_mandir}/man1/*