diff --git a/.gitignore b/.gitignore index 55a4b62..e671f04 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ mwclient-0.6.5.zip /v0.7.0.tar.gz +/v0.7.1.tar.gz diff --git a/python-mwclient.spec b/python-mwclient.spec index 63e9cb0..1880905 100644 --- a/python-mwclient.spec +++ b/python-mwclient.spec @@ -4,30 +4,37 @@ %{!?python2_sitearch: %global python2_sitearch %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")} %endif -%global srcname mwclient +%global github_owner mwclient +%global github_name mwclient Name: python-mwclient -Version: 0.7.0 -Release: 2%{?dist} +Version: 0.7.1 +Release: 1%{?dist} Summary: Mwclient is a client to the MediaWiki API Group: System Environment/Libraries License: MIT -URL: https://github.com/mwclient/mwclient -Source0: https://github.com/mwclient/mwclient/archive/v%{version}.tar.gz +URL: https://github.com/%{github_owner}/%{github_name} +Source0: https://github.com/%{github_owner}/%{github_name}/archive/v%{version}.tar.gz BuildArch: noarch BuildRequires: python2-devel BuildRequires: python-setuptools +# For tests: cannot be run yet, need python-responses packaged +#BuildRequires: pytest +#BuildRequires: python-pytest-pep8 +#BuildRequires: python-pytest-cache +#BuildRequires: python-responses + Requires: python-simplejson Requires: python-requests %description -Mwclient is a client to the MediaWiki API -and allows access to almost all implemented API functions +mwclient is a lightweight Python client library to the MediaWiki API which +provides access to most API functionality. %prep -%setup -q -n %{srcname}-%{version} +%setup -q -n %{github_name}-%{version} %build @@ -39,6 +46,11 @@ rm -rf $RPM_BUILD_ROOT %{__python2} setup.py install --skip-build --root $RPM_BUILD_ROOT +# cannot be run yet, need python-responses packaged +#check +#%{__python2} setup.py test + + %clean rm -rf $RPM_BUILD_ROOT @@ -46,10 +58,13 @@ rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc README.rst REFERENCE.md RELEASE-NOTES.md LICENSE.md -%{python2_sitelib}/%{srcname}* +%{python2_sitelib}/%{github_name}* %changelog +* Fri Dec 12 2014 Adam Williamson - 0.7.1-1 +- new release 0.7.1, bit of spec cleaning + * Fri Oct 31 2014 Adam Williamson - 0.7.0-2 - requires python-requests diff --git a/sources b/sources index e893d16..42158b6 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -dc94c651c7c3fd9fa819b7c40a6a1e74 v0.7.0.tar.gz +b3ac26877e767774cc610e60af7c38c4 v0.7.1.tar.gz