[python-twitter] update to 2.0, fix missing requires

Tom Callaway spot at fedoraproject.org
Mon Nov 24 14:46:26 UTC 2014


commit 421ac25767e0a9a9add0f84df05bf20ce4a8f73e
Author: Tom Callaway <spot at fedoraproject.org>
Date:   Mon Nov 24 09:46:19 2014 -0500

    update to 2.0, fix missing requires

 .gitignore          |    1 +
 python-twitter.spec |   38 ++++++++++++++++----------------------
 sources             |    2 +-
 3 files changed, 18 insertions(+), 23 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 3721e5d..01298a0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,3 +2,4 @@ python-twitter-0.6.tar.gz
 /python-twitter-0.8.1.tar.gz
 /python-twitter-0.8.2.tar.gz
 /python-twitter-0.8.5.tar.gz
+/v2.0.tar.gz
diff --git a/python-twitter.spec b/python-twitter.spec
index c6cfc54..b9ed291 100644
--- a/python-twitter.spec
+++ b/python-twitter.spec
@@ -2,17 +2,17 @@
 
 Name:			python-twitter
 Summary:		A python wrapper around the Twitter API
-Version:		1.1
-Release:		2%{?dist}
+Version:		2.0
+Release:		1%{?dist}
 License:		ASL 2.0
 Group:			System Environment/Libraries
-Source0:		http://python-twitter.googlecode.com/files/%{name}-%{version}.tar.gz
-URL:			http://code.google.com/p/python-twitter/
+Source0:		https://github.com/bear/python-twitter/archive/v%{version}.tar.gz
+URL:			https://github.com/bear/python-twitter
 BuildRoot:		%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildArch:		noarch
 BuildRequires:		python-devel, python-setuptools, python-simplejson
 BuildRequires:		python-oauth2, python-httplib2
-Requires:		python-simplejson, python-httplib2, python-oauth2
+Requires:		python-simplejson, python-httplib2, python-oauth2, python-requests-oauthlib
 
 %description
 This library provides a pure python interface for the Twitter API. Twitter 
@@ -24,35 +24,29 @@ easier for python programmers to use.
 %prep
 %setup -q
 
-# Scrape out python versioning
-for i in examples/twitter-to-xhtml.py examples/tweet.py setup.py twitter.py twitter_test.py; do
-	sed -i 's|python2.4|python|g' $i
-done
-
-
 %build
 %{__python} setup.py build
 
 %install
-rm -rf $RPM_BUILD_ROOT
-%{__python} setup.py install --skip-build --root $RPM_BUILD_ROOT
-chmod +x $RPM_BUILD_ROOT%{python_sitelib}/twitter.py
+%{__python} setup.py install --skip-build --root %{buildroot}
 
 %check
-# Broken in 0.8.1
-# export PYTHONPATH=$RPM_BUILD_ROOT/%{python_sitelib}
+# This test just downloads things from pypy
+# export PYTHONPATH=%{buildroot}/%{python_sitelib}
 # %{__python} setup.py test
 
-%clean
-rm -rf $RPM_BUILD_ROOT
-
 %files
-%defattr(-,root,root,-)
-%doc README.md PKG-INFO
-%{python_sitelib}/twitter.*
+%doc README.rst CHANGES COPYING AUTHORS.rst
+%license LICENSE
+%{python_sitelib}/twitter/
 %{python_sitelib}/python_twitter-%{version}-py*.egg-info
 
 %changelog
+* Mon Nov 24 2014 Tom Callaway <spot at fedoraproject.org> - 2.0-1
+- fix missing dep (bz1167232)
+- update to v2.0
+- correct URL and Source0 for new home
+
 * Sat Jun 07 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.1-2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
 
diff --git a/sources b/sources
index adfb58f..6e6dd26 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-3d03ca0301d17e41ae2abe69b504c894  python-twitter-1.1.tar.gz
+4aa8dbc2a4a7777733d70d2fa7fde391  v2.0.tar.gz


More information about the scm-commits mailing list