|
|
b471b8a |
%global pypi_name guizero
|
|
|
b471b8a |
|
|
|
b471b8a |
Name: python-%{pypi_name}
|
|
|
be1490b |
Version: 1.1.0
|
|
|
299f1ea |
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(setuptools)
|
|
|
b471b8a |
BuildRequires: python3dist(pytest)
|
|
|
b471b8a |
BuildRequires: /usr/bin/xvfb-run
|
|
|
b471b8a |
BuildRequires: font(dejavusans)
|
|
|
b471b8a |
BuildRequires: font(dejavuserif)
|
|
|
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 |
|
|
|
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
|
|
|
b471b8a |
%py3_build
|
|
|
b471b8a |
|
|
|
b471b8a |
|
|
|
b471b8a |
%install
|
|
|
b471b8a |
%py3_install
|
|
|
b471b8a |
|
|
|
b471b8a |
|
|
|
b471b8a |
%check
|
|
|
b471b8a |
# if called form builddir, tests open a window when collecting and hang until closed
|
|
|
b471b8a |
pushd tests
|
|
|
b471b8a |
export PYTHONPATH=%{buildroot}%{python3_sitelib}
|
|
|
b471b8a |
xvfb-run %{__python3} -m pytest -v
|
|
|
b471b8a |
popd
|
|
|
b471b8a |
|
|
|
b471b8a |
|
|
|
b471b8a |
%files -n python3-%{pypi_name}
|
|
|
b471b8a |
%doc README.md
|
|
|
b471b8a |
%license license.txt
|
|
|
18a8ec7 |
%{python3_sitelib}/%{pypi_name}/
|
|
|
18a8ec7 |
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info/
|
|
|
b471b8a |
|
|
|
b471b8a |
|
|
|
b471b8a |
%changelog
|
|
|
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
|