8384932
%{!?__python2: %global __python2 /usr/bin/python2}
8384932
%{!?python2_sitelib: %global python2_sitelib %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
8384932
8384932
Name:		py3status
56cf20d
Version:	2.2
1ffae5f
Release:	2%{?dist}
8384932
Summary:	An extensible i3status wrapper written in python
8384932
8384932
Group:		User Interface/Desktops
8384932
License:	BSD
8384932
URL:		https://github.com/ultrabug/py3status
8384932
Source0:	https://github.com/ultrabug/py3status/archive/%{version}.tar.gz
8384932
8384932
BuildArch:	noarch
8384932
BuildRequires:	python2-devel
8384932
BuildRequires:	python-setuptools
8384932
Requires:	i3status
8384932
8384932
%description
8384932
Using py3status, you can take control of your i3bar easily by:
8384932
- writing your own modules and have their output displayed on your bar
8384932
- handling click events on your i3bar and play with them in no time
8384932
- seeing your clock tick every second whatever your i3status interval
8384932
No extra configuration file needed, just install & enjoy !
8384932
8384932
%prep
8384932
%setup -q -n py3status-%{version}
1ffae5f
mv %{_builddir}/py3status-%{version}/py3status/modules %{_builddir}/py3status-%{version}/
8384932
8384932
%build
8384932
%{__python2} setup.py build
8384932
8384932
8384932
%install
8384932
%{__python2} setup.py install --skip-build --root $RPM_BUILD_ROOT
1ffae5f
rm -rf %{buildroot}/%{python2_sitelib}/modules
8384932
8384932
8384932
%files
1ffae5f
%doc README.rst LICENSE CHANGELOG modules
8384932
%{_bindir}/py3status
8384932
%dir %{python2_sitelib}/py3status
8384932
%{python2_sitelib}/py3status/*
8384932
%{python2_sitelib}/*.egg-info
8384932
8384932
8384932
%changelog
1ffae5f
* Thu Jan 29 2015 Jakub Jedelsky <jakub.jedelsky@gmail.com> - 2.2-2
1ffae5f
- move modules dir into docs
1ffae5f
56cf20d
* Thu Jan 22 2015 Jakub Jedelsky <jakub.jedelsky@gmail.com> - 2.2-1
56cf20d
- update to new version
56cf20d
8384932
* Mon Oct 27 2014 Jakub Jedelsky <jakub.jedelsky@gmail.com> - 1.6-1
8384932
- inital package