Commit abd7c30cdc112cfbd83e421ed3d550af45ae8d9a

Authored by Perry Werneck
1 parent 5ad23453

Ajustes para empacotamento.

Showing 2 changed files with 147 additions and 0 deletions   Show diff stats
rpm/_service 0 → 100644
@@ -0,0 +1,21 @@ @@ -0,0 +1,21 @@
  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">%ct</param>
  8 + <!-- param name="version">5.2</param -->
  9 + <param name="url">http://softwarepublico.gov.br/gitlab/pw3270/lib3270.git</param>
  10 + <param name="scm">git</param>
  11 + <param name="filename">lib3270</param>
  12 + </service>
  13 +
  14 + <service name="recompress">
  15 + <param name="file">*.tar</param>
  16 + <param name="compression">xz</param>
  17 + </service>
  18 +
  19 + <service name="set_version" />
  20 +
  21 +</services>
rpm/lib3270.spec 0 → 100644
@@ -0,0 +1,126 @@ @@ -0,0 +1,126 @@
  1 +#
  2 +# spec file for package pw3270
  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 +%define _libvrs %{MAJOR_VERSION}_%{MINOR_VERSION}
  25 +
  26 +%define libname lib32705_2
  27 +%define documentroot /srv/www/htdocs/mentor
  28 +
  29 +#Compat macro for new _fillupdir macro introduced in Nov 2017
  30 +%if ! %{defined _fillupdir}
  31 + %define _fillupdir /var/adm/fillup-templates
  32 +%endif
  33 +
  34 +#---[ Macros ]--------------------------------------------------------------------------------------------------------
  35 +
  36 +%if ! %{defined _release}
  37 + %define _release suse%{suse_version}
  38 +%endif
  39 +
  40 +#---[ Main package ]--------------------------------------------------------------------------------------------------
  41 +
  42 +Summary: TN3270 Access library
  43 +Name: lib3270-%{_libvrs}
  44 +Version: 5.2
  45 +Release: 0
  46 +License: GPL-2.0
  47 +Source: lib3270-%{version}.tar.xz
  48 +
  49 +Url: https://portal.softwarepublico.gov.br/social/pw3270/
  50 +
  51 +Group: System/X11/Terminals
  52 +BuildRoot: /var/tmp/%{name}-%{version}
  53 +
  54 +Provides: lib3270_%{MAJOR_VERSION}_%{MINOR_VERSION}
  55 +Conflicts: otherproviders(lib3270_%{MAJOR_VERSION}_%{MINOR_VERSION})
  56 +
  57 +BuildRequires: pkgconfig(openssl)
  58 +BuildRequires: autoconf >= 2.61
  59 +BuildRequires: automake
  60 +BuildRequires: binutils
  61 +BuildRequires: coreutils
  62 +BuildRequires: gcc-c++
  63 +BuildRequires: gettext-devel
  64 +BuildRequires: m4
  65 +BuildRequires: pkgconfig
  66 +
  67 +%description
  68 +
  69 +TN3270 acess library for C development.
  70 +
  71 +#---[ Development ]---------------------------------------------------------------------------------------------------
  72 +
  73 +%package devel
  74 +
  75 +Summary: TN3270 Access library development files
  76 +Group: Development/Libraries/C and C++
  77 +Requires: %{name}
  78 +
  79 +%description devel
  80 +
  81 +Development files for %{name}
  82 +
  83 +#---[ Build & Install ]-----------------------------------------------------------------------------------------------
  84 +
  85 +%prep
  86 +%setup -n lib3270-%{version}
  87 +
  88 +NOCONFIGURE=1 ./autogen.sh
  89 +
  90 +%configure
  91 +
  92 +%build
  93 +make clean
  94 +make all
  95 +
  96 +%install
  97 +rm -rf $RPM_BUILD_ROOT
  98 +
  99 +%makeinstall
  100 +
  101 +%files
  102 +%defattr(-,root,root)
  103 +%{_libdir}/lib3270.so.5
  104 +%{_libdir}/lib3270.so.5.2
  105 +
  106 +%files devel
  107 +%defattr(-,root,root)
  108 +
  109 +%{_libdir}/lib3270.so
  110 +%{_libdir}/pkgconfig/lib3270.pc
  111 +
  112 +%{_includedir}/lib3270.h
  113 +%{_includedir}/lib3270
  114 +
  115 +%{_libdir}/lib3270.so
  116 +%{_libdir}/lib3270.a
  117 +
  118 +%pre
  119 +/sbin/ldconfig
  120 +exit 0
  121 +
  122 +%post
  123 +/sbin/ldconfig
  124 +exit 0
  125 +
  126 +%changelog