|
|
ea0d17d |
%{!?pyver:%global pyver %(%{__python} -c "import sys ; print sys.version[:3]")}
|
|
|
ea0d17d |
%{!?python_sitearch:%global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
|
|
ea0d17d |
%{!?python_sitelib:%global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
|
ea0d17d |
|
|
|
ea0d17d |
|
|
|
ea0d17d |
Name: python-mwclient
|
|
|
fba6c00 |
Version: 0.6.5
|
|
|
fba6c00 |
Release: 1%{?dist}
|
|
|
ea0d17d |
Summary: Mwclient is a client to the MediaWiki API
|
|
|
ea0d17d |
|
|
|
ea0d17d |
Group: System Environment/Libraries
|
|
|
ea0d17d |
License: MIT
|
|
|
ea0d17d |
URL: http://sourceforge.net/apps/mediawiki/mwclient/index.php?title=Main_Page
|
|
|
ea0d17d |
Source0: http://downloads.sourceforge.net/mwclient/mwclient-%{version}.zip
|
|
|
ea0d17d |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
ea0d17d |
BuildArch: noarch
|
|
|
ea0d17d |
|
|
|
ea0d17d |
BuildRequires: python-devel
|
|
|
ea0d17d |
Requires: python-simplejson
|
|
|
ea0d17d |
|
|
|
ea0d17d |
%description
|
|
|
ea0d17d |
Mwclient is a client to the MediaWiki API <http://mediawiki.org/wiki/API>
|
|
|
ea0d17d |
and allows access to almost all implemented API functions
|
|
|
ea0d17d |
|
|
|
ea0d17d |
%prep
|
|
|
ea0d17d |
%setup -q -n mwclient
|
|
|
ea0d17d |
|
|
|
ea0d17d |
|
|
|
ea0d17d |
%build
|
|
|
ea0d17d |
# intentionally left blank
|
|
|
ea0d17d |
|
|
|
ea0d17d |
|
|
|
ea0d17d |
%install
|
|
|
ea0d17d |
rm -rf $RPM_BUILD_ROOT
|
|
|
ea0d17d |
install -d -m755 %{buildroot}%{python_sitelib}/mwclient/
|
|
|
ea0d17d |
install -pm 0644 *.py %{buildroot}%{python_sitelib}/mwclient/
|
|
|
ea0d17d |
|
|
|
ea0d17d |
|
|
|
ea0d17d |
%clean
|
|
|
ea0d17d |
rm -rf $RPM_BUILD_ROOT
|
|
|
ea0d17d |
|
|
|
ea0d17d |
|
|
|
ea0d17d |
%files
|
|
|
ea0d17d |
%defattr(-,root,root,-)
|
|
|
fba6c00 |
%doc README.txt REFERENCE.txt RELEASE-NOTES.txt
|
|
|
ea0d17d |
%{python_sitelib}/mwclient/
|
|
|
ea0d17d |
|
|
|
ea0d17d |
|
|
|
ea0d17d |
%changelog
|
|
|
fba6c00 |
* Thu Oct 27 2011 Robert Scheck <robert@fedoraproject.org> - 0.6.5-1
|
|
|
fba6c00 |
- Upgrade to 0.6.5 (#714302)
|
|
|
fba6c00 |
|
|
|
a63a48f |
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.3-5
|
|
|
a63a48f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
a63a48f |
|
|
|
3d73c0f |
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 0.6.3-4
|
|
|
3d73c0f |
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
|
|
|
3d73c0f |
|
|
|
6970c02 |
* Tue Sep 22 2009 Steven M. Parrish <smparrish@gmail.com> - 0.6.3-3
|
|
|
6970c02 |
- Fix patch
|
|
|
6970c02 |
|
|
|
ea0d17d |
* Sun Sep 20 2009 Rex Dieter <rdieter@fedoraproject.org> - 0.6.3-2
|
|
|
ea0d17d |
- upstream wmf patch
|
|
|
ea0d17d |
- %%doc README.txt
|
|
|
ea0d17d |
- use %%global (instead of %%define)
|
|
|
ea0d17d |
|
|
|
ea0d17d |
* Tue Sep 15 2009 Steven M. Parrish <smparrish@gmail.com> - 0.6.3-1
|
|
|
ea0d17d |
- Initial build
|