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
3b6c62d
Version:	2.4
3b6c62d
Release:	1%{?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}
338867a
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
338867a
rm -rf %{buildroot}/%{python2_sitelib}/modules
8384932
8384932
8384932
%files
338867a
%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
3b6c62d
* Thu Jul 16 2015 Jakub Jedelsky <jakub.jedelsky@gmail.com> - 2.4-1
3b6c62d
- update to version 2.4
3b6c62d
338867a
* Thu Jan 29 2015 Jakub Jedelsky <jakub.jedelsky@gmail.com> - 2.2-2
338867a
- move modules dir into docs
338867a
9d699b7
* Thu Jan 22 2015 Jakub Jedelsky <jakub.jedelsky@gmail.com> - 2.2-1
9d699b7
- update to new version
9d699b7
8384932
* Mon Oct 27 2014 Jakub Jedelsky <jakub.jedelsky@gmail.com> - 1.6-1
8384932
- inital package