Commit 3706656d296b0c821906b488aab40496ccaff294

Authored by Perry Werneck
1 parent 2da0e6fd

Updating windows packages.

win/mingw32-lib3270.spec
... ... @@ -31,21 +31,28 @@
31 31  
32 32 #---[ Main package ]--------------------------------------------------------------------------------------------------
33 33  
34   -Summary: TN3270 Access library
  34 +Summary: TN3270 Access library
35 35 Name: mingw32-lib3270-%{_libvrs}
36 36 Version: 5.2
37 37 Release: 0
38 38 License: GPL-2.0
39 39  
40   -Source: %{name}-%{version}.tar.xz
  40 +Source: %{name}-%{version}.tar.xz
41 41  
42   -Url: https://portal.softwarepublico.gov.br/social/pw3270/
  42 +Url: https://portal.softwarepublico.gov.br/social/pw3270/
43 43  
44   -Group: Development/Libraries/C and C++
45   -BuildRoot: /var/tmp/%{name}-%{version}
  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})
46 49  
47   -Provides: mingw32-lib3270_%{MAJOR_VERSION}_%{MINOR_VERSION}
48   -Conflicts: otherproviders(mingw32-lib3270_%{MAJOR_VERSION}_%{MINOR_VERSION})
  50 +Provides: mingw32(lib:3270) = %{version}
  51 +Provides: mingw32(lib:3270_%{MAJOR_VERSION}_%{MINOR_VERSION}) = %{version}
  52 +
  53 +BuildRequires: autoconf
  54 +BuildRequires: automake
  55 +BuildRequires: gettext-tools
49 56  
50 57 BuildRequires: mingw32-cross-binutils
51 58 BuildRequires: mingw32-cross-gcc
... ... @@ -57,6 +64,12 @@ BuildRequires: mingw32-zlib-devel
57 64  
58 65 #BuildRequires: mingw32(pkg:gtk+-win32-3.0)
59 66  
  67 +%description
  68 +
  69 +TN3270 access library originally designed as part of the pw3270 application.
  70 +
  71 +See more details at https://softwarepublico.gov.br/social/pw3270/
  72 +
60 73 #---[ Development ]---------------------------------------------------------------------------------------------------
61 74  
62 75 %package devel
... ... @@ -78,6 +91,7 @@ See more details at https://softwarepublico.gov.br/social/pw3270/
78 91  
79 92 #---[ Build & Install ]-----------------------------------------------------------------------------------------------
80 93  
  94 +%prep
