rpms/python-mwclient/F-11 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 15:02:02 UTC 2009


Author: tuxbrewr

Update of /cvs/pkgs/rpms/python-mwclient/F-11
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv3604

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

mwclient-wmf.patch:
 client.py |    2 !!
 1 file changed, 2 modifications(!)

--- NEW FILE mwclient-wmf.patch ---
diff -crB mwclient/client.py mwclient-fedora/client.py
*** mwclient/client.py	2009-07-16 21:22:54.000000000 -0400
--- mwclient-fedora/client.py	2009-09-22 10:36:31.000000000 -0400
***************
*** 100,106 ****
  			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')
  			elif len(version) == 3 and 'rc' in version[2]:
  				self.version = (int(version[0]), int(version[1]), version[2])
  			elif len(version) == 3:
--- 100,106 ----
  			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][:-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:        3%{?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
* Tue Sep 22 2009 Steven M. Parrish <smparrish at gmail.com> - 0.6.3-3
- Fix patch

* 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/F-11/.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 15:02:02 -0000	1.2
@@ -0,0 +1 @@
+mwclient-0.6.3.zip


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/python-mwclient/F-11/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 15:02:02 -0000	1.2
@@ -0,0 +1 @@
+3f050ea125dc31971130449da6e3c0c2  mwclient-0.6.3.zip




More information about the fedora-extras-commits mailing list