%define __python /opt/freeware/bin/python %{!?python_sitelib_platform: %define python_sitelib_platform %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} Summary: A fast metadata parser for yum Name: yum-metadata-parser Version: 1.1.4 Release: 2 Source0: %{name}-%{version}.tar.gz License: GPL Group: Development/Libraries URL: http://devel.linux.duke.edu/cgi-bin/viewcvs.cgi/yum-metadata-parser/ #Requires: yum >= 2.6.2 BuildRequires: python-devel BuildRequires: glib2-devel BuildRequires: libxml2-devel BuildRequires: sqlite-devel #BuildRequires: nss-devel BuildRequires: pkgconfig Requires: sqlite >= 3.7.15.2 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root %description Fast metadata parser for yum implemented in C. %prep %setup export LDFLAGS="-I/opt/freeware/include/glib-2.0" export CFLAGS="-I/opt/freeware/include/glib-2.0" %build %{__python} setup.py build %install %{__python} setup.py install -O1 --root=%{buildroot} %clean %{__rm} -rf %{buildroot} %files %defattr(-,root,root) %doc README AUTHORS ChangeLog %{python_sitelib_platform}/_sqlitecache.so %{python_sitelib_platform}/sqlitecachec.py %{python_sitelib_platform}/sqlitecachec.pyc %{python_sitelib_platform}/sqlitecachec.pyo %{python_sitelib_platform}/*egg-info %changelog * Fri Feb 17 2017 Ravi Hirekurabar 1.1.4-2 - Rebuilt changing Requires: sqlite >= 3.7.15.2 * Mon Jun 13 2016 Sangamesh Mallayya - Adopted for AIX Toolbox * Fri May 29 2014 Sangamesh Mallayya - Adopted for AIX Toolbox * Thu Jan 7 2010 Seth Vidal - 1.1.4 b/c I made a mistake * Thu Jan 7 2010 Seth Vidal - add the egginfo support for python 2.5 and above * Thu Jan 7 2010 Seth Vidal - bump the version number for an official release * Wed Aug 29 2007 Seth Vidal - remove the %{dist} which doesn't really belong in the upstream pkg * Fri Aug 24 2007 Seth Vidal - 1.1.2 * Wed May 16 2007 Paul Nasrat - Expose DBVERSION * Fri Apr 27 2007 Seth Vidal - split out 1.1.0 for dbversion 10 * Wed Apr 4 2007 Seth Vidal - 1.0.4 * Sun Jan 7 2007 Seth Vidal - 1.0.3 * Wed Jul 12 2006 Seth Vidal - 1.0.2 * Mon Jun 19 2006 Seth Vidal - 1.0.1 * Mon Jun 05 2006 Tambet Ingo - 1.0-3 - Require yum >= 2.6.2 * Sat Jun 04 2006 Terje Rosten - 1.0-2 - add buildrequires - doc files - url * Fri Jun 02 2006 Terje Rosten - 1.0-0.1 - initial package