81 95 %setup
82 96  
83 97 NOCONFIGURE=1 ./autogen.sh
... ... @@ -89,7 +103,9 @@ NOCONFIGURE=1 ./autogen.sh
89 103 make clean
90 104 make all
91 105  
92   -%{_mingw32_strip} --strip-all .bin/Release/*.dll.%{MAJOR_VERSION}.%{MINOR_VERSION}
  106 +%{_mingw32_strip} \
  107 + --strip-all \
  108 + .bin/lib3270/Release/*.dll.%{MAJOR_VERSION}.%{MINOR_VERSION}
93 109  
94 110 %install
95 111 %{_mingw32_makeinstall}
... ...
win/mingw64-lib3270-5_2.spec 0 → 100644
... ... @@ -0,0 +1,135 @@
  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 %{_mingw64_strip}
  25 +%define __objdump %{_mingw64_objdump}
  26 +%define _use_internal_dependency_generator 0
  27 +%define __find_requires %{_mingw64_findrequires}
  28 +%define __find_provides %{_mingw64_findprovides}
  29 +%define __os_install_post %{_mingw64_debug_install_post} \
  30 + %{_mingw64_install_post}
  31 +
  32 +#---[ Main package ]--------------------------------------------------------------------------------------------------
  33 +
  34 +Summary: TN3270 Access library
  35 +Name: mingw64-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 +Provides: mingw64(lib:3270) = %{version}
  51 +Provides: mingw64(lib:3270_%{MAJOR_VERSION}_%{MINOR_VERSION}) = %{version}
  52 +
  53 +BuildRequires: autoconf
  54 +BuildRequires: automake
  55 +BuildRequires: gettext-tools
  56 +
  57 +BuildRequires: mingw64-cross-binutils
  58 +BuildRequires: mingw64-cross-gcc
  59 +BuildRequires: mingw64-cross-gcc-c++
  60 +BuildRequires: mingw64-cross-pkg-config
  61 +BuildRequires: mingw64-filesystem
  62 +BuildRequires: mingw64-libopenssl-devel
  63 +BuildRequires: mingw64-zlib-devel
  64 +
  65 +#BuildRequires: mingw64(pkg:gtk+-win32-3.0)
  66 +
  67 +%description
  68 +
  69 +TN3270 access library originally designed as part of the pw3270 application.
  70 +
  71 +See more details at https://softwarepublico.gov.br/social/pw3270/
  72 +
  73 +#---[ Development ]---------------------------------------------------------------------------------------------------
  74 +
  75 +%package devel
  76 +
  77 +Summary: TN3270 Access library development files
  78 +Group: Development/Libraries/C and C++
  79 +Requires: %{name} = %{version}
  80 +
  81 +Provides: lib3270-devel = %{version}
  82 +Conflicts: otherproviders(lib3270-devel)
  83 +
  84 +%description devel
  85 +
  86 +TN3270 access library for C development files.
  87 +
  88 +Originally designed as part of the pw3270 application.
  89 +
  90 +See more details at https://softwarepublico.gov.br/social/pw3270/
  91 +
  92 +#---[ Build & Install ]-----------------------------------------------------------------------------------------------
  93 +
  94 +%prep
  95 +%setup
  96 +
  97 +NOCONFIGURE=1 ./autogen.sh
  98 +
  99 +%{_mingw64_configure} \
  100 + --with-sdk-version=%{version}
  101 +
  102 +%build
  103 +make clean
  104 +make all
  105 +
  106 +%{_mingw64_strip} \
  107 + --strip-all \
  108 + .bin/lib3270/Release/*.dll.%{MAJOR_VERSION}.%{MINOR_VERSION}
  109 +
  110 +%install
  111 +%{_mingw64_makeinstall}
  112 +
  113 +%clean
  114 +rm -rf %{buildroot}
  115 +
  116 +#---[ Files ]---------------------------------------------------------------------------------------------------------
  117 +
  118 +%files
  119 +%defattr(-,root,root)
  120 +%doc AUTHORS LICENSE README.md
  121 +
  122 +%{_mingw64_libdir}/lib3270.dll
  123 +%{_mingw64_libdir}/lib3270.dll.%{MAJOR_VERSION}
  124 +%{_mingw64_libdir}/lib3270.dll.%{MAJOR_VERSION}.%{MINOR_VERSION}
  125 +
  126 +%files devel
  127 +%defattr(-,root,root)
  128 +%{_mingw64_includedir}/lib3270
  129 +%{_mingw64_includedir}/lib3270.h
  130 +%{_mingw64_libdir}/pkgconfig/lib3270.pc
  131 +
  132 +%{_mingw64_libdir}/lib3270.a
  133 +
  134 +%changelog
  135 +
... ...
win/mingw64-service.xml 0 → 100644
... ... @@ -0,0 +1,28 @@
  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">mingw64-lib3270-5_2</param>
  12 + </service>
  13 +
  14 + <!-- https://github.com/openSUSE/obs-service-extract_file -->
  15 + <service name="extract_file">
  16 + <param name="archive">*.tar</param>
  17 + <param name="files">*/win/mingw64-lib3270.spec</param>
  18 + <param name="outfilename">mingw64-lib3270-5_2.spec</param>
  19 + </service>
  20 +
  21 + <service name="recompress">
  22 + <param name="file">*.tar</param>
  23 + <param name="compression">xz</param>
  24 + </service>
  25 +
  26 + <service name="set_version" />
  27 +
  28 +</services>
... ...