%if ! (0%{?fedora} > 12 || 0%{?rhel} > 5) %{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} %endif %global tarball_name simplemediawiki Name: python-%{tarball_name} Version: 1.0 Release: 2%{?dist} Summary: Extremely low-level wrapper to the MediaWiki API Group: Development/Libraries License: LGPLv2+ URL: https://github.com/ianweller/python-simplemediawiki Source0: http://pypi.python.org/packages/source/s/%{tarball_name}/%{tarball_name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: python-devel python-iso8601 %description The module simplemediawiki is an extremely low-level wrapper to the MediaWiki API. It automatically handles cookies and g zip compression so that you can make basic calls to the API in the easiest way possible. It also provides a few functions to make day-to-day API access easier. %prep %setup -qn %{tarball_name}-%{version} %build %{__python} setup.py build %install rm -rf %{buildroot} %{__python} setup.py install -O1 --root=%{buildroot} --record=INSTALLED_FILES %clean rm -rf %{buildroot} %files %defattr(-,root,root) %doc COPYING PKG-INFO INSTALLED_FILES %{python_sitelib}/* %changelog * Fri Nov 12 2010 Abdel Martínez - 1.0-2 - Correcting license. - Remove/adding variables. - Modifying description length. - Adding documentation. * Wed Nov 10 2010 Abdel Martínez - 1.0-1 - First package build.