Jon Ciesla 28efce6
%if 0%{?fedora} > 12 || 0%{?rhel} > 6
Jon Ciesla 28efce6
%global with_python3 1
Jon Ciesla 28efce6
%endif
Jon Ciesla 28efce6
Jon Ciesla 28efce6
Jon Ciesla 28efce6
%global upstream_name easygui
Jon Ciesla 28efce6
Jon Ciesla 28efce6
Name:           python-easygui
Jon Ciesla 28efce6
Version:        0.96
e2cc522
Release:        26%{?dist}
Jon Ciesla 28efce6
Summary:        Very simple, very easy GUI programming in Python
Jon Ciesla 28efce6
Jon Ciesla 28efce6
#License file, says CC 2.0 upstream website says with this version they moved to BSD.
Jon Ciesla 28efce6
License:        BSD
Jon Ciesla 28efce6
URL:            http://easygui.sourceforge.net/
Jon Ciesla 28efce6
# Source doesn't follow the normal SF convention since upstream isn't using the SF Files system.
Jon Ciesla 28efce6
Source0:        http://easygui.sourceforge.net/download/version%{version}/easygui_v%{version}_docs.tar.gz
Jon Ciesla 28efce6
Source1:        easygui-LICENSE.txt
Jon Ciesla 28efce6
Jon Ciesla 28efce6
BuildArch:      noarch
Jon Ciesla 28efce6
BuildRequires:  python2-devel
Jon Ciesla 28efce6
%if 0%{?with_python3}
17e21d6
BuildRequires: python%{python3_pkgversion}-devel
17e21d6
BuildRequires: python%{python3_pkgversion}-setuptools
Jon Ciesla 28efce6
%endif
9a132cd
BuildRequires: python2-setuptools
104fc9b
104fc9b
%global _description\
104fc9b
Experienced Pythonistas need support for quick and dirty GUI features. New\
104fc9b
Python programmers need GUI capabilities that don't require any knowledge\
104fc9b
of Tkinter, frames, widgets, callbacks or lambda. This is what EasyGUI\
104fc9b
provides. Using EasyGUI, all GUI interactions are invoked by simple\
104fc9b
function calls.\
104fc9b
\
104fc9b
EasyGUI is different from other GUIs in that EasyGUI is NOT event-driven.\
104fc9b
It allows you to program in a traditional linear fashion, and to put up\
104fc9b
dialogs for simple input and output when you need to. If you have not yet\
104fc9b
learned the event-driven paradigm for GUI programming, EasyGUI will allow\
104fc9b
you to be productive with very basic tasks immediately. Later, if you\
104fc9b
wish to make the transition to an event-driven GUI paradigm, you can do\
104fc9b
so with a more powerful GUI package such as anygui, PythonCard, Tkinter,\
104fc9b
wxPython, etc.
104fc9b
104fc9b
%description %_description
104fc9b
104fc9b
%package -n python2-%{upstream_name}
104fc9b
Summary: %summary
9a132cd
Requires:       python2-setuptools
9a132cd
Requires:       python2-tkinter
104fc9b
%{?python_provide:%python_provide python2-%{upstream_name}}
Jon Ciesla 28efce6
104fc9b
%description -n python2-%{upstream_name} %_description
Jon Ciesla 28efce6
Jon Ciesla 28efce6
%if 0%{?with_python3}
17e21d6
%package -n python%{python3_pkgversion}-%{upstream_name}
Jon Ciesla 28efce6
Summary:        Very simple, very easy GUI programming in Python3
17e21d6
Requires:       python%{python3_pkgversion}-setuptools
17e21d6
Requires:       python%{python3_pkgversion}-tkinter
Jon Ciesla 28efce6
17e21d6
%description -n python%{python3_pkgversion}-%{upstream_name}
Jon Ciesla 28efce6
Experienced Pythonistas need support for quick and dirty GUI features. New 
Jon Ciesla 28efce6
Python programmers need GUI capabilities that don't require any knowledge 
Jon Ciesla 28efce6
of Tkinter, frames, widgets, callbacks or lambda. This is what EasyGUI 
Jon Ciesla 28efce6
provides. Using EasyGUI, all GUI interactions are invoked by simple 
Jon Ciesla 28efce6
function calls.
Jon Ciesla 28efce6
Jon Ciesla 28efce6
EasyGUI is different from other GUIs in that EasyGUI is NOT event-driven. 
Jon Ciesla 28efce6
It allows you to program in a traditional linear fashion, and to put up 
Jon Ciesla 28efce6
dialogs for simple input and output when you need to. If you have not yet 
Jon Ciesla 28efce6
learned the event-driven paradigm for GUI programming, EasyGUI will allow 
Jon Ciesla 28efce6
you to be productive with very basic tasks immediately. Later, if you 
Jon Ciesla 28efce6
wish to make the transition to an event-driven GUI paradigm, you can do 
Jon Ciesla 28efce6
so with a more powerful GUI package such as anygui, PythonCard, Tkinter, 
Jon Ciesla 28efce6
wxPython, etc. 
Jon Ciesla 28efce6
This package allows for use of easygui with Python 3.
Jon Ciesla 28efce6
%endif # with_python3
Jon Ciesla 28efce6
Jon Ciesla 28efce6
%prep
Jon Ciesla 28efce6
%setup -qc %{upstream_name}-%{version}
Jon Ciesla 28efce6
Jon Ciesla 28efce6
Jon Ciesla 28efce6
%if 0%{?with_python3}
Jon Ciesla 28efce6
rm -rf %{py3dir}
Jon Ciesla 28efce6
cp -a . %{py3dir}
Jon Ciesla 28efce6
%endif # with_python3
Jon Ciesla 28efce6
Jon Ciesla 28efce6
%build
c159e98
%{__python2} setup.py build
Jon Ciesla 28efce6
Jon Ciesla 28efce6
%if 0%{?with_python3}
Jon Ciesla 28efce6
pushd %{py3dir}
Jon Ciesla 28efce6
CFLAGS="$RPM_OPT_FLAGS" %{__python3} setup.py build
Jon Ciesla 28efce6
popd
Jon Ciesla 28efce6
%endif # with_python3
Jon Ciesla 28efce6
Jon Ciesla 28efce6
%install
Jon Ciesla 28efce6
rm -rf %{buildroot}
Jon Ciesla 28efce6
# Must do the python3 install first because the scripts in /usr/bin are
Jon Ciesla 28efce6
# overwritten with every setup.py install (and we want the python2 version
Jon Ciesla 28efce6
# to be the default for now).
Jon Ciesla 28efce6
%if 0%{?with_python3}
Jon Ciesla 28efce6
pushd %{py3dir}
Jon Ciesla 28efce6
%{__python3} setup.py install --skip-build --root %{buildroot}
Jon Ciesla 28efce6
popd
Jon Ciesla 28efce6
%endif # with_python3
Jon Ciesla 28efce6
c159e98
%{__python2} setup.py install --skip-build --root %{buildroot} \
Jon Ciesla 28efce6
           --install-data=%{_datadir}
