From f0ddd8458153b1f1083d85b18e6778a09720f9dc Mon Sep 17 00:00:00 2001 From: Perry Werneck Date: Fri, 27 Sep 2019 12:52:41 -0300 Subject: [PATCH] Updating rpm control files. --- README.md | 2 +- rpm/_service | 46 +++++++++++++++++++++++++++++++++++++++++++--- rpm/lib3270-python-bindings.spec | 68 -------------------------------------------------------------------- rpm/python-tn3270.spec | 61 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 105 insertions(+), 72 deletions(-) delete mode 100644 rpm/lib3270-python-bindings.spec create mode 100644 rpm/python-tn3270.spec diff --git a/README.md b/README.md index eab1181..a76d829 100644 --- a/README.md +++ b/README.md @@ -10,5 +10,5 @@ Installation repositories You can find instalation repositories in SuSE Build Service: - * Linux (Many distributions): https://build.opensuse.org/package/show/home:PerryWerneck:pw3270/lib3270-python-bindings + * Linux (Many distributions): https://build.opensuse.org/package/show/home:PerryWerneck:pw3270/python-tn3270 diff --git a/rpm/_service b/rpm/_service index 07e428e..b78d342 100644 --- a/rpm/_service +++ b/rpm/_service @@ -4,18 +4,58 @@ enable perry.werneck@gmail.com - disable @PARENT_TAG@ - https://github.com/PerryWerneck/lib3270-python-bindings.git + https://github.com/PerryWerneck/python-tn3270.git git - + + *.tar xz diff --git a/rpm/lib3270-python-bindings.spec b/rpm/lib3270-python-bindings.spec deleted file mode 100644 index 46326b5..0000000 --- a/rpm/lib3270-python-bindings.spec +++ /dev/null @@ -1,68 +0,0 @@ - -%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 - - diff --git a/rpm/python-tn3270.spec b/rpm/python-tn3270.spec new file mode 100644 index 0000000..3e92274 --- /dev/null +++ b/rpm/python-tn3270.spec @@ -0,0 +1,61 @@ + +Summary: Python Extension Module implementing tn3270 protocol +Name: python-tn3270 +Version: 5.2 +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: fdupes + +BuildRequires: pkgconfig(ipc3270) + +BuildRequires: python +BuildRequires: pkgconfig(python3) + +Requires: python + +%description + +This is an extension for acessing 3270 hosts directly +from python apps. + +%prep + +%setup + +NOCONFIGURE=1 \ + ./autogen.sh + +%configure \ + --with-python-sitelib=%{python3_sitelib} + +%build +make clean +make Release + +%install + +%makeinstall +%fdupes %{buildroot} + +%clean + +%files +%defattr(-,root,root) +%{python3_sitelib}/tn3270.so + +%changelog + + -- libgit2 0.21.2