%define name python-bibtex %define version 1.1.93.1 %define release 1mdk Summary: BibTeX and recode bindings for python Name: %{name} Version: %{version} Release: %{release} Source0: http://prdownloads.sourceforge.net/pybliographer/%{name}-%{version}.tar.bz2 # (fc) warning : this is very ugly but pybliographer doesn't work with recode > 3.5 Source1: recode-3.5.tar.bz2 URL: http://pybliographer.org/ License: GPL Group: Development/Python BuildRoot: %{_tmppath}/%{name}-buildroot BuildConflicts: recode-devel BuildRequires: libpython-devel >= %pyver BuildRequires: glib2-devel BuildRequires: flex %description This python extension contains a BibTeX parser and a simple binding to the GNU Recode library. They are intended to be used with pybliographer. %prep %setup -q -a 1 %build (cd recode-3.5 && CFLAGS='-O0 -fPIC' %configure --disable-shared ) make -C recode-3.5 python setup.py build_ext -I recode-3.5/src/ -L recode-3.5/src/.libs/ %install rm -rf $RPM_BUILD_ROOT python setup.py install --root=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %doc README %_libdir/python%pyver/site-packages/_bibtex.so %_libdir/python%pyver/site-packages/_recode.so %changelog * Wed Oct 8 2003 Götz Waschk <waschk@linux-mandrake.com> 1.1.93.1-1mdk - drop patch - new version * Mon Oct 6 2003 Götz Waschk <waschk@linux-mandrake.com> 1.1.93-1mdk - disable tests, the testsuite is missing - new version * Sun Sep 21 2003 Götz Waschk <waschk@linux-mandrake.com> 1.1.92-2mdk - fix buildrequires * Fri Sep 19 2003 Götz Waschk <waschk@linux-mandrake.com> 1.1.92-1mdk - initial package