1 |
mitya |
1104019 |
%global upstream_name pythondialog |
2 |
|
|
%global upstream_name2 python2-pythondialog |
3 |
|
|
|
4 |
|
|
Name: python-dialog |
5 |
|
|
Version: 3.4.0 |
6 |
kekepower |
1350638 |
Release: %mkrel 4 |
7 |
mitya |
1104019 |
Summary: Python interface to the Unix dialog utility |
8 |
mitya |
1104021 |
Group: Development/Python |
9 |
mitya |
1104019 |
License: LGPLv2+ |
10 |
|
|
URL: http://pythondialog.sourceforge.net |
11 |
|
|
# Upstream releases two tarballs from the same sources |
12 |
|
|
Source0: https://files.pythonhosted.org/packages/source/p/%{upstream_name}/%{upstream_name}-%{version}.tar.bz2 |
13 |
|
|
Source1: https://files.pythonhosted.org/packages/source/p/%{upstream_name2}/%{upstream_name2}-%{version}.tar.bz2 |
14 |
|
|
|
15 |
|
|
BuildArch: noarch |
16 |
ovitters |
1146083 |
BuildRequires: pkgconfig(python2) |
17 |
mitya |
1104019 |
BuildRequires: python3-devel |
18 |
|
|
|
19 |
|
|
Requires: dialog |
20 |
|
|
|
21 |
|
|
%{?python_provide:%python_provide python-dialog} |
22 |
|
|
|
23 |
|
|
%{!?py2_build: %global py2_build CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build} |
24 |
|
|
%{!?py2_install: %global py2_install %{__python} setup.py install --skip-build --root %{buildroot}} |
25 |
|
|
%{!?python2_sitelib: %global python2_sitelib %{python_sitelib}} |
26 |
|
|
%{!?_licensedir:%global license %doc} |
27 |
|
|
|
28 |
|
|
%description |
29 |
|
|
A Python interface to the Unix dialog utility, designed to provide an |
30 |
|
|
easy, pythonic and as complete as possible way to use the dialog |
31 |
|
|
features from Python code. |
32 |
|
|
|
33 |
|
|
%package -n python3-dialog |
34 |
|
|
Requires: dialog |
35 |
|
|
Summary: %{summary} |
36 |
mitya |
1104021 |
Group: Development/Python |
37 |
mitya |
1104019 |
%{?python_provide:%python_provide python3-dialog} |
38 |
|
|
|
39 |
|
|
%description -n python3-dialog |
40 |
|
|
A Python interface to the Unix dialog utility, designed to provide an |
41 |
|
|
easy, pythonic and as complete as possible way to use the dialog |
42 |
|
|
features from Python code. |
43 |
|
|
|
44 |
|
|
%prep |
45 |
|
|
%setup -q -n %{upstream_name}-%{version} |
46 |
|
|
tar -xvf %{SOURCE1} |
47 |
|
|
|
48 |
|
|
%build |
49 |
|
|
%py3_build |
50 |
|
|
|
51 |
|
|
pushd %{upstream_name2}-%{version} |
52 |
|
|
%py2_build |
53 |
|
|
popd |
54 |
|
|
|
55 |
|
|
%install |
56 |
|
|
%py3_install |
57 |
|
|
|
58 |
|
|
pushd %{upstream_name2}-%{version} |
59 |
|
|
%py2_install |
60 |
|
|
popd |
61 |
|
|
|
62 |
|
|
%files |
63 |
|
|
%license %{upstream_name2}-%{version}/COPYING |
64 |
|
|
%doc %{upstream_name2}-%{version}/README.rst %{upstream_name2}-%{version}/examples/ |
65 |
|
|
%{python2_sitelib}/dialog.py* |
66 |
|
|
%{python2_sitelib}/python2_pythondialog-*.egg-info |
67 |
|
|
|
68 |
|
|
%files -n python3-dialog |
69 |
|
|
%license COPYING |
70 |
|
|
%doc README.rst examples/ |
71 |
|
|
%{python3_sitelib}/dialog.py* |
72 |
|
|
%{python3_sitelib}/__pycache__/ |
73 |
|
|
%{python3_sitelib}/pythondialog-*.egg-info |
74 |
|
|
|