b471b8a
%global pypi_name guizero
b471b8a
b471b8a
Name:           python-%{pypi_name}
d8574dc
Version:        1.3.0
2bdcad1
Release:        3%{?dist}
b471b8a
Summary:        Python module to allow learners to easily create GUIs
b471b8a
License:        BSD
b471b8a
URL:            https://github.com/lawsie/guizero
18a8ec7
Source0:        %{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz
b471b8a
BuildArch:      noarch
b471b8a
b471b8a
BuildRequires:  python3-devel
b471b8a
BuildRequires:  python3-tkinter
b471b8a
BuildRequires:  python3dist(pytest)
b471b8a
BuildRequires:  /usr/bin/xvfb-run
b471b8a
BuildRequires:  font(dejavusans)
b471b8a
BuildRequires:  font(dejavuserif)
86de0a7
BuildRequires:  pyproject-rpm-macros
b471b8a
b471b8a
%description
b471b8a
Guizero is designed to allow new learners to quickly and easily create
b471b8a
GUIs for their programs.
b471b8a
b471b8a
b471b8a
%package -n     python3-%{pypi_name}
b471b8a
Summary:        %{summary}
b471b8a
%{?python_provide:%python_provide python3-%{pypi_name}}
b471b8a
4a39924
Requires:       python3dist(pillow) >= 4.3
b471b8a
Requires:       python3-tkinter
b471b8a
b471b8a
%description -n python3-%{pypi_name}
b471b8a
Guizero is designed to allow new learners to quickly and easily create
b471b8a
GUIs for their programs.
b471b8a
b471b8a
86de0a7
%generate_buildrequires
86de0a7
%pyproject_buildrequires -r
86de0a7
86de0a7
b471b8a
%prep
18a8ec7
%autosetup -n %{pypi_name}-%{version}
b471b8a
b471b8a
# use free fonts in tests
b471b8a
sed -i 's/Times New Roman/DejaVu Serif/g' tests/*.py
b471b8a
sed -i 's/Arial/DejaVu Sans/g' tests/*.py
b471b8a
b471b8a
b471b8a
%build
86de0a7
%pyproject_wheel
b471b8a
b471b8a
b471b8a
%install
86de0a7
%pyproject_install
86de0a7
%pyproject_save_files guizero
b471b8a
b471b8a
b471b8a
%check
b471b8a
# if called form builddir, tests open a window when collecting and hang until closed
b471b8a
pushd tests
86de0a7
export PYTHONPATH=%{buildroot}%{python3_sitelib}
b471b8a
xvfb-run %{__python3} -m pytest -v
b471b8a
popd
b471b8a
b471b8a
86de0a7
%files -n python3-%{pypi_name} -f %{pyproject_files}
b471b8a
%doc README.md
b471b8a
%license license.txt
b471b8a
b471b8a
b471b8a
%changelog
2bdcad1
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-3
2bdcad1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
2bdcad1
9a636b9
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 1.3.0-2
9a636b9
- Rebuilt for Python 3.11
9a636b9
d8574dc
* Tue Mar 08 2022 Charalampos Stratakis <cstratak@redhat.com> - 1.3.0-1
d8574dc
- Update to 1.3.0
d8574dc
- Fixes: rhbz#2036490
d8574dc
dc70f99
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-3
dc70f99
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
dc70f99
c2806db
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-2
c2806db
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
c2806db
c986fba
* Fri Jun 25 2021 Tomas Hrnciar <thrnciar@redhat.com> - 1.2.0-1
c986fba
- Update to 1.2.0
c986fba
45862c7
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 1.1.1-3
45862c7
- Rebuilt for Python 3.10
45862c7
7097051
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-2
7097051
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
7097051
86de0a7
* Thu Jan 14 09:32:39 CET 2021 Tomas Hrnciar <thrnciar@redhat.com> - 1.1.0-4
86de0a7
- Update to 1.1.1
86de0a7
- Spec converted to use pyproject-rpm-macros
86de0a7
299f1ea
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-3
299f1ea
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
299f1ea
b0b5f28
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.1.0-2
b0b5f28
- Rebuilt for Python 3.9
b0b5f28
be1490b
* Tue Mar 17 2020 Tomas Hrnciar <thrnciar@redhat.com> - 1.1.0-1
be1490b
- Update to 1.1.0
be1490b
eee990c
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.4-3
eee990c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
eee990c
b3922b6
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.6.4-2
b3922b6
- Rebuilt for Python 3.8.0rc1 (#1748018)
b3922b6
18a8ec7
* Tue Aug 27 2019 Miro Hrončok <mhroncok@redhat.com> - 0.6.4-1
18a8ec7
- Update to 0.6.4 (#1745741)
18a8ec7
4e1be58
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.5.3-4
4e1be58
- Rebuilt for Python 3.8
4e1be58
5abc11c
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.3-3
5abc11c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
5abc11c
6f06430
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.3-2
6f06430
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
6f06430
b471b8a
* Tue Aug 14 2018 Miro Hrončok <mhroncok@redhat.com> - 0.5.3-1
b471b8a
- Initial package