Blob Blame History Raw
%{!?__python2: %global __python2 /usr/bin/python2}
%{!?python2_sitelib: %global python2_sitelib %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}

Name:		py3status
Version:	2.2
Release:	2%{?dist}
Summary:	An extensible i3status wrapper written in python

Group:		User Interface/Desktops
License:	BSD
URL:		https://github.com/ultrabug/py3status
Source0:	https://github.com/ultrabug/py3status/archive/%{version}.tar.gz

BuildArch:	noarch
BuildRequires:	python2-devel
BuildRequires:	python-setuptools
Requires:	i3status

%description
Using py3status, you can take control of your i3bar easily by:
- writing your own modules and have their output displayed on your bar
- handling click events on your i3bar and play with them in no time
- seeing your clock tick every second whatever your i3status interval
No extra configuration file needed, just install & enjoy !

%prep
%setup -q -n py3status-%{version}
mv %{_builddir}/py3status-%{version}/py3status/modules %{_builddir}/py3status-%{version}/

%build
%{__python2} setup.py build


%install
%{__python2} setup.py install --skip-build --root $RPM_BUILD_ROOT
rm -rf %{buildroot}/%{python2_sitelib}/modules


%files
%doc README.rst LICENSE CHANGELOG modules
%{_bindir}/py3status
%dir %{python2_sitelib}/py3status
%{python2_sitelib}/py3status/*
%{python2_sitelib}/*.egg-info


%changelog
* Thu Jan 29 2015 Jakub Jedelsky <jakub.jedelsky@gmail.com> - 2.2-2
- move modules dir into docs

* Thu Jan 22 2015 Jakub Jedelsky <jakub.jedelsky@gmail.com> - 2.2-1
- update to new version

* Mon Oct 27 2014 Jakub Jedelsky <jakub.jedelsky@gmail.com> - 1.6-1
- inital package