Commit f0ddd8458153b1f1083d85b18e6778a09720f9dc
1 parent
f8ab4c79
Exists in
master
Updating rpm control files.
Showing
4 changed files
with
105 additions
and
72 deletions
Show diff stats
README.md
| ... | ... | @@ -10,5 +10,5 @@ Installation repositories |
| 10 | 10 | |
| 11 | 11 | You can find instalation repositories in SuSE Build Service: |
| 12 | 12 | |
| 13 | - * Linux (Many distributions): https://build.opensuse.org/package/show/home:PerryWerneck:pw3270/lib3270-python-bindings | |
| 13 | + * Linux (Many distributions): https://build.opensuse.org/package/show/home:PerryWerneck:pw3270/python-tn3270 | |
| 14 | 14 | ... | ... |
rpm/_service
| ... | ... | @@ -4,18 +4,58 @@ |
| 4 | 4 | <service name="tar_scm"> |
| 5 | 5 | <param name="changesgenerate">enable</param> |
| 6 | 6 | <param name="changesauthor">perry.werneck@gmail.com</param> |
| 7 | - <param name="sslverify">disable</param> | |
| 8 | 7 | <param name="versionformat">@PARENT_TAG@</param> |
| 9 | - <param name="url">https://github.com/PerryWerneck/lib3270-python-bindings.git</param> | |
| 8 | + <param name="url">https://github.com/PerryWerneck/python-tn3270.git</param> | |
| 10 | 9 | <param name="scm">git</param> |
| 11 | 10 | </service> |
| 12 | 11 | |
| 13 | 12 | <!-- https://github.com/openSUSE/obs-service-extract_file --> |
| 14 | - <service name="extract_file"> | |
| 13 | + <!-- service name="extract_file"> | |
| 15 | 14 | <param name="archive">*.tar</param> |
| 16 | 15 | <param name="files">*/rpm/*.spec</param> |
| 17 | 16 | </service> |
| 18 | 17 | |
| 18 | + <service name="extract_file"> | |
| 19 | + <param name="archive">*.tar</param> | |
| 20 | + <param name="files">*/debian/*.dsc</param> | |
| 21 | + </service> | |
| 22 | + | |
| 23 | + <service name="extract_file"> | |
| 24 | + <param name="archive">*.tar</param> | |
| 25 | + <param name="files">*/debian/changelog</param> | |
| 26 | + <param name="outfilename">debian.changelog</param> | |
| 27 | + </service> | |
| 28 | + | |
| 29 | + <service name="extract_file"> | |
| 30 | + <param name="archive">*.tar</param> | |
| 31 | + <param name="files">*/debian/control</param> | |
| 32 | + <param name="outfilename">debian.control</param> | |
| 33 | + </service> | |
| 34 | + | |
| 35 | + <service name="extract_file"> | |
| 36 | + <param name="archive">*.tar</param> | |
| 37 | + <param name="files">*/debian/rules</param> | |
| 38 | + <param name="outfilename">debian.rules</param> | |
| 39 | + </service> | |
| 40 | + | |
| 41 | + <service name="extract_file"> | |
| 42 | + <param name="archive">*.tar</param> | |
| 43 | + <param name="files">*/debian/compat</param> | |
| 44 | + <param name="outfilename">debian.compat</param> | |
| 45 | + </service> | |
| 46 | + | |
| 47 | + <service name="extract_file"> | |
| 48 | + <param name="archive">*.tar</param> | |
| 49 | + <param name="files">*/debian/shlibs</param> | |
| 50 | + <param name="outfilename">debian.shlibs</param> | |
| 51 | + </service> | |
| 52 | + | |
| 53 | + <service name="extract_file"> | |
| 54 | + <param name="archive">*.tar</param> | |
| 55 | + <param name="files">*/arch/PKGBUILD</param>E14Nt1Ed3s4d7i6ciVRrQVC4 | |
| 56 | + <param name="outfilename">PKGBUILD</param> | |
| 57 | + </service --> | |
| 58 | + | |
| 19 | 59 | <service name="recompress"> |
| 20 | 60 | <param name="file">*.tar</param> |
| 21 | 61 | <param name="compression">xz</param> | ... | ... |
rpm/lib3270-python-bindings.spec
| ... | ... | @@ -1,68 +0,0 @@ |
| 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: lib3270-python-bindings | |
| 6 | -Version: 5.1 | |
| 7 | -Release: 0 | |
| 8 | -License: GPL-2.0 | |
| 9 | -Source: %{name}-%{version}.tar.xz | |
| 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: pkgconfig(pw3270) >= 5.1 | |
| 23 | -BuildRequires: fdupes | |
| 24 | - | |
| 25 | -BuildRequires: python | |
| 26 | -BuildRequires: pkgconfig(python) | |
| 27 | - | |
| 28 | -Requires: python | |
| 29 | -Requires: dbus-1 | |
| 30 | - | |
| 31 | -%description | |
| 32 | - | |
| 33 | -This is an extension for acessing 3270 hosts directly | |
| 34 | -from python apps. | |
| 35 | - | |
| 36 | -%prep | |
| 37 | - | |
| 38 | -%setup | |
| 39 | - | |
| 40 | -export CFLAGS="$RPM_OPT_FLAGS" | |
| 41 | -export CXXFLAGS="$RPM_OPT_FLAGS" | |
| 42 | -export FFLAGS="$RPM_OPT_FLAGS" | |
| 43 | - | |
| 44 | -aclocal | |
| 45 | -autoconf | |
| 46 | -%configure | |
| 47 | - | |
| 48 | -%build | |
| 49 | -make clean | |
| 50 | -make Release | |
| 51 | - | |
| 52 | -%install | |
| 53 | -rm -rf $RPM_BUILD_ROOT | |
| 54 | - | |
| 55 | -%make_install | |
| 56 | - | |
| 57 | -%fdupes $RPM_BUILD_ROOT | |
| 58 | - | |
| 59 | -%clean | |
| 60 | -rm -rf $RPM_BUILD_ROOT | |
| 61 | - | |
| 62 | -%files | |
| 63 | -%defattr(-,root,root) | |
| 64 | -%{pythonextpath}/py3270.so | |
| 65 | - | |
| 66 | -%changelog | |
| 67 | - | |
| 68 | - |
| ... | ... | @@ -0,0 +1,61 @@ |
| 1 | + | |
| 2 | +Summary: Python Extension Module implementing tn3270 protocol | |
| 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://portal.softwarepublico.gov.br/social/pw3270/ | |
| 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 | + | |
| 31 | +This is an extension for acessing 3270 hosts directly | |
| 32 | +from python apps. | |
| 33 | + | |
| 34 | +%prep | |
| 35 | + | |
| 36 | +%setup | |
| 37 | + | |
| 38 | +NOCONFIGURE=1 \ | |
| 39 | + ./autogen.sh | |
| 40 | + | |
| 41 | +%configure \ | |
| 42 | + --with-python-sitelib=%{python3_sitelib} | |
| 43 | + | |
| 44 | +%build | |
| 45 | +make clean | |
| 46 | +make Release | |
| 47 | + | |
| 48 | +%install | |
| 49 | + | |
| 50 | +%makeinstall | |
| 51 | +%fdupes %{buildroot} | |
| 52 | + | |
| 53 | +%clean | |
| 54 | + | |
| 55 | +%files | |
| 56 | +%defattr(-,root,root) | |
| 57 | +%{python3_sitelib}/tn3270.so | |
| 58 | + | |
| 59 | +%changelog | |
| 60 | + | |
| 61 | + | ... | ... |