Blob Blame Raw
%{!?pyver:%global pyver %(%{__python} -c "import sys ; print sys.version[:3]")}
%{!?python_sitearch:%global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
%{!?python_sitelib:%global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}

Name:           python-mwclient
Version:        0.6.3
Release:        3%{?dist}
Summary:        Mwclient is a client to the MediaWiki API

Group:          System Environment/Libraries
License:        MIT
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch

## upstream patches
Patch100: mwclient-wmf.patch

BuildRequires:  python-devel
Requires:  python-simplejson

Mwclient is a client to the MediaWiki API <>
and allows access to almost all implemented API functions

%setup -q -n mwclient

%patch100 -p1 -b .wmf

# intentionally left blank

install -d -m755 %{buildroot}%{python_sitelib}/mwclient/
install -pm 0644 *.py %{buildroot}%{python_sitelib}/mwclient/


%doc README.txt

* Tue Sep 22 2009 Steven M. Parrish <> - 0.6.3-3
- Fix patch

* Sun Sep 20 2009 Rex Dieter <> - 0.6.3-2
- upstream wmf patch
- %%doc README.txt
- use %%global (instead of %%define)

* Tue Sep 15 2009  Steven M. Parrish <> - 0.6.3-1
- Initial build