e441c80
# Testsuite needs human interaction.
e441c80
%bcond_with test
e441c80
e441c80
%global common_sum Provides system tray integration
e441c80
%global common_desc This library allows you to create a system tray icon.
e441c80
e441c80
%global upname pystray
e441c80
e441c80
e441c80
Name:		python-%{upname}
59230dc
Version:	0.17.3
d4ff2c7
Release:	4%{?dist}
e441c80
Summary:	%{common_sum}
e441c80
e441c80
License:	LGPLv3+
e441c80
URL:		https://github.com/moses-palmer/%{upname}
941e297
Source0:	%{url}/archive/v%{version}/%{upname}-%{version}.tar.gz
e441c80
e441c80
BuildArch:	noarch
e441c80
e441c80
%description
e441c80
%{common_desc}
e441c80
e441c80
e441c80
%package -n python3-%{upname}
e441c80
Summary:	%{common_sum}
e441c80
e041fd2
BuildRequires:	python3-devel >= 3.4
e441c80
BuildRequires:	python3-pillow
e441c80
BuildRequires:	python3-setuptools
e441c80
BuildRequires:	python3-six
e041fd2
BuildRequires:	python3-xlib >= 0.17
e441c80
f2509eb
Requires:	libappindicator-gtk3
e441c80
Requires:	python3-pillow
e441c80
Requires:	python3-six
e441c80
Requires:	python3-xlib		>= 0.17
e441c80
e441c80
%{?python_provide:%python_provide python3-%{upname}}
e441c80
e441c80
%description -n python3-%{upname}
e441c80
%{common_desc}
e441c80
e441c80
e441c80
%package -n python3-%{upname}-doc
e441c80
Summary:	Documentation-files for python3-%{upname}
e441c80
e441c80
BuildRequires:	fdupes
e041fd2
BuildRequires:	python3-sphinx >= 1.3.1
e441c80
e441c80
%description -n python3-%{upname}-doc
e441c80
This package contains the Documentation-files for python3-%{upname}.
e441c80
e441c80
e441c80
%prep
e441c80
%autosetup -n %{upname}-%{version}
e441c80
e441c80
# Remove pre-built and bundled crap.
e441c80
%{__rm} -fr *.egg*
e441c80
e441c80
e441c80
%build
e441c80
%py3_build
e041fd2
sphinx-build-3 docs docs/build-%{python3_version}/html
e441c80
%fdupes -s docs/build-%{python3_version}
e441c80
for f in .buildinfo .doctrees .inv ; do
e441c80
	%{_bindir}/find docs/ -name "*${f}*" -print0 |			\
e441c80
		%{_bindir}/xargs -0 %{__rm} -frv
e441c80
done
e441c80
e441c80
e441c80
%install
e441c80
%py3_install
e441c80
e441c80
%if %{with test}
e441c80
%check
e441c80
%{__python3} setup.py test
e441c80
%endif # with test
e441c80
e441c80
e441c80
%files -n python3-%{upname}
e441c80
%license COPYING*
e041fd2
%doc README.rst
e441c80
%{python3_sitelib}/%{upname}
e441c80
%{python3_sitelib}/%{upname}-%{version}-py%{python3_version}.egg-info
e441c80
e441c80
%files -n python3-%{upname}-doc
e041fd2
%doc CHANGES.rst docs/build-%{python3_version}/html
e441c80
e441c80
e441c80
%changelog
d4ff2c7
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.17.3-4
d4ff2c7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
d4ff2c7
4c8b38b
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.17.3-3
4c8b38b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
4c8b38b
46f7503
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.17.3-2
46f7503
- Rebuilt for Python 3.10
46f7503
59230dc
* Sun May 02 2021 Mattia Verga <mattia.verga@protonmail.com> - 0.17.3-1
59230dc
- Update to 0.17.3 (fixes rhbz#1903824)
59230dc
878d104
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.17.1-3
878d104
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
878d104
f2509eb
* Sat Oct 10 2020 Neal Gompa <ngompa13@gmail.com> - 0.17.1-2
f2509eb
- Add missing dependency on libappindicator-gtk3
f2509eb
9000a80
* Sat Oct 10 2020 Neal Gompa <ngompa13@gmail.com> - 0.17.1-1
9000a80
- Update to 0.17.1 (#1873893)
9000a80
941e297
* Mon Aug 03 2020 Neal Gompa <ngompa13@gmail.com> - 0.16.0-1
941e297
- Update to 0.16.0
941e297
1a15375
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.14.3-14
1a15375
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
1a15375
43db709
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.14.3-13
43db709
- Rebuilt for Python 3.9
43db709
6f4d2ca
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.14.3-12
6f4d2ca
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
6f4d2ca
34275d2
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.14.3-11
34275d2
- Rebuilt for Python 3.8.0rc1 (#1748018)
34275d2
ffebc33
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.14.3-10
ffebc33
- Rebuilt for Python 3.8
ffebc33
6550614
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.14.3-9
6550614
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
6550614
306a4cf
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.14.3-8
306a4cf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
306a4cf
e041fd2
* Thu Oct 11 2018 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.14.3-7
e041fd2
- Python2 binary package has been removed
e041fd2
  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
e041fd2
d0cbb25
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.14.3-6
d0cbb25
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
d0cbb25
0e25df6
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.14.3-5
0e25df6
- Rebuilt for Python 3.7
0e25df6
1e87860
* Wed Feb 28 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.14.3-4
1e87860
- Update Python 2 dependency declarations to new packaging standards
1e87860
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
1e87860
de90f1c
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.14.3-3
de90f1c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
de90f1c
53abd86
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.14.3-2
53abd86
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
53abd86
f40562c
* Thu Mar 30 2017 Björn Esser <besser82@fedoraproject.org> - 0.14.3-1
f40562c
- New upstream release (rhbz#1437277)
f40562c
e441c80
* Wed Mar 29 2017 Björn Esser <besser82@fedoraproject.org> - 0.14.2-1
e441c80
- Initial import (rhbz#1436347)
e441c80
e441c80
* Tue Mar 28 2017 Björn Esser <besser82@fedoraproject.org> - 0.14.2-0.2
e441c80
- Added versioned (Build)Requires
e441c80
e441c80
* Mon Mar 27 2017 Björn Esser <besser82@fedoraproject.org> - 0.14.2-0.1
e441c80
- New upstream release
e441c80
e441c80
* Mon Mar 27 2017 Björn Esser <besser82@fedoraproject.org> - 0.14.1-0.1
e441c80
- Initial rpm-release (rhbz#1436347)