Commit 209f91438cc3dc6f1ce464c0342bc2f91995a767
1 parent
565213e3
Exists in
master
Ajustes para empacotamento.
Showing
1 changed file
with
67 additions
and
0 deletions
Show diff stats
@@ -0,0 +1,67 @@ | @@ -0,0 +1,67 @@ | ||
1 | + | ||
2 | +%define pythonextpath %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()") | ||
3 | + | ||
4 | +Summary: Python Extension Module implementing tn3270 protocol | ||
5 | +Name: python-pw3270 | ||
6 | +Version: 5.1 | ||
7 | +Release: 0 | ||
8 | +License: GPL-2.0 | ||
9 | +Source: %{name}-%{version}.tar.bz2 | ||
10 | +URL: https://portal.softwarepublico.gov.br/social/pw3270/ | ||
11 | +Group: Development/Libraries/Python | ||
12 | + | ||
13 | +BuildRoot: /var/tmp/%{name}-%{version} | ||
14 | + | ||
15 | +BuildRequires: autoconf >= 2.61 | ||
16 | +BuildRequires: automake | ||
17 | +BuildRequires: binutils | ||
18 | +BuildRequires: coreutils | ||
19 | +BuildRequires: gcc-c++ | ||
20 | +BuildRequires: m4 | ||
21 | +BuildRequires: pkgconfig | ||
22 | +BuildRequires: pw3270-devel >= 5.1 | ||
23 | + | ||
24 | +BuildRequires: python | ||
25 | +BuildRequires: pkgconfig(python) | ||
26 | + | ||
27 | +Requires: python | ||
28 | +Requires: lib3270 >= 5.1 | ||
29 | + | ||
30 | +%description | ||
31 | + | ||
32 | +This is an extension for acessing 3270 hosts directly | ||
33 | +from python apps. | ||
34 | + | ||
35 | +%prep | ||
36 | + | ||
37 | +%setup | ||
38 | + | ||
39 | +export CFLAGS="$RPM_OPT_FLAGS" | ||
40 | +export CXXFLAGS="$RPM_OPT_FLAGS" | ||
41 | +export FFLAGS="$RPM_OPT_FLAGS" | ||
42 | + | ||
43 | +aclocal | ||
44 | +autoconf | ||
45 | +%configure | ||
46 | + | ||
47 | +%build | ||
48 | +make clean | ||
49 | +make Release | ||
50 | + | ||
51 | +%install | ||
52 | +rm -rf $RPM_BUILD_ROOT | ||
53 | + | ||
54 | +%makeinstall | ||
55 | + | ||
56 | +%fdupes $RPM_BUILD_ROOT | ||
57 | + | ||
58 | +%clean | ||
59 | +rm -rf $RPM_BUILD_ROOT | ||
60 | + | ||
61 | +%files | ||
62 | +%defattr(-,root,root) | ||
63 | +%{pythonextpath}/py3270.so | ||
64 | + | ||
65 | +%changelog | ||
66 | + | ||
67 | + |