99f5ff
%global upstream_name pythondialog
99f5ff
%global upstream_name2 python2-pythondialog
7ca1bc
%if 0%{?fedora}
7ca1bc
%bcond_without python3
7ca1bc
%else
7ca1bc
%bcond_with python3
7ca1bc
%endif
cvsextras 60d51f
cvsextras 60d51f
Name:           python-dialog
ce40f2
Version:        3.3.0
78beef
Release:        20%{?dist}
cvsextras 60d51f
Summary:        Python interface to the Unix dialog utility
cvsextras 60d51f
b9c573
License:        LGPLv2+
b305f4
URL:            http://pythondialog.sourceforge.net
99f5ff
# Upstream releases two tarballs from the same sources
ce40f2
Source0:        https://pypi.python.org/packages/source/p/%{upstream_name}/%{upstream_name}-%{version}.tar.bz2
99f5ff
Source1:        https://pypi.python.org/packages/source/p/%{upstream_name2}/%{upstream_name2}-%{version}.tar.bz2
cvsextras 60d51f
cvsextras 60d51f
BuildArch:      noarch
7ca1bc
%if %{with python3}
99f5ff
BuildRequires:  python3-devel
7ca1bc
%endif
99f5ff
db10ae
%{!?python2_sitelib: %global python2_sitelib %{python_sitelib}}
db10ae
%{!?_licensedir:%global license %doc}
db10ae
cvsextras 60d51f
%description
cvsextras 60d51f
A Python interface to the Unix dialog utility, designed to provide an
cvsextras 60d51f
easy, pythonic and as complete as possible way to use the dialog
cvsextras 60d51f
features from Python code.
cvsextras 60d51f
7ca1bc
%if %{with python3}
99f5ff
%package -n python3-dialog
99f5ff
Requires:       dialog
99f5ff
Summary:        %{summary}
dda524
%{?python_provide:%python_provide python3-dialog}
99f5ff
99f5ff
%description -n python3-dialog
99f5ff
A Python interface to the Unix dialog utility, designed to provide an
99f5ff
easy, pythonic and as complete as possible way to use the dialog
99f5ff
features from Python code.
7ca1bc
%endif
99f5ff
99f5ff
cvsextras 60d51f
%prep
ce40f2
%setup -q -n %{upstream_name}-%{version}
99f5ff
tar -xvf %{SOURCE1}
cvsextras 60d51f
cvsextras 60d51f
%build
7ca1bc
%if %{with python3}
99f5ff
%py3_build
7ca1bc
%endif
dda524
99f5ff
pushd %{upstream_name2}-%{version}
99f5ff
popd
cvsextras 60d51f
cvsextras 60d51f
%install
7ca1bc
%if %{with python3}
99f5ff
%py3_install
7ca1bc
%endif
db10ae
99f5ff
pushd %{upstream_name2}-%{version}
99f5ff
popd
cvsextras 60d51f
7ca1bc
%if %{with python3}
99f5ff
%files -n python3-dialog
db10ae
%license COPYING
db10ae
%doc README.rst examples/
99f5ff
%{python3_sitelib}/dialog.py*
99f5ff
%{python3_sitelib}/__pycache__/
99f5ff
%{python3_sitelib}/pythondialog-*.egg-info
7ca1bc
%endif
99f5ff
cvsextras 60d51f
%changelog
78beef
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 3.3.0-20
78beef
- Rebuilt for Python 3.8.0rc1 (#1748018)
78beef
8e4a46
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 3.3.0-19
8e4a46
- Rebuilt for Python 3.8
8e4a46
0801fc
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.0-18
0801fc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
0801fc
efce68
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.0-17
efce68
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
efce68
363e66
* Wed Oct 10 2018 Miro Hrončok <mhroncok@redhat.com> - 3.3.0-16
363e66
- Python2 binary package has been removed
363e66
  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
363e66
67617e
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.0-15
67617e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
67617e
50dc7c
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 3.3.0-14
50dc7c
- Rebuilt for Python 3.7
50dc7c
3240aa
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.0-13
3240aa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
3240aa
6d3339
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.0-12
6d3339
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
6d3339
69a8dc
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.0-11
69a8dc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
69a8dc
257c63
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 3.3.0-10
257c63
- Rebuild for Python 3.6
257c63
2f6a84
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.3.0-9
2f6a84
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
2f6a84
77e98e
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.0-8
77e98e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
77e98e
db10ae
* Sat Dec 12 2015 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 3.3.0-7
db10ae
- Restore %%license
db10ae
- Simplify spec file
db10ae
dda524
* Sat Dec 12 2015 Itamar Reis Peixoto <itamar@ispbrasil.com.br> - 3.3.0-6
dda524
- include python_provide macro bz# 1291005
dda524
- include el6 conditionals / fixes from Nick Le Mouton
dda524
7ca1bc
* Thu Dec 03 2015 Robert Buchholz <rbu@goodpoint.de> - 3.3.0-5
7ca1bc
- epel7: Only build python2 package
7ca1bc
f9f0c7
* Thu Dec 03 2015 Robert Buchholz <rbu@goodpoint.de> - 3.3.0-4
f9f0c7
- No need to convert README, upstream provides utf-8
f9f0c7
- Remove obsolete comment
f9f0c7
522381
* Thu Nov 12 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.3.0-3
522381
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
522381
a8016c
* Thu Nov 12 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.3.0-2
a8016c
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
a8016c
99f5ff
* Thu Nov 12 2015 Zbigniew Jędrzejewski-Szmek <zbyszek@laptop> - 3.3.0-1
99f5ff
- Add python3 subpackage
99f5ff
ce40f2
* Wed Oct 28 2015 Felix Schwarz <fschwarz@fedoraproject.org> - 3.3.0-1
f6ef5d
- update to new upstream version (#998103)
ce40f2
- drop patch for demo.py (included in upstream release)
ce40f2
c171f5
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.7-20
c171f5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
c171f5
91bd54
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.7-19
91bd54
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
91bd54
5da71c
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.7-18
5da71c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
5da71c
14d4fb
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.7-17
14d4fb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
14d4fb
a744f1
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.7-16
a744f1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
a744f1
4dcb46
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.7-15
4dcb46
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
4dcb46
759098
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.7-14
759098
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
759098
Milos Jakubicek c5ddaa
* Thu Jan 20 2011 Miloš Jakubíček <xjakub@fi.muni.cz> - 2.7-13
Milos Jakubicek c5ddaa
- Added python-dialog-demo.patch, fix BZ#594988
Milos Jakubicek c5ddaa
- Fix rpmlint: W: file-not-utf8 /usr/share/doc/python-dialog-2.7/TODO
Milos Jakubicek c5ddaa
- Fix rpmlint: W: file-not-utf8 /usr/share/doc/python-dialog-2.7/README
Milos Jakubicek c5ddaa
507994
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 2.7-12
507994
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
507994
d9dcf3
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.7-11
d9dcf3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
d9dcf3
e362c9
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.7-10
e362c9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
e362c9
fee091
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 2.7-9
fee091
- Rebuild for Python 2.6
fee091
076fd7
* Thu Jun 05 2008 Aurelien Bompard <abompard@fedoraproject.org> 2.7-8
076fd7
- add egg info
076fd7
b9c573
* Sun Aug 26 2007 Aurelien Bompard <abompard@fedoraproject.org> 2.7-7
b9c573
- fix license tag (see head of dialog.py)
b9c573
5edb23
* Sat Dec 09 2006 Aurelien Bompard <abompard@fedoraproject.org> 2.7-6
5edb23
- rebuild
5edb23
53040e
* Wed Nov 01 2006 Aurelien Bompard <abompard@fedoraproject.org> 2.7-5
53040e
- unghost .pyo file
53040e
d90023
* Wed Aug 30 2006 Aurelien Bompard <abompard@fedoraproject.org> 2.7-4
d90023
- rebuild
d90023
969a7d
* Wed Feb 22 2006 Aurelien Bompard <gauret[at]free.fr> 2.7-3
969a7d
- rebuild for FC5
969a7d
d1adc4
* Fri Dec 23 2005 Aurelien Bompard <gauret[at]free.fr> 2.7-1
d1adc4
- remove hardcoded disttag
d1adc4
01920b
* Wed Mar 30 2005 Aurelien Bompard <gauret[at]free.fr> 2.7-1.fc4
01920b
- change release tag for FC4
01920b
- drop Epoch
01920b
b305f4
* Thu Feb 10 2005 Aurelien Bompard <gauret[at]free.fr> 0:2.7-1
b305f4
- update to version 2.7
b305f4
- update URL
b305f4
b305f4
* Sat Feb 05 2005 Toshio Kuratomi <toshio@tiki-lounge.com> 0:2.0.6-2
b305f4
- Change %%python_sitearch to %%python_sitelib as sitearch references
b305f4
  /usr/lib64 on x86_64 multilib and the python files install to /usr/lib.
5d440d
cvsextras 60d51f
* Sat Jul 24 2004 Aurelien Bompard <gauret[at]free.fr> 0:2.06-0.fdr.1
cvsextras 60d51f
- Initial Fedora Package