added rainbowstream package
Signed-off-by: tuibuilder_pel7x64builder0 <tuibuilder@powerel.org>master
parent
2c762778ee
commit
5861a474ea
|
@ -0,0 +1,54 @@
|
|||
Name: rainbowstream
|
||||
Version: 1.3.8
|
||||
Release: 1%{dist}
|
||||
License: MIT
|
||||
Group: Development/Languages
|
||||
URL: http://www.rainbowstream.org/
|
||||
Source0: https://pypi.python.org/packages/source/r/%{name}/%{name}-%{version}.tar.gz
|
||||
Summary: A smart and nice Twitter client on terminal.
|
||||
Requires: python-dateutil
|
||||
Requires: python-requests
|
||||
Requires: pyfiglet
|
||||
Requires: python-twitter
|
||||
Requires: python-pillow
|
||||
Requires: python-arrow
|
||||
Requires: python-pocket
|
||||
Requires: python-setuptools
|
||||
Requires: PySocks
|
||||
BuildArch: noarch
|
||||
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
|
||||
|
||||
|
||||
%description
|
||||
Terminal-based Twitter Client.
|
||||
Realtime tweetstream, compose, search , favorite, ...
|
||||
and much more fun directly from terminal.
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q -n %{name}-%{version}
|
||||
cp setup.py setup.py.orig
|
||||
sed s/"requests==2.5.3"/"requests"/g setup.py.orig > setup.py
|
||||
|
||||
%build
|
||||
%{__python} setup.py build
|
||||
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
%{__python} setup.py install --optimize=2 --root $RPM_BUILD_ROOT
|
||||
sed -i 's|#!/usr/bin/python|#!/usr/bin/python -O|g' %{buildroot}%{_bindir}/%{name}
|
||||
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
|
||||
%files
|
||||
%defattr(644,root,root,755)
|
||||
%attr(755,root,root) %{_bindir}/%{name}
|
||||
%{python_sitelib}/%{name}/*
|
||||
%{python_sitelib}/%{name}-%{version}-py%{python_ver}.egg-info
|
||||
|
||||
|
||||
%changelog
|
Loading…
Reference in New Issue