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
7ca1bc
Release:        5%{?dist}
cvsextras 60d51f
Summary:        Python interface to the Unix dialog utility
cvsextras 60d51f
cvsextras 60d51f
Group:          Development/Languages
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
ce40f2
BuildRequires:  python2-devel
7ca1bc
%if %{with python3}
99f5ff
BuildRequires:  python3-devel
7ca1bc
%endif
99f5ff
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
99f5ff
%package -n python2-dialog
99f5ff
Requires:       dialog
99f5ff
Summary:	%{summary}
99f5ff
99f5ff
%description -n python2-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.
99f5ff
7ca1bc
%if %{with python3}
99f5ff
%package -n python3-dialog
99f5ff
Requires:       dialog
99f5ff
Summary:        %{summary}
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
cp -a README.rst README
7ca1bc
%endif
99f5ff
pushd %{upstream_name2}-%{version}
99f5ff
%py2_build
7ca1bc
cp -a README.rst README
99f5ff
popd
cvsextras 60d51f
cvsextras 60d51f
%install
7ca1bc
%if %{with python3}
99f5ff
%py3_install
7ca1bc
%endif
99f5ff
pushd %{upstream_name2}-%{version}
e57b57
%py2_install
99f5ff
popd
cvsextras 60d51f
7ca1bc
%if %{with python3}
99f5ff
%files -n python3-dialog
99f5ff
%license COPYING
7ca1bc
%doc README examples/
99f5ff
%{python3_sitelib}/dialog.py*
99f5ff
%{python3_sitelib}/__pycache__/
99f5ff
%{python3_sitelib}/pythondialog-*.egg-info
7ca1bc
%endif
99f5ff
99f5ff
%files -n python2-dialog
f6ef5d
%license %{upstream_name2}-%{version}/COPYING
7ca1bc
%doc %{upstream_name2}-%{version}/README %{upstream_name2}-%{version}/examples/
e57b57
%{python2_sitelib}/dialog.py*
e57b57
%{python2_sitelib}/python2_pythondialog-*.egg-info
cvsextras 60d51f
cvsextras 60d51f
cvsextras 60d51f
%changelog
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