You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
56 lines
1.3 KiB
56 lines
1.3 KiB
Name: rainbowstream |
|
Version: 1.5.2 |
|
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 |
|
#Source1: consumer.py |
|
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 |
|
#cp %{SOURCE1} rainbowstream/ |
|
|
|
%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
|
|
|