/[packages]/cauldron/python-dialog/current/SPECS/python-dialog.spec
ViewVC logotype

Contents of /cauldron/python-dialog/current/SPECS/python-dialog.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1104019 - (show annotations) (download)
Mon May 22 03:40:03 2017 UTC (6 years, 10 months ago) by mitya
File size: 2179 byte(s)
imported package python-dialog
1 %global upstream_name pythondialog
2 %global upstream_name2 python2-pythondialog
3
4 Name: python-dialog
5 Version: 3.4.0
6 Release: %mkrel 1
7 Summary: Python interface to the Unix dialog utility
8
9 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 BuildRequires: python2-devel
17 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 Group: Development/Languages
37 %{?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

  ViewVC Help
Powered by ViewVC 1.1.30