1 |
%global upstream_name pythondialog |
%global upstream_name pythondialog |
|
%global upstream_name2 python2-pythondialog |
|
2 |
|
|
3 |
Name: python-dialog |
Name: python-dialog |
4 |
Version: 3.4.0 |
Version: 3.4.0 |
5 |
Release: %mkrel 4 |
Release: %mkrel 5 |
6 |
Summary: Python interface to the Unix dialog utility |
Summary: Python interface to the Unix dialog utility |
7 |
Group: Development/Python |
Group: Development/Python |
8 |
License: LGPLv2+ |
License: LGPLv2+ |
9 |
URL: http://pythondialog.sourceforge.net |
URL: https://pypi.org/project/pythondialog/ |
10 |
# Upstream releases two tarballs from the same sources |
Source0: https://files.pythonhosted.org/packages/4f/4f/c9db9c05f082892199b64439cdd42479e6e88cb8748854b2c1391be1914e/pythondialog-%{upstream_name}/%{upstream_name}-%{version}.tar.bz2 |
|
Source0: https://files.pythonhosted.org/packages/source/p/%{upstream_name}/%{upstream_name}-%{version}.tar.bz2 |
|
|
Source1: https://files.pythonhosted.org/packages/source/p/%{upstream_name2}/%{upstream_name2}-%{version}.tar.bz2 |
|
|
|
|
11 |
BuildArch: noarch |
BuildArch: noarch |
|
BuildRequires: pkgconfig(python2) |
|
12 |
BuildRequires: python3-devel |
BuildRequires: python3-devel |
|
|
|
13 |
Requires: dialog |
Requires: dialog |
14 |
|
|
15 |
%{?python_provide:%python_provide python-dialog} |
%{?python_provide:%python_provide python-dialog} |
16 |
|
|
|
%{!?py2_build: %global py2_build CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build} |
|
|
%{!?py2_install: %global py2_install %{__python} setup.py install --skip-build --root %{buildroot}} |
|
|
%{!?python2_sitelib: %global python2_sitelib %{python_sitelib}} |
|
|
%{!?_licensedir:%global license %doc} |
|
|
|
|
17 |
%description |
%description |
18 |
A Python interface to the Unix dialog utility, designed to provide an |
A Python interface to the Unix dialog utility, designed to provide an |
19 |
easy, pythonic and as complete as possible way to use the dialog |
easy, pythonic and as complete as possible way to use the dialog |
32 |
|
|
33 |
%prep |
%prep |
34 |
%setup -q -n %{upstream_name}-%{version} |
%setup -q -n %{upstream_name}-%{version} |
|
tar -xvf %{SOURCE1} |
|
35 |
|
|
36 |
%build |
%build |
37 |
%py3_build |
%py3_build |
38 |
|
|
|
pushd %{upstream_name2}-%{version} |
|
|
%py2_build |
|
|
popd |
|
|
|
|
39 |
%install |
%install |
40 |
%py3_install |
%py3_install |
41 |
|
|
|
pushd %{upstream_name2}-%{version} |
|
|
%py2_install |
|
|
popd |
|
|
|
|
|
%files |
|
|
%license %{upstream_name2}-%{version}/COPYING |
|
|
%doc %{upstream_name2}-%{version}/README.rst %{upstream_name2}-%{version}/examples/ |
|
|
%{python2_sitelib}/dialog.py* |
|
|
%{python2_sitelib}/python2_pythondialog-*.egg-info |
|
|
|
|
42 |
%files -n python3-dialog |
%files -n python3-dialog |
43 |
%license COPYING |
%license COPYING |
44 |
%doc README.rst examples/ |
%doc README.rst examples/ |