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