%global sum An extensible i3status wrapper written in python %bcond_without doc # test are somehow broken, so it's disabled now %bcond_with test Name: py3status Version: 3.6 Release: 1%{?dist} Summary: %{sum} Group: User Interface/Desktops License: BSD URL: https://github.com/ultrabug/py3status Source0: https://github.com/ultrabug/%{name}/archive/%{version}/%{name}-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3-setuptools %if %{with doc} BuildRequires: dejavu-sans-mono-fonts BuildRequires: python3-sphinx BuildRequires: python3-fonttools BuildRequires: python3-pillow %endif # docs %if %{with test} BuildRequires: python3-tox %endif #test 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 ! %if %{with doc} %package doc Summary: Documentation files for %{name} BuildArch: noarch %description doc %{sum}. %endif #doc %prep %setup -q -n py3status-%{version} %build %py3_build %if %{with doc} # we have to build docs in doc dir because of hardcoded paths pushd doc export PYTHONPATH=.. sphinx-build-3 -d ../buildtree . ../html popd %{__rm} -rf html/.buildinfo %endif # doc %install %py3_install %if %{with test} %check tox %endif # test %files %license LICENSE %doc README.rst CHANGELOG %{_bindir}/py3-cmd %{_bindir}/py3status %dir %{python3_sitelib}/py3status %{python3_sitelib}/py3status/* %{python3_sitelib}/*.egg-info %if %{with doc} %files doc %license LICENSE %doc html/ %endif # doc %changelog * Thu Aug 24 2017 Jakub Jedelsky - 3.5-1 - update to version 3.6 - add -doc subpackage * Thu Jul 27 2017 Fedora Release Engineering - 3.5-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Mon Apr 10 2017 Jakub Jedelsky - 3.5-1 - update to version 3.5 * Sat Feb 11 2017 Fedora Release Engineering - 3.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Mon Dec 19 2016 Miro HronĨok - 3.3-2 - Rebuild for Python 3.6 * Sun Nov 20 2016 Jakub Jedelsky - 3.3-1 - update to version 3.3 * Thu Nov 03 2016 Jakub Jedelsky - 3.2-1 - update to version 3.2 * Thu Sep 15 2016 Jakub Jedelsky - 3.1-1 - update to version 3.1 * Tue Jul 19 2016 Fedora Release Engineering - 3.0-2 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages * Mon Jun 27 2016 Jakub Jedelsky - 3.0-1 - update to version 3.0 * Thu Apr 21 2016 Jakub Jedelsky - 2.9-1 - update to version 2.9 - use python3 support as default (BZ#1282483) * Thu Feb 04 2016 Fedora Release Engineering - 2.7-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Thu Nov 12 2015 Jakub Jedelsky - 2.7-1 - update to version 2.7 * Mon Aug 31 2015 Jakub Jedelsky - 2.6-2 - fix modules location, it won't be used in %doc anymore * Mon Aug 31 2015 Jakub Jedelsky - 2.6-1 - update to version 2.6 * Tue Aug 25 2015 Jakub Jedelsky - 2.5-1 - update to version 2.5 * Thu Jul 16 2015 Jakub Jedelsky - 2.4-1 - update to version 2.4 * Thu Jun 18 2015 Fedora Release Engineering - 2.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Thu Jan 29 2015 Jakub Jedelsky - 2.2-2 - move modules dir into docs * Thu Jan 22 2015 Jakub Jedelsky - 2.2-1 - update to new version * Mon Oct 27 2014 Jakub Jedelsky - 1.6-1 - inital package