rpms/python-mwclient/devel mwclient-wmf.patch, NONE, 1.1 python-mwclient.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Steven M. Parrish tuxbrewr at fedoraproject.org
Tue Sep 22 13:05:47 UTC 2009


Author: tuxbrewr

Update of /cvs/pkgs/rpms/python-mwclient/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv23049

Modified Files:
	.cvsignore sources 
Added Files:
	mwclient-wmf.patch python-mwclient.spec 
Log Message:
Initial build of python-mwclient

mwclient-wmf.patch:
 client.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- NEW FILE mwclient-wmf.patch ---
diff -up mwclient/client.py.wmf mwclient/client.py
--- mwclient/client.py.wmf	2009-07-16 21:22:54.000000000 -0500
+++ mwclient/client.py	2009-09-20 14:57:59.971785030 -0500
@@ -100,7 +100,7 @@ class Site(object):
 			if len(version) == 2 and version[1].endswith('alpha'):
 				self.version = (int(version[0]), int(version[1][:-5]), 'alpha')
 			elif len(version) == 2 and version[1].endswith('alpha-wmf'):
-				self.version = (int(version[0]), int(version[1][:-5]), 'alpha-wmf')
+				self.version = (int(version[0]), int(version[1][:-9]), 'alpha-wmf')
 			elif len(version) == 3 and 'rc' in version[2]:
 				self.version = (int(version[0]), int(version[1]), version[2])
 			elif len(version) == 3:


--- NEW FILE python-mwclient.spec ---
%{!?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:        2%{?dist}
Summary:        Mwclient is a client to the MediaWiki API

Group:          System Environment/Libraries
License:        MIT
URL:            http://sourceforge.net/apps/mediawiki/mwclient/index.php?title=Main_Page
Source0:        http://downloads.sourceforge.net/mwclient/mwclient-%{version}.zip
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch

## upstream patches
Patch100: mwclient-wmf.patch

BuildRequires:  python-devel
Requires:  python-simplejson

%description
Mwclient is a client to the MediaWiki API <http://mediawiki.org/wiki/API>
and allows access to almost all implemented API functions

%prep
%setup -q -n mwclient

%patch100 -p1 -b .wmf


%build
# intentionally left blank


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


%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root,-)
%doc README.txt
%{python_sitelib}/mwclient/


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

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


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/python-mwclient/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- .cvsignore	22 Sep 2009 02:05:16 -0000	1.1
+++ .cvsignore	22 Sep 2009 13:05:47 -0000	1.2
@@ -0,0 +1 @@
+mwclient-0.6.3.zip


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/python-mwclient/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- sources	22 Sep 2009 02:05:16 -0000	1.1
+++ sources	22 Sep 2009 13:05:47 -0000	1.2
@@ -0,0 +1 @@
+3f050ea125dc31971130449da6e3c0c2  mwclient-0.6.3.zip




More information about the scm-commits mailing list