Sophie

Sophie

distrib > Mandriva > 10.2 > x86_64 > by-pkgid > ccb40ffadbfbb29660c6555680d4dce2 > files > 2

python-bibtex-1.2.1-2mdk.src.rpm

%define name python-bibtex
%define version 1.2.1
%define release 2mdk

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
* Sun Dec 05 2004 Michael Scherer <misc@mandrake.org> 1.2.1-2mdk
- Rebuild for new python

* Fri Aug 13 2004 Goetz Waschk <waschk@linux-mandrake.com> 1.2.1-1mdk
- New release 1.2.1

* Fri Apr 30 2004 Goetz Waschk <waschk@linux-mandrake.com> 1.2.0-1mdk
- New release 1.2.0

* 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