rpms/python-twitter/EL-4 python-twitter.spec,NONE,1.1

Tom Callaway spot at fedoraproject.org
Thu Nov 20 19:12:22 UTC 2008


Author: spot

Update of /cvs/pkgs/rpms/python-twitter/EL-4
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv19442/EL-4

Added Files:
	python-twitter.spec 
Log Message:
initial branching


--- NEW FILE python-twitter.spec ---
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}

Name:			python-twitter
Summary: 		A python wrapper around the Twitter API
Version:		0.5
Release:		1%{?dist}.1
License:		ASL 2.0
Group:			System Environment/Libraries
Source0:		http://python-twitter.googlecode.com/files/%{name}-%{version}.tar.gz
Patch0:			python-twitter-0.5-fixjsontests.patch
URL:			http://code.google.com/p/python-twitter/
BuildRoot:		%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch:		noarch
BuildRequires:		python-devel, python-setuptools, python-simplejson
Requires:		python-simplejson

%description
This library provides a pure python interface for the Twitter API. Twitter 
(http://twitter.com) provides a service that allows people to connect via the 
web, IM, and SMS. Twitter exposes a web services API 
(http://twitter.com/help/api) and this library is intended to make it even 
easier for python programmers to use. 

%prep
%setup -q
%patch0 -p1
chmod -x README

%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

%check
export PYTHONPATH=$RPM_BUILD_ROOT/%{python_sitelib}
%{__python} setup.py test

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,-)
%doc README PKG-INFO
%{python_sitelib}/twitter.*
%{python_sitelib}/python_twitter-%{version}-py*.egg-info

%changelog
* Mon Oct 20 2008 Tom "spot" Callaway <tcallawa at redhat.com> 0.5-1.1
- Initial package for Fedora




More information about the fedora-extras-commits mailing list