From 5a68010b0c2ea21554adb8d599ea9b6c46289c93 Mon Sep 17 00:00:00 2001 From: Perry Werneck Date: Fri, 29 Nov 2019 11:17:29 -0300 Subject: [PATCH] Fixing rpm package. --- rpm/_service | 9 +++++---- rpm/python-tn3270.spec | 60 ------------------------------------------------------------ rpm/python3-tn3270.spec | 98 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 103 insertions(+), 64 deletions(-) delete mode 100644 rpm/python-tn3270.spec create mode 100644 rpm/python3-tn3270.spec diff --git a/rpm/_service b/rpm/_service index 19f5b2d..c35a48c 100644 --- a/rpm/_service +++ b/rpm/_service @@ -6,16 +6,17 @@ perry.werneck@gmail.com disable @PARENT_TAG@ - https://github.com/PerryWerneck/python-tn3270.git + https://github.com/PerryWerneck/python3-tn3270.git git - + + *.tar @@ -53,4 +55,3 @@ - diff --git a/rpm/python-tn3270.spec b/rpm/python-tn3270.spec deleted file mode 100644 index 890d183..0000000 --- a/rpm/python-tn3270.spec +++ /dev/null @@ -1,60 +0,0 @@ - -Summary: Python bindings for lib3270/pw3270 -Name: python-tn3270 -Version: 5.2 -Release: 0 -License: GPL-2.0 -Source: %{name}-%{version}.tar.xz -URL: https://github.com/PerryWerneck/python-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: pkgconfig(ipc3270) - -BuildRequires: python -BuildRequires: pkgconfig(python3) - -Requires: python - -%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=%{python3_sitelib} - -%build -make clean -make Release - -%install - -%make_install -%fdupes %{buildroot} - -%clean - -%files -%defattr(-,root,root) -%{python3_sitelib}/tn3270.so - -%changelog - - diff --git a/rpm/python3-tn3270.spec b/rpm/python3-tn3270.spec new file mode 100644 index 0000000..7786b9a --- /dev/null +++ b/rpm/python3-tn3270.spec @@ -0,0 +1,98 @@ +# +# spec file for package python-tn3270 +# +# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (C) <2008> +# +# 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 -- libgit2 0.21.2