python3-tn3270.spec
2.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
#
# spec file for package python-tn3270
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (C) <2008> <Banco do Brasil S.A.>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
%define skip_python2 1
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Summary: Python bindings for lib3270/pw3270
Name: python3-tn3270
Version: 5.2
Release: 0
License: GPL-2.0
Source: %{name}-%{version}.tar.xz
URL: https://github.com/PerryWerneck/python3-tn3270
Group: Development/Libraries/Python
BuildRoot: /var/tmp/%{name}-%{version}
BuildRequires: autoconf >= 2.61
BuildRequires: automake
BuildRequires: binutils
BuildRequires: coreutils
BuildRequires: gcc-c++
BuildRequires: m4
BuildRequires: pkgconfig
BuildRequires: fdupes
BuildRequires: python3
BuildRequires: python-rpm-macros
BuildRequires: pkgconfig(ipc3270)
BuildRequires: pkgconfig(python3)
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
%python_subpackages
%description
This is an extension allowing tn3270 acess for python applications
using lib3270 directly or ipc calls to an enabled pw3270 window.
%prep
%setup
NOCONFIGURE=1 ./autogen.sh
%configure --with-python-sitelib=%{python_sitelib}
%build
%python_build
%install
%python_install
#%python_expand %fdupes %{buildroot}%{$python_sitelib}
#python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
#%make_install
#%fdupes %{buildroot}
%clean
%files %python_files
%defattr(-,root,root)
# https://en.opensuse.org/openSUSE:Packaging_for_Leap#RPM_Distro_Version_Macros
%if 0%{?sle_version} > 120200
%doc AUTHORS README.md
%license LICENSE
%else
%doc AUTHORS README.md LICENSE
%endif
%{python_sitearch}/*
# https://en.opensuse.org/openSUSE:Packaging_Python
#%{python_sitelib}/*
#/home/abuild/rpmbuild/BUILDROOT/python3-tn3270-5.2-4.1.x86_64/usr/lib/python3.6/site-packages/*
#/usr/lib/debug/usr/lib64/python3.6/site-packages/tn3270.cpython-36m-x86_64-linux-gnu.so-5.2-10.1.x86_64.debug
#/usr/lib64/python3.6/site-packages/tn3270-5.2-py3.6.egg-info
#/usr/lib64/python3.6/site-packages/tn3270.cpython-36m-x86_64-linux-gnu.so
%changelog