diff --git a/README.md b/README.md index e69de29..3720a33 100644 --- a/README.md +++ b/README.md @@ -0,0 +1,14 @@ +Python Extension Module implementing tn3270 protocol +==================================================== + +Created originally as part of PW3270 application. + +See more details at https://softwarepublico.gov.br/social/pw3270/ + +Installation repositories +========================= + + You can find instalation repositories in SuSE Build Service: + + * Linux (Many distributions): https://build.opensuse.org/project/show/home:PerryWerneck:pw3270 + diff --git a/rpm/_service b/rpm/_service new file mode 100644 index 0000000..ce6b513 --- /dev/null +++ b/rpm/_service @@ -0,0 +1,25 @@ + + + + + enable + disable + @PARENT_TAG@ + https://github.com/PerryWerneck/lib3270-python-bindings.git + git + + + + + + + *.tar + xz + + + + + diff --git a/rpm/lib3270-python-bindings.spec b/rpm/lib3270-python-bindings.spec new file mode 100644 index 0000000..46326b5 --- /dev/null +++ b/rpm/lib3270-python-bindings.spec @@ -0,0 +1,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 + + diff --git a/rpm/python-pw3270.spec b/rpm/python-pw3270.spec deleted file mode 100644 index e85779c..0000000 --- a/rpm/python-pw3270.spec +++ /dev/null @@ -1,69 +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: python-pw3270 -Version: 5.1 -Release: 0 -License: GPL-2.0 -Source: %{name}-%{version}.tar.bz2 -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: lib3270 >= 5.1 -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 - - -- libgit2 0.21.2