Commit 10d151e8e0f8d6f436493b63094584e6fd7f8cd7

Authored by Perry Werneck
1 parent 2e5fa0f8
Exists in master and in 1 other branch develop

Packaging compatibility IPC plugin for linux.

Showing 2 changed files with 141 additions and 0 deletions   Show diff stats
rpm/_service 0 → 100644
... ... @@ -0,0 +1,26 @@
  1 +<services>
  2 +
  3 + <!-- https://github.com/openSUSE/obs-service-tar_scm/blob/master/tar_scm.py -->
  4 + <service name="tar_scm">
  5 + <param name="changesgenerate">enable</param>
  6 + <param name="sslverify">disable</param>
  7 + <param name="versionformat">@PARENT_TAG@</param>
  8 + <param name="url">https://softwarepublico.gov.br/gitlab/pw3270/pw3270-plugin-hllapi.git</param>
  9 + <param name="scm">git</param>
  10 + <param name="filename">pw3270-plugin-dbus</param>
  11 + </service>
  12 +
  13 + <!-- https://github.com/openSUSE/obs-service-extract_file -->
  14 + <!-- service name="extract_file">
  15 + <param name="archive">*.tar</param>
  16 + <param name="files">*/rpm/*.spec</param>
  17 + </service -->
  18 +
  19 + <service name="recompress">
  20 + <param name="file">*.tar</param>
  21 + <param name="compression">xz</param>
  22 + </service>
  23 +
  24 + <service name="set_version" />
  25 +
  26 +</services>
... ...
rpm/pw3270-plugin-dbus.spec 0 → 100644
... ... @@ -0,0 +1,115 @@
  1 +#
  2 +# spec file for packages pw3270-plugin-ipc
  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 +
  19 +#---[ Versions ]------------------------------------------------------------------------------------------------------
  20 +
  21 +%define MAJOR_VERSION 5
  22 +%define MINOR_VERSION 2
  23 +
  24 +#---[ Macros ]--------------------------------------------------------------------------------------------------------
  25 +
  26 +%if ! %{defined _release}
  27 + %define _release suse%{suse_version}
  28 +%endif
  29 +
  30 +#---[ Main package ]--------------------------------------------------------------------------------------------------
  31 +
  32 +Summary: D-Bus based IPC plugin for pw3270 (Compatible version)
  33 +Name: pw3270-plugin-dbus
  34 +Version: 5.2
  35 +Release: 0
  36 +License: LGPL-3.0
  37 +Source: %{name}-%{version}.tar.xz
  38 +
  39 +Url: https://portal.softwarepublico.gov.br/social/pw3270/
  40 +
  41 +Group: System/X11/Terminals
  42 +BuildRoot: /var/tmp/%{name}-%{version}
  43 +
  44 +BuildRequires: libv3270-%{MAJOR_VERSION}_%{MINOR_VERSION}-devel
  45 +BuildRequires: lib3270-%{MAJOR_VERSION}_%{MINOR_VERSION}-devel
  46 +BuildRequires: pw3270-devel >= 5.2
  47 +BuildRequires: autoconf >= 2.61
  48 +BuildRequires: automake
  49 +BuildRequires: binutils
  50 +BuildRequires: coreutils
  51 +BuildRequires: gcc-c++
  52 +BuildRequires: gettext-devel
  53 +BuildRequires: m4
  54 +
  55 +%if 0%{?fedora} || 0%{?suse_version} > 1200
  56 +
  57 +BuildRequires: pkgconfig(dbus-1)
  58 +BuildRequires: pkgconfig(dbus-glib-1)
  59 +BuildRequires: pkgconfig(gtk+-3.0)
  60 +
  61 +%else
  62 +
  63 +BuildRequires: openssl-devel
  64 +BuildRequires: dbus-1-devel
  65 +BuildRequires: gtk3-devel
  66 +
  67 +%endif
  68 +
  69 +%description
  70 +
  71 +D-Bus plugin for compatibility with pw3270 5.1 language bindings.
  72 +
  73 +See more details at https://softwarepublico.gov.br/social/pw3270/
  74 +
  75 +#---[ Build & Install ]-----------------------------------------------------------------------------------------------
  76 +
  77 +%prep
  78 +%setup
  79 +
  80 +NOCONFIGURE=1 ./autogen.sh
  81 +
  82 +%configure \
  83 + --with-sdk-version=%{version}
  84 +
  85 +%build
  86 +make clean
  87 +make all
  88 +
  89 +%install
  90 +rm -rf $RPM_BUILD_ROOT
  91 +
  92 +make \
  93 + DESTDIR=%{?buildroot:%{buildroot}} \
  94 + install-plugin
  95 +
  96 +%files
  97 +%defattr(-,root,root)
  98 +%doc AUTHORS LICENSE README.md
  99 +
  100 +%{_libdir}/pw3270-plugins/*.so
  101 +
  102 +%pre
  103 +/sbin/ldconfig
  104 +exit 0
  105 +
  106 +%post
  107 +/sbin/ldconfig
  108 +exit 0
  109 +
  110 +%postun
  111 +/sbin/ldconfig
  112 +exit 0
  113 +
  114 +%changelog
  115 +
... ...