Skip to content

Instantly share code, notes, and snippets.

@jakubjedelsky
Last active August 29, 2015 14:08
Show Gist options
  • Save jakubjedelsky/9f61102d947f177ca93d to your computer and use it in GitHub Desktop.
Save jakubjedelsky/9f61102d947f177ca93d to your computer and use it in GitHub Desktop.
SPEC file for py3status
%{!?__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: 1.6
Release: 1%{?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}
%build
%{__python2} setup.py build
%install
%{__python2} setup.py install --skip-build --root $RPM_BUILD_ROOT
rm -rf $RPM_BUILD_ROOT/%{python2_sitelib}/modules
%files
%doc README.rst LICENSE CHANGELOG modules
%{_bindir}/py3status
%dir %{python2_sitelib}/py3status
%{python2_sitelib}/py3status/*
%{python2_sitelib}/*.egg-info
%changelog
* Mon Oct 27 2014 Jakub Jedelsky <[email protected]> - 1.6-1
- inital package
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment