Commit 1a0c79df45a4a3d887d7d3b0123bfef54b40f53e

Authored by Perry Werneck
1 parent 51d2a046

Creating spec file for the mingw32 version.

Showing 2 changed files with 120 additions and 1 deletions   Show diff stats
rpm/lib3270.spec
1 1 #
2   -# spec file for package pw3270
  2 +# spec file for package lib3270
3 3 #
4 4 # Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
5 5 # Copyright (C) <2008> <Banco do Brasil S.A.>
... ...
win/mingw32-lib3270.spec 0 → 100644
... ... @@ -0,0 +1,119 @@
  1 +#
  2 +# spec file for package mingw32-lib3279
  3 +#
  4 +# Copyright (c) 2014 SUSE LINUX Products 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 +%define MAJOR_VERSION 5
  20 +%define MINOR_VERSION 2
  21 +
  22 +%define _libvrs %{MAJOR_VERSION}_%{MINOR_VERSION}
  23 +
  24 +%define __strip %{_mingw32_strip}
  25 +%define __objdump %{_mingw32_objdump}
  26 +%define _use_internal_dependency_generator 0
  27 +%define __find_requires %{_mingw32_findrequires}
  28 +%define __find_provides %{_mingw32_findprovides}
  29 +%define __os_install_post %{_mingw32_debug_install_post} \
  30 + %{_mingw32_install_post}
  31 +
  32 +#---[ Main package ]--------------------------------------------------------------------------------------------------
  33 +
  34 +Summary: TN3270 Access library
  35 +Name: mingw32-lib3270-%{_libvrs}
  36 +Version: 5.2
  37 +Release: 0
  38 +License: GPL-2.0
  39 +
  40 +Source: %{name}-%{version}.tar.xz
  41 +
  42 +Url: https://portal.softwarepublico.gov.br/social/pw3270/
  43 +
  44 +Group: Development/Libraries/C and C++
  45 +BuildRoot: /var/tmp/%{name}-%{version}
  46 +
  47 +Provides: mingw32-lib3270_%{MAJOR_VERSION}_%{MINOR_VERSION}
  48 +Conflicts: otherproviders(mingw32-lib3270_%{MAJOR_VERSION}_%{MINOR_VERSION})
  49 +
  50 +BuildRequires: mingw32-cross-binutils
  51 +BuildRequires: mingw32-cross-gcc
  52 +BuildRequires: mingw32-cross-gcc-c++
  53 +BuildRequires: mingw32-cross-pkg-config
  54 +BuildRequires: mingw32-filesystem
  55 +BuildRequires: mingw32-libopenssl-devel
  56 +BuildRequires: mingw32-zlib-devel
  57 +
  58 +#BuildRequires: mingw32(pkg:gtk+-win32-3.0)
  59 +
  60 +#---[ Development ]---------------------------------------------------------------------------------------------------
  61 +
  62 +%package devel
  63 +
  64 +Summary: TN3270 Access library development files
  65 +Group: Development/Libraries/C and C++
  66 +Requires: %{name} = %{version}
  67 +
  68 +Provides: lib3270-devel = %{version}
  69 +Conflicts: otherproviders(lib3270-devel)
  70 +
  71 +%description devel
  72 +
  73 +TN3270 access library for C development files.
  74 +
  75 +Originally designed as part of the pw3270 application.
  76 +
  77 +See more details at https://softwarepublico.gov.br/social/pw3270/
  78 +
  79 +#---[ Build & Install ]-----------------------------------------------------------------------------------------------
  80 +
  81 +%setup
  82 +
  83 +NOCONFIGURE=1 ./autogen.sh
  84 +
  85 +%{_mingw32_configure} \
  86 + --with-sdk-version=%{version}
  87 +
  88 +%build
  89 +make clean
  90 +make all
  91 +
  92 +%{_mingw32_strip} --strip-all .bin/Release/*.dll.%{MAJOR_VERSION}.%{MINOR_VERSION}
  93 +
  94 +%install
  95 +%{_mingw32_makeinstall}
  96 +
  97 +%clean
  98 +rm -rf %{buildroot}
  99 +
  100 +#---[ Files ]---------------------------------------------------------------------------------------------------------
  101 +
  102 +%files
  103 +%defattr(-,root,root)
  104 +%doc AUTHORS LICENSE README.md
  105 +
  106 +%{_mingw32_libdir}/lib3270.dll
  107 +%{_mingw32_libdir}/lib3270.dll.%{MAJOR_VERSION}
  108 +%{_mingw32_libdir}/lib3270.dll.%{MAJOR_VERSION}.%{MINOR_VERSION}
  109 +
  110 +%files devel
  111 +%defattr(-,root,root)
  112 +%{_mingw32_includedir}/lib3270
  113 +%{_mingw32_includedir}/lib3270.h
  114 +%{_mingw32_libdir}/pkgconfig/lib3270.pc
  115 +
  116 +%{_mingw32_libdir}/lib3270.a
  117 +
  118 +%changelog
  119 +
... ...