Jon Ciesla 28efce6
Jon Ciesla 28efce6
install -m 644 %{SOURCE1} .
Jon Ciesla 28efce6
Jon Ciesla 28efce6
104fc9b
%files -n python2-%{upstream_name}
Jon Ciesla 28efce6
%doc easygui_license_info.txt cookbook/ easygui_pydoc.html easygui_version_info.html epydoc/ faq/ pydoc/ tutorial/
Jon Ciesla 28efce6
%doc easygui-LICENSE.txt
c159e98
%{python2_sitelib}/easygui*
Jon Ciesla 28efce6
Jon Ciesla 28efce6
%if 0%{?with_python3}
17e21d6
%files -n python%{python3_pkgversion}-%{upstream_name}
Jon Ciesla 28efce6
%doc easygui_license_info.txt cookbook/ easygui_pydoc.html easygui_version_info.html epydoc/ faq/ pydoc/ tutorial/
Jon Ciesla 28efce6
%doc easygui-LICENSE.txt
Jon Ciesla 28efce6
%{python3_sitelib}/easygui*
c159e98
%{python3_sitelib}/__pycache__/easygui.cpython-3*.py*
Jon Ciesla 28efce6
%endif
Jon Ciesla 28efce6
Jon Ciesla 28efce6
%changelog
e2cc522
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.96-26
e2cc522
- Rebuilt for Python 3.8
e2cc522
6121146
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.96-25
6121146
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
6121146
a0660fa
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.96-24
a0660fa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
a0660fa
eee67fb
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.96-23
eee67fb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
eee67fb
dea62c1
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.96-22
dea62c1
- Rebuilt for Python 3.7
dea62c1
9a132cd
* Wed Feb 21 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.96-21
9a132cd
- Update Python 2 dependency declarations to new packaging standards
9a132cd
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
9a132cd
98c037b
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.96-20
98c037b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
98c037b
17e21d6
* Wed Oct 04 2017 Robert Scheck <robert@fedoraproject.org> - 0.96-19
17e21d6
- Minor spec file changes to build also for EPEL 7 (#1498637)
17e21d6
104fc9b
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.96-18
104fc9b
- Python 2 binary package renamed to python2-easygui
104fc9b
  See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
104fc9b
53ffa13
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.96-17
53ffa13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
53ffa13
7248d2e
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.96-16
7248d2e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
7248d2e
2dd6d26
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.96-15
2dd6d26
- Rebuild for Python 3.6
2dd6d26
2e0442a
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.96-14
2e0442a
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
2e0442a
2544d9c
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.96-13
2544d9c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
2544d9c
c159e98
* Thu Nov 19 2015 Jon Ciesla <limburgher@gmail.com> - 0.96-12
c159e98
- Fix Python 3 build.
c159e98
e6365e9
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.96-11
e6365e9
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
e6365e9
1174dff
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.96-10
1174dff
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
1174dff
4087f86
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.96-9
4087f86
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
4087f86
4dbc8c0
* Wed May 28 2014 Kalev Lember <kalevlember@gmail.com> - 0.96-8
4dbc8c0
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
4dbc8c0
621d25c
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.96-7
621d25c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
621d25c
87373e8
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.96-6
87373e8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
87373e8
cddd767
* Sat Aug 04 2012 David Malcolm <dmalcolm@redhat.com> - 0.96-5
cddd767
- rebuild for https://fedoraproject.org/wiki/Features/Python_3.3
cddd767
9f9d6db
* Thu Jul 26 2012 David Malcolm <dmalcolm@redhat.com> - 0.96-4
9f9d6db
- generalize fileglob to ease transition to Python 3.3
9f9d6db
56c17b1
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.96-3
56c17b1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
56c17b1
dbc462c
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.96-2
dbc462c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
dbc462c
Jon Ciesla 28efce6
* Sun Sep 25 2011 Jon Ciesla <limb@jcomserv.net> - 0.96-1
Jon Ciesla 28efce6
- Corrected pycache file inclusion.
Jon Ciesla 28efce6
Jon Ciesla 28efce6
* Wed May 04 2011 Jon Ciesla <limb@jcomserv.net> - 0.96-0
Jon Ciesla 28efce6
- Initial RPM release