File python-bibtex.spec of Package python-bibtex

#
# spec file for package python-bibtex (Version 1.2.4)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           python-bibtex
BuildRequires:  glib2-devel python-devel recode-devel
Summary:        Python Interface to BibTeX Files
License:        GPL v2 or later
Version:        1.2.4
Release:        119
Group:          Development/Libraries/Python
Source:         http://unc.dl.sourceforge.net/sourceforge/pybliographer/%{name}-%{version}.tar.gz
Patch0:         %{name}-1.2.4-py26-testresults.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Url:            http://pybliographer.org/
%py_requires

%description
This python extension contains a BibTeX parser and simple bindings to
the GNU Recode library. This extension is intended to be used with
pybliographer.



Authors:
--------
    Frederic Gobry <frederic.gobry@epfl.ch>
    Herve Dreau <hdreau@cybercable.fr>
    Travis Oliphant <Oliphant.Travis@mayo.edu>

%prep
%setup -q
%patch0

%build
export CFLAGS="$RPM_OPT_FLAGS -fstrict-aliasing"
python setup.py build

%install
python setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT --record-rpm=INSTALLED_FILES

%clean
rm -rf $RPM_BUILD_ROOT

%files -f INSTALLED_FILES
%defattr(-, root, root)
%doc README

%changelog
* Tue Apr 21 2009 matejcik@suse.cz
- removed rm-rf from %%install
- switched to %%py_requires
- updated tests to reflect new item ordering (omg)
* Wed Jul 25 2007 jmatejek@suse.cz
- update to 1.2.4
  * upstream fixes deallocation bug, dropping our patch
  * fixed parsing of standalone lowercase names, like "others"
  * fixed bug in escaping non-title fields
* Mon Oct 23 2006 jmatejek@suse.cz
- fixed bad deallocation that caused python interpreter to abort
  (#208228)
* Tue Feb 28 2006 jmatejek@suse.cz
- updated to reflect python changes due to #149809
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Mon Oct 17 2005 ke@suse.de
- Update to version 1.2.2.
* Fri Oct 08 2004 ke@suse.de
- Update to version 1.2.1.
- Remove obsolete patch.
* Wed Aug 11 2004 pth@suse.de
- Fix pointer<->int casts
* Wed Oct 22 2003 mcihar@suse.cz
- no root for build
- cleaned up spec file
* Tue Oct 21 2003 ke@suse.de
- Use versioned dependency on python; recommended by Michal Cihar.
* Tue Oct 21 2003 ke@suse.de
- New package: version 1.1.93.1.
openSUSE Build Service is sponsored by