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}
f40562c
Version:	0.14.3
e041fd2
Release:	7%{?dist}
e441c80
Summary:	%{common_sum}
e441c80
e441c80
License:	LGPLv3+
e441c80
URL:		https://github.com/moses-palmer/%{upname}
e441c80
Source0:	%{url}/archive/v%{version}.tar.gz#/%{name}-%{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
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
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)