lib3270-python-bindings.spec
1.17 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
%define pythonextpath %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")
Summary: Python Extension Module implementing tn3270 protocol
Name: lib3270-python-bindings
Version: 5.1
Release: 0
License: GPL-2.0
Source: %{name}-%{version}.tar.xz
URL: https://portal.softwarepublico.gov.br/social/pw3270/
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: pkgconfig(pw3270) >= 5.1
BuildRequires: fdupes
BuildRequires: python
BuildRequires: pkgconfig(python)
Requires: python
Requires: dbus-1
%description
This is an extension for acessing 3270 hosts directly
from python apps.
%prep
%setup
export CFLAGS="$RPM_OPT_FLAGS"
export CXXFLAGS="$RPM_OPT_FLAGS"
export FFLAGS="$RPM_OPT_FLAGS"
aclocal
autoconf
%configure
%build
make clean
make Release
%install
rm -rf $RPM_BUILD_ROOT
%make_install
%fdupes $RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%{pythonextpath}/py3270.so
%changelog