Commit 95c5eef77011d60328864882541c5736275245d2

Authored by Perry Werneck
1 parent e5ee7b9a

Updating and fixing windows builds.

win/mingw32-pw3270.spec
@@ -1,182 +0,0 @@ @@ -1,182 +0,0 @@
1 -#  
2 -# spec file for package mingw32-pw3270  
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 __strip %{_mingw32_strip}  
23 -%define __objdump %{_mingw32_objdump}  
24 -%define _use_internal_dependency_generator 0  
25 -%define __find_requires %{_mingw32_findrequires}  
26 -%define __find_provides %{_mingw32_findprovides}  
27 -%define __os_install_post %{_mingw32_debug_install_post} \  
28 - %{_mingw32_install_post}  
29 -  
30 -#---[ Packaging ]-----------------------------------------------------------------------------------------------------  
31 -  
32 -Name: mingw32-pw3270  
33 -Version: 5.2  
34 -Release: 0  
35 -Summary: IBM 3270 Terminal emulator for GTK  
36 -License: GPL-2.0  
37 -Group: System/X11/Terminals  
38 -Url: http://www.softwarepublico.gov.br/dotlrn/clubs/pw3270  
39 -Source: pw3270-%{version}.tar.xz  
40 -BuildRoot: %{_tmppath}/%{name}-%{version}-build  
41 -  
42 -Provides: mingw32-pw3270-%{MAJOR_VERSION}_%{MINOR_VERSION}  
43 -Conflicts: otherproviders(mingw32-pw3270-%{MAJOR_VERSION}_%{MINOR_VERSION})  
44 -  
45 -Provides: mingw32(lib:pw3270)  
46 -  
47 -BuildRequires: autoconf  
48 -BuildRequires: automake  
49 -  
50 -BuildRequires: gettext-tools  
51 -  
52 -BuildRequires: rsvg-view  
53 -BuildRequires: glib2-devel  
54 -BuildRequires: pkgconfig(gtk+-3.0)  
55 -  
56 -BuildRequires: desktop-file-utils  
57 -BuildRequires: optipng  
58 -  
59 -BuildRequires: mingw32-cross-binutils  
60 -BuildRequires: mingw32-cross-gcc  
61 -BuildRequires: mingw32-cross-gcc-c++  
62 -BuildRequires: mingw32-cross-pkg-config  
63 -  
64 -BuildRequires: mingw32-filesystem  
65 -BuildRequires: mingw32-libopenssl-devel  
66 -BuildRequires: mingw32-zlib-devel  
67 -BuildRequires: sed  
68 -  
69 -BuildRequires: mingw32(pkg:gtk+-win32-3.0)  
70 -BuildRequires: mingw32(pkg:lib3270)  
71 -BuildRequires: mingw32(pkg:libv3270)  
72 -  
73 -BuildRequires: ImageMagick  
74 -  
75 -#---------------------------------------------------------------------------------------------------------------------  
76 -  
77 -%description  
78 -Open-source GTK-based IBM 3270 terminal emulator with many advanced features. It can be used to communicate with any IBM host that supports 3270-style connections over TELNET.  
79 -Based on the original x3270 code, pw3270 was originally created for Banco do Brasil, and is now used worldwide.  
80 -  
81 -#--[ Devel ]----------------------------------------------------------------------------------------------------------  
82 -  
83 -%package devel  
84 -Summary: Files required for development of %{name} plugins  
85 -Group: Development/Libraries/C and C++  
86 -  
87 -Requires: mingw32-pw3270-%{MAJOR_VERSION}_%{MINOR_VERSION} = %{version}  
88 -  
89 -%description devel  
90 -Open-source GTK-based IBM 3270 terminal emulator with many advanced features. It can be used to communicate with any IBM host that supports 3270-style connections over TELNET.  
91 -  
92 -This package contains the development files for %{name}  
93 -  
94 -#---[ Build & Install ]-----------------------------------------------------------------------------------------------  
95 -  
96 -%prep  
97 -  
98 -%setup -q -n pw3270-%{version}  
99 -#%patch0 -p0  
100 -  
101 -echo "m4_define([SVN_REVISION], %{release})" > revision.m4  
102 -echo "m4_define([SVN_URL], http://softwarepublico.gov.br/gitlab/pw3270/principal.git)" >> revision.m4  
103 -echo "m4_define([APP_LEVEL], 0)" >> revision.m4  
104 -  
105 -find . -exec touch {} \;  
106 -aclocal  
107 -autoconf  
108 -%{_mingw32_configure} \  
109 - --with-source-locales=%{_mingw32_datadir}/pw3270/pot  
110 -  
111 -echo ---------------------------------------------------------  
112 -cat Makefile  
113 -echo ---------------------------------------------------------  
114 -  
115 -%build  
116 -make clean  
117 -make all  
118 -  
119 -%{_mingw32_strip} --strip-all .bin/Release/*.dll.%{MAJOR_VERSION}.%{MINOR_VERSION}  
120 -%{_mingw32_strip} --strip-all .bin/Release/*.exe  
121 -  
122 -%install  
123 -%{_mingw32_makeinstall}  
124 -  
125 -sed -i -e "s@^Version:.*@Version: %{version}@g" %{buildroot}%{_mingw32_libdir}/pkgconfig/pw3270.pc  
126 -  
127 -# Deprecated, remove them  
128 -rm -f %{buildroot}%{_mingw32_datadir}/pw3270/ui/80javasamples.xml  
129 -rm -f %{buildroot}%{_mingw32_datadir}/pw3270/ui/80rexx.xml  
130 -  
131 -%clean  
132 -rm -rf %{buildroot}  
133 -  
134 -#---[ Files ]---------------------------------------------------------------------------------------------------------  
135 -  
136 -%files  
137 -%defattr(-,root,root)  
138 -%doc AUTHORS LICENSE  
139 -  
140 -# Main application  
141 -%dir %{_mingw32_datadir}/pw3270  
142 -%dir %{_mingw32_datadir}/pw3270/ui  
143 -%dir %{_mingw32_datadir}/pw3270/charsets  
144 -  
145 -%{_mingw32_bindir}/pw3270.exe  
146 -%{_mingw32_libdir}/pw3270.dll  
147 -%{_mingw32_libdir}/pw3270.dll.%{MAJOR_VERSION}  
148 -%{_mingw32_libdir}/pw3270.dll.%{MAJOR_VERSION}.%{MINOR_VERSION}  
149 -  
150 -%{_mingw32_datadir}/pw3270/ui/00default.xml  
151 -%{_mingw32_datadir}/pw3270/ui/10functions.xml  
152 -%{_mingw32_datadir}/pw3270/ui/10keypad.xml  
153 -%{_mingw32_datadir}/pw3270/colors.conf  
154 -%{_mingw32_datadir}/pw3270/pw3270.png  
155 -%{_mingw32_datadir}/pw3270/pw3270-logo.png  
156 -%{_mingw32_datadir}/pw3270/charsets/bracket.xml  
157 -  
158 -%dir %{_mingw32_datadir}/locale  
159 -%dir %{_mingw32_datadir}/locale/pt_BR  
160 -%dir %{_mingw32_datadir}/locale/pt_BR/LC_MESSAGES  
161 -%{_mingw32_datadir}/locale/pt_BR/LC_MESSAGES/pw3270.mo  
162 -  
163 -%dir %{_mingw32_libdir}/pw3270-plugins  
164 -  
165 -%files devel  
166 -%defattr(-,root,root)  
167 -%{_mingw32_includedir}/pw3270  
168 -%{_mingw32_includedir}/pw3270.h  
169 -%{_mingw32_libdir}/pkgconfig/pw3270.pc  
170 -%{_mingw32_datadir}/pw3270/ui/98trace.xml  
171 -%{_mingw32_datadir}/pw3270/ui/99debug.xml  
172 -  
173 -%dir %{_mingw32_datadir}/pw3270/locale  
174 -%{_mingw32_datadir}/pw3270/locale/Makefile  
175 -%{_mingw32_datadir}/pw3270/locale/pt_BR.po  
176 -%{_mingw32_datadir}/pw3270/locale/pw3270.pot  
177 -  
178 -#%{_mingw32_includedir}/pw3270cpp.h  
179 -%{_mingw32_libdir}/libpw3270cpp.a  
180 -  
181 -%changelog  
182 -  
win/mingw64-pw3270.spec
@@ -1,211 +0,0 @@ @@ -1,211 +0,0 @@
1 -#  
2 -# spec file for package mingw64-pw3270  
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 1  
21 -  
22 -%define __strip %{_mingw64_strip}  
23 -%define __objdump %{_mingw64_objdump}  
24 -%define _use_internal_dependency_generator 0  
25 -%define __find_requires %{_mingw64_findrequires}  
26 -%define __find_provides %{_mingw64_findprovides}  
27 -%define __os_install_post %{_mingw64_debug_install_post} \  
28 - %{_mingw64_install_post}  
29 -  
30 -#---[ Packaging ]-----------------------------------------------------------------------------------------------------  
31 -  
32 -Name: mingw64-pw3270  
33 -Version: 5.1  
34 -Release: 0  
35 -Summary: IBM 3270 Terminal emulator for GTK  
36 -License: GPL-2.0  
37 -Group: System/X11/Terminals  
38 -Url: http://www.softwarepublico.gov.br/dotlrn/clubs/pw3270  
39 -Source: pw3270-%{version}.tar.bz2  
40 -BuildRoot: %{_tmppath}/%{name}-%{version}-build  
41 -  
42 -Requires: mingw64-gtk3  
43 -Requires: mingw64-lib3270 = %{version}  
44 -  
45 -Provides: mingw64(lib:pw3270) = %{version}  
46 -Requires: mingw64-lib3270-%{MAJOR_VERSION}_%{MINOR_VERSION} = %{version}  
47 -  
48 -BuildRequires: autoconf  
49 -BuildRequires: automake  
50 -BuildRequires: rsvg-view  
51 -BuildRequires: gettext-tools  
52 -BuildRequires: glib2-devel  
53 -BuildRequires: pkgconfig(gtk+-3.0)  
54 -  
55 -BuildRequires: desktop-file-utils  
56 -BuildRequires: optipng  
57 -  
58 -BuildRequires: mingw64-cross-binutils  
59 -BuildRequires: mingw64-cross-gcc  
60 -BuildRequires: mingw64-cross-gcc-c++  
61 -BuildRequires: mingw64-cross-pkg-config  
62 -BuildRequires: mingw64-filesystem  
63 -BuildRequires: mingw64-libopenssl-devel  
64 -BuildRequires: mingw64-zlib-devel  
65 -BuildRequires: sed  
66 -  
67 -BuildRequires: mingw64(pkg:gtk+-win32-3.0)  
68 -  
69 -#---------------------------------------------------------------------------------------------------------------------  
70 -  
71 -%description  
72 -Open-source GTK-based IBM 3270 terminal emulator with many advanced features. It can be used to communicate with any IBM host that supports 3270-style connections over TELNET.  
73 -Based on the original x3270 code, pw3270 was originally created for Banco do Brasil, and is now used worldwide.  
74 -  
75 -#--[ lib3270 ]--------------------------------------------------------------------------------------------------------  
76 -  
77 -%package -n mingw64-lib3270-%{MAJOR_VERSION}_%{MINOR_VERSION}  
78 -Summary: 3270 Communication library for %{name}  
79 -Group: Development/Libraries/C and C++  
80 -  
81 -Provides: mingw64-lib3270 = %{version}  
82 -Provides: mingw64(lib:3270) = %{version}  
83 -  
84 -%description -n mingw64-lib3270-%{MAJOR_VERSION}_%{MINOR_VERSION}  
85 -Open-source GTK-based IBM 3270 terminal emulator with many advanced features. It can be used to communicate with any IBM host that supports 3270-style connections over TELNET.  
86 -  
87 -This package contains the tn3270 protocol library for %{name}  
88 -  
89 -#--[ Devel ]----------------------------------------------------------------------------------------------------------  
90 -  
91 -%package -n mingw64-lib3270-devel  
92 -Summary: Devel for 3270 Communication library for %{name}  
93 -Group: Development/Libraries/C and C++  
94 -  
95 -Requires: mingw64-lib3270-%{MAJOR_VERSION}_%{MINOR_VERSION} = %{version}  
96 -Provides: mingw64-lib3270-devel-%{MAJOR_VERSION}_%{MINOR_VERSION} = %{version}  
97 -Requires: mingw64-lib3270-%{MAJOR_VERSION}_%{MINOR_VERSION} = %{version}  
98 -  
99 -%description -n mingw64-lib3270-devel  
100 -Open-source GTK-based IBM 3270 terminal emulator with many advanced features. It can be used to communicate with any IBM host that supports 3270-style connections over TELNET.  
101 -This package contains the development files for tn3270 protocol library for %{name}  
102 -  
103 -%package -n %{name}-devel  
104 -Summary: Files required for development of %{name} plugins  
105 -Group: Development/Libraries/C and C++  
106 -  
107 -Requires: mingw64(lib:3270) = %{version}  
108 -Requires: mingw64(lib:pw3270) = %{version}  
109 -  
110 -%description -n %{name}-devel  
111 -Open-source GTK-based IBM 3270 terminal emulator with many advanced features. It can be used to communicate with any IBM host that supports 3270-style connections over TELNET.  
112 -  
113 -This package contains the development files for %{name}  
114 -  
115 -#---[ Build & Install ]-----------------------------------------------------------------------------------------------  
116 -  
117 -%prep  
118 -  
119 -%setup -q -n pw3270-%{version}  
120 -  
121 -echo "m4_define([SVN_REVISION], %{release})" > revision.m4  
122 -echo "m4_define([SVN_URL], http://softwarepublico.gov.br/gitlab/pw3270/principal.git)" >> revision.m4  
123 -echo "m4_define([APP_LEVEL], 0)" >> revision.m4  
124 -  
125 -find . -exec touch {} \;  
126 -aclocal  
127 -autoconf  
128 -%{_mingw64_configure}  
129 -  
130 -%build  
131 -make clean  
132 -make all  
133 -  
134 -%{_mingw64_strip} --strip-all .bin/Release/*.dll.%{MAJOR_VERSION}.%{MINOR_VERSION}  
135 -%{_mingw64_strip} --strip-all .bin/Release/*.exe  
136 -%{_mingw64_strip} --strip-all .bin/Release/plugins/*.dll  
137 -  
138 -%install  
139 -%{_mingw64_makeinstall}  
140 -  
141 -sed -i -e "s@^Version:.*@Version: %{version}@g" %{buildroot}%{_mingw64_libdir}/pkgconfig/lib3270.pc  
142 -sed -i -e "s@^Version:.*@Version: %{version}@g" %{buildroot}%{_mingw64_libdir}/pkgconfig/pw3270.pc  
143 -  
144 -rm -f %{buildroot}%{_mingw64_datadir}/pw3270/ui/80javasamples.xml  
145 -rm -f %{buildroot}%{_mingw64_datadir}/pw3270/ui/80rexx.xml  
146 -  
147 -  
148 -%clean  
149 -rm -rf %{buildroot}  
150 -  
151 -#---[ Files ]---------------------------------------------------------------------------------------------------------  
152 -  
153 -%files  
154 -%defattr(-,root,root)  
155 -%doc AUTHORS LICENSE  
156 -# %{_mingw64_mandir}/*/*  
157 -  
158 -# Main application  
159 -%dir %{_mingw64_datadir}/pw3270  
160 -%dir %{_mingw64_datadir}/pw3270/ui  
161 -%{_mingw64_bindir}/pw3270.exe  
162 -%{_mingw64_libdir}/pw3270.dll  
163 -%{_mingw64_libdir}/pw3270.dll.%{MAJOR_VERSION}  
164 -%{_mingw64_libdir}/pw3270.dll.%{MAJOR_VERSION}.%{MINOR_VERSION}  
165 -  
166 -%{_mingw64_datadir}/pw3270/ui/00default.xml  
167 -%{_mingw64_datadir}/pw3270/ui/10functions.xml  
168 -%{_mingw64_datadir}/pw3270/ui/10keypad.xml  
169 -%{_mingw64_datadir}/pw3270/colors.conf  
170 -%{_mingw64_datadir}/pw3270/pw3270.png  
171 -%{_mingw64_datadir}/pw3270/pw3270-logo.png  
172 -  
173 -%dir %{_mingw64_datadir}/locale  
174 -%dir %{_mingw64_datadir}/locale/pt_BR  
175 -%dir %{_mingw64_datadir}/locale/pt_BR/LC_MESSAGES  
176 -%{_mingw64_datadir}/locale/pt_BR/LC_MESSAGES/pw3270.mo  
177 -  
178 -%dir %{_mingw64_libdir}/pw3270-plugins  
179 -%{_mingw64_libdir}/libhllapi.dll  
180 -%{_mingw64_libdir}/pw3270-plugins/hllapi.dll  
181 -  
182 -%files -n mingw64-lib3270-%{MAJOR_VERSION}_%{MINOR_VERSION}  
183 -%defattr(-,root,root)  
184 -%{_mingw64_libdir}/lib3270.dll.%{MAJOR_VERSION}.%{MINOR_VERSION}  
185 -%{_mingw64_libdir}/lib3270.dll.%{MAJOR_VERSION}  
186 -%{_mingw64_libdir}/lib3270.dll  
187 -  
188 -%files -n mingw64-lib3270-devel  
189 -%defattr(-,root,root)  
190 -%{_mingw64_includedir}/lib3270  
191 -%{_mingw64_includedir}/lib3270.h  
192 -%{_mingw64_libdir}/pkgconfig/lib3270.pc  
193 -  
194 -%files -n %{name}-devel  
195 -%defattr(-,root,root)  
196 -%{_mingw64_includedir}/pw3270  
197 -%{_mingw64_includedir}/pw3270.h  
198 -%{_mingw64_libdir}/pkgconfig/pw3270.pc  
199 -%{_mingw64_datadir}/pw3270/ui/98trace.xml  
200 -%{_mingw64_datadir}/pw3270/ui/99debug.xml  
201 -  
202 -%dir %{_mingw64_datadir}/pw3270/locale  
203 -%{_mingw64_datadir}/pw3270/locale/Makefile  
204 -%{_mingw64_datadir}/pw3270/locale/pt_BR.po  
205 -%{_mingw64_datadir}/pw3270/locale/pw3270.pot  
206 -  
207 -%{_mingw64_includedir}/pw3270cpp.h  
208 -%{_mingw64_libdir}/libpw3270cpp.a  
209 -  
210 -%changelog  
211 -  
@@ -56,13 +56,14 @@ cleanup() @@ -56,13 +56,14 @@ cleanup()
56 failed() 56 failed()
57 { 57 {
58 echo "$@" 58 echo "$@"
59 - cleanup  
60 59
61 if [ "${PAUSE_ON_ERROR}" != "0" ]; then 60 if [ "${PAUSE_ON_ERROR}" != "0" ]; then
62 echo "Type exit to end build script" 61 echo "Type exit to end build script"
63 /bin/bash 62 /bin/bash
64 fi 63 fi
65 64
  65 + cleanup
  66 +
66 exit -1 67 exit -1
67 } 68 }
68 69
win/pw3270.nsi.in
@@ -210,8 +210,16 @@ SubSection &quot;@PRODUCT_NAME@&quot; SecMain @@ -210,8 +210,16 @@ SubSection &quot;@PRODUCT_NAME@&quot; SecMain
210 210
211 SubSectionEnd 211 SubSectionEnd
212 212
  213 +
213 SubSectionEnd 214 SubSectionEnd
214 215
  216 +Section "Development Kit" SDK
  217 +
  218 + setOutPath $INSTDIR/sdk
  219 + file /r "include\*.*"
  220 +
  221 +SectionEnd
  222 +
215 !ifdef WITHGTK 223 !ifdef WITHGTK
216 Section /o "GTK+ Runtime" SecGTK 224 Section /o "GTK+ Runtime" SecGTK
217 225
win/x86_32/mingw32-pw3270.spec 0 → 100644
@@ -0,0 +1,182 @@ @@ -0,0 +1,182 @@
  1 +#
  2 +# spec file for package mingw32-pw3270
  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 __strip %{_mingw32_strip}
  23 +%define __objdump %{_mingw32_objdump}
  24 +%define _use_internal_dependency_generator 0
  25 +%define __find_requires %{_mingw32_findrequires}
  26 +%define __find_provides %{_mingw32_findprovides}
  27 +%define __os_install_post %{_mingw32_debug_install_post} \
  28 + %{_mingw32_install_post}
  29 +
  30 +#---[ Packaging ]-----------------------------------------------------------------------------------------------------
  31 +
  32 +Name: mingw32-pw3270
  33 +Version: 5.2
  34 +Release: 0
  35 +Summary: IBM 3270 Terminal emulator for GTK
  36 +License: GPL-2.0
  37 +Group: System/X11/Terminals
  38 +Url: http://www.softwarepublico.gov.br/dotlrn/clubs/pw3270
  39 +Source: pw3270-%{version}.tar.xz
  40 +BuildRoot: %{_tmppath}/%{name}-%{version}-build
  41 +
  42 +Provides: mingw32-pw3270-%{MAJOR_VERSION}_%{MINOR_VERSION}
  43 +Conflicts: otherproviders(mingw32-pw3270-%{MAJOR_VERSION}_%{MINOR_VERSION})
  44 +
  45 +Provides: mingw32(lib:pw3270)
  46 +
  47 +BuildRequires: autoconf
  48 +BuildRequires: automake
  49 +
  50 +BuildRequires: gettext-tools
  51 +
  52 +BuildRequires: rsvg-view
  53 +BuildRequires: glib2-devel
  54 +BuildRequires: pkgconfig(gtk+-3.0)
  55 +
  56 +BuildRequires: desktop-file-utils
  57 +BuildRequires: optipng
  58 +
  59 +BuildRequires: mingw32-cross-binutils
  60 +BuildRequires: mingw32-cross-gcc
  61 +BuildRequires: mingw32-cross-gcc-c++
  62 +BuildRequires: mingw32-cross-pkg-config
  63 +
  64 +BuildRequires: mingw32-filesystem
  65 +BuildRequires: mingw32-libopenssl-devel
  66 +BuildRequires: mingw32-zlib-devel
  67 +BuildRequires: sed
  68 +
  69 +BuildRequires: mingw32(pkg:gtk+-win32-3.0)
  70 +BuildRequires: mingw32(pkg:lib3270)
  71 +BuildRequires: mingw32(pkg:libv3270)
  72 +
  73 +BuildRequires: ImageMagick
  74 +
  75 +#---------------------------------------------------------------------------------------------------------------------
  76 +
  77 +%description
  78 +Open-source GTK-based IBM 3270 terminal emulator with many advanced features. It can be used to communicate with any IBM host that supports 3270-style connections over TELNET.
  79 +Based on the original x3270 code, pw3270 was originally created for Banco do Brasil, and is now used worldwide.
  80 +
  81 +#--[ Devel ]----------------------------------------------------------------------------------------------------------
  82 +
  83 +%package devel
  84 +Summary: Files required for development of %{name} plugins
  85 +Group: Development/Libraries/C and C++
  86 +
  87 +Requires: mingw32-pw3270-%{MAJOR_VERSION}_%{MINOR_VERSION} = %{version}
  88 +
  89 +%description devel
  90 +Open-source GTK-based IBM 3270 terminal emulator with many advanced features. It can be used to communicate with any IBM host that supports 3270-style connections over TELNET.
  91 +
  92 +This package contains the development files for %{name}
  93 +
  94 +#---[ Build & Install ]-----------------------------------------------------------------------------------------------
  95 +
  96 +%prep
  97 +
  98 +%setup -q -n pw3270-%{version}
  99 +#%patch0 -p0
  100 +
  101 +echo "m4_define([SVN_REVISION], %{release})" > revision.m4
  102 +echo "m4_define([SVN_URL], http://softwarepublico.gov.br/gitlab/pw3270/principal.git)" >> revision.m4
  103 +echo "m4_define([APP_LEVEL], 0)" >> revision.m4
  104 +
  105 +find . -exec touch {} \;
  106 +aclocal
  107 +autoconf
  108 +%{_mingw32_configure} \
  109 + --with-source-locales=%{_mingw32_datadir}/pw3270/pot
  110 +
  111 +echo ---------------------------------------------------------
  112 +cat Makefile
  113 +echo ---------------------------------------------------------
  114 +
  115 +%build
  116 +make clean
  117 +make all
  118 +
  119 +%{_mingw32_strip} --strip-all .bin/Release/*.dll.%{MAJOR_VERSION}.%{MINOR_VERSION}
  120 +%{_mingw32_strip} --strip-all .bin/Release/*.exe
  121 +
  122 +%install
  123 +%{_mingw32_makeinstall}
  124 +
  125 +sed -i -e "s@^Version:.*@Version: %{version}@g" %{buildroot}%{_mingw32_libdir}/pkgconfig/pw3270.pc
  126 +
  127 +# Deprecated, remove them
  128 +rm -f %{buildroot}%{_mingw32_datadir}/pw3270/ui/80javasamples.xml
  129 +rm -f %{buildroot}%{_mingw32_datadir}/pw3270/ui/80rexx.xml
  130 +
  131 +%clean
  132 +rm -rf %{buildroot}
  133 +
  134 +#---[ Files ]---------------------------------------------------------------------------------------------------------
  135 +
  136 +%files
  137 +%defattr(-,root,root)
  138 +%doc AUTHORS LICENSE
  139 +
  140 +# Main application
  141 +%dir %{_mingw32_datadir}/pw3270
  142 +%dir %{_mingw32_datadir}/pw3270/ui
  143 +%dir %{_mingw32_datadir}/pw3270/charsets
  144 +
  145 +%{_mingw32_bindir}/pw3270.exe
  146 +%{_mingw32_libdir}/pw3270.dll
  147 +%{_mingw32_libdir}/pw3270.dll.%{MAJOR_VERSION}
  148 +%{_mingw32_libdir}/pw3270.dll.%{MAJOR_VERSION}.%{MINOR_VERSION}
  149 +
  150 +%{_mingw32_datadir}/pw3270/ui/00default.xml
  151 +%{_mingw32_datadir}/pw3270/ui/10functions.xml
  152 +%{_mingw32_datadir}/pw3270/ui/10keypad.xml
  153 +%{_mingw32_datadir}/pw3270/colors.conf
  154 +%{_mingw32_datadir}/pw3270/pw3270.png
  155 +%{_mingw32_datadir}/pw3270/pw3270-logo.png
  156 +%{_mingw32_datadir}/pw3270/charsets/bracket.xml
  157 +
  158 +%dir %{_mingw32_datadir}/locale
  159 +%dir %{_mingw32_datadir}/locale/pt_BR
  160 +%dir %{_mingw32_datadir}/locale/pt_BR/LC_MESSAGES
  161 +%{_mingw32_datadir}/locale/pt_BR/LC_MESSAGES/pw3270.mo
  162 +
  163 +%dir %{_mingw32_libdir}/pw3270-plugins
  164 +
  165 +%files devel
  166 +%defattr(-,root,root)
  167 +%{_mingw32_includedir}/pw3270
  168 +%{_mingw32_includedir}/pw3270.h
  169 +%{_mingw32_libdir}/pkgconfig/pw3270.pc
  170 +%{_mingw32_datadir}/pw3270/ui/98trace.xml
  171 +%{_mingw32_datadir}/pw3270/ui/99debug.xml
  172 +
  173 +%dir %{_mingw32_datadir}/pw3270/locale
  174 +%{_mingw32_datadir}/pw3270/locale/Makefile
  175 +%{_mingw32_datadir}/pw3270/locale/pt_BR.po
  176 +%{_mingw32_datadir}/pw3270/locale/pw3270.pot
  177 +
  178 +#%{_mingw32_includedir}/pw3270cpp.h
  179 +%{_mingw32_libdir}/libpw3270cpp.a
  180 +
  181 +%changelog
  182 +
win/x86_64/mingw64-pw3270.spec 0 → 100644
@@ -0,0 +1,211 @@ @@ -0,0 +1,211 @@
  1 +#
  2 +# spec file for package mingw64-pw3270
  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 1
  21 +
  22 +%define __strip %{_mingw64_strip}
  23 +%define __objdump %{_mingw64_objdump}
  24 +%define _use_internal_dependency_generator 0
  25 +%define __find_requires %{_mingw64_findrequires}
  26 +%define __find_provides %{_mingw64_findprovides}
  27 +%define __os_install_post %{_mingw64_debug_install_post} \
  28 + %{_mingw64_install_post}
  29 +
  30 +#---[ Packaging ]-----------------------------------------------------------------------------------------------------
  31 +
  32 +Name: mingw64-pw3270
  33 +Version: 5.1
  34 +Release: 0
  35 +Summary: IBM 3270 Terminal emulator for GTK
  36 +License: GPL-2.0
  37 +Group: System/X11/Terminals
  38 +Url: http://www.softwarepublico.gov.br/dotlrn/clubs/pw3270
  39 +Source: pw3270-%{version}.tar.bz2
  40 +BuildRoot: %{_tmppath}/%{name}-%{version}-build
  41 +
  42 +Requires: mingw64-gtk3
  43 +Requires: mingw64-lib3270 = %{version}
  44 +
  45 +Provides: mingw64(lib:pw3270) = %{version}
  46 +Requires: mingw64-lib3270-%{MAJOR_VERSION}_%{MINOR_VERSION} = %{version}
  47 +
  48 +BuildRequires: autoconf
  49 +BuildRequires: automake
  50 +BuildRequires: rsvg-view
  51 +BuildRequires: gettext-tools
  52 +BuildRequires: glib2-devel
  53 +BuildRequires: pkgconfig(gtk+-3.0)
  54 +
  55 +BuildRequires: desktop-file-utils
  56 +BuildRequires: optipng
  57 +
  58 +BuildRequires: mingw64-cross-binutils
  59 +BuildRequires: mingw64-cross-gcc
  60 +BuildRequires: mingw64-cross-gcc-c++
  61 +BuildRequires: mingw64-cross-pkg-config
  62 +BuildRequires: mingw64-filesystem
  63 +BuildRequires: mingw64-libopenssl-devel
  64 +BuildRequires: mingw64-zlib-devel
  65 +BuildRequires: sed
  66 +
  67 +BuildRequires: mingw64(pkg:gtk+-win32-3.0)
  68 +
  69 +#---------------------------------------------------------------------------------------------------------------------
  70 +
  71 +%description
  72 +Open-source GTK-based IBM 3270 terminal emulator with many advanced features. It can be used to communicate with any IBM host that supports 3270-style connections over TELNET.
  73 +Based on the original x3270 code, pw3270 was originally created for Banco do Brasil, and is now used worldwide.
  74 +
  75 +#--[ lib3270 ]--------------------------------------------------------------------------------------------------------
  76 +
  77 +%package -n mingw64-lib3270-%{MAJOR_VERSION}_%{MINOR_VERSION}
  78 +Summary: 3270 Communication library for %{name}
  79 +Group: Development/Libraries/C and C++
  80 +
  81 +Provides: mingw64-lib3270 = %{version}
  82 +Provides: mingw64(lib:3270) = %{version}
  83 +
  84 +%description -n mingw64-lib3270-%{MAJOR_VERSION}_%{MINOR_VERSION}
  85 +Open-source GTK-based IBM 3270 terminal emulator with many advanced features. It can be used to communicate with any IBM host that supports 3270-style connections over TELNET.
  86 +
  87 +This package contains the tn3270 protocol library for %{name}
  88 +
  89 +#--[ Devel ]----------------------------------------------------------------------------------------------------------
  90 +
  91 +%package -n mingw64-lib3270-devel
  92 +Summary: Devel for 3270 Communication library for %{name}
  93 +Group: Development/Libraries/C and C++
  94 +
  95 +Requires: mingw64-lib3270-%{MAJOR_VERSION}_%{MINOR_VERSION} = %{version}
  96 +Provides: mingw64-lib3270-devel-%{MAJOR_VERSION}_%{MINOR_VERSION} = %{version}
  97 +Requires: mingw64-lib3270-%{MAJOR_VERSION}_%{MINOR_VERSION} = %{version}
  98 +
  99 +%description -n mingw64-lib3270-devel
  100 +Open-source GTK-based IBM 3270 terminal emulator with many advanced features. It can be used to communicate with any IBM host that supports 3270-style connections over TELNET.
  101 +This package contains the development files for tn3270 protocol library for %{name}
  102 +
  103 +%package -n %{name}-devel
  104 +Summary: Files required for development of %{name} plugins
  105 +Group: Development/Libraries/C and C++
  106 +
  107 +Requires: mingw64(lib:3270) = %{version}
  108 +Requires: mingw64(lib:pw3270) = %{version}
  109 +
  110 +%description -n %{name}-devel
  111 +Open-source GTK-based IBM 3270 terminal emulator with many advanced features. It can be used to communicate with any IBM host that supports 3270-style connections over TELNET.
  112 +
  113 +This package contains the development files for %{name}
  114 +
  115 +#---[ Build & Install ]-----------------------------------------------------------------------------------------------
  116 +
  117 +%prep
  118 +
  119 +%setup -q -n pw3270-%{version}
  120 +
  121 +echo "m4_define([SVN_REVISION], %{release})" > revision.m4
  122 +echo "m4_define([SVN_URL], http://softwarepublico.gov.br/gitlab/pw3270/principal.git)" >> revision.m4
  123 +echo "m4_define([APP_LEVEL], 0)" >> revision.m4
  124 +
  125 +find . -exec touch {} \;
  126 +aclocal
  127 +autoconf
  128 +%{_mingw64_configure}
  129 +
  130 +%build
  131 +make clean
  132 +make all
  133 +
  134 +%{_mingw64_strip} --strip-all .bin/Release/*.dll.%{MAJOR_VERSION}.%{MINOR_VERSION}
  135 +%{_mingw64_strip} --strip-all .bin/Release/*.exe
  136 +%{_mingw64_strip} --strip-all .bin/Release/plugins/*.dll
  137 +
  138 +%install
  139 +%{_mingw64_makeinstall}
  140 +
  141 +sed -i -e "s@^Version:.*@Version: %{version}@g" %{buildroot}%{_mingw64_libdir}/pkgconfig/lib3270.pc
  142 +sed -i -e "s@^Version:.*@Version: %{version}@g" %{buildroot}%{_mingw64_libdir}/pkgconfig/pw3270.pc
  143 +
  144 +rm -f %{buildroot}%{_mingw64_datadir}/pw3270/ui/80javasamples.xml
  145 +rm -f %{buildroot}%{_mingw64_datadir}/pw3270/ui/80rexx.xml
  146 +
  147 +
  148 +%clean
  149 +rm -rf %{buildroot}
  150 +
  151 +#---[ Files ]---------------------------------------------------------------------------------------------------------
  152 +
  153 +%files
  154 +%defattr(-,root,root)
  155 +%doc AUTHORS LICENSE
  156 +# %{_mingw64_mandir}/*/*
  157 +
  158 +# Main application
  159 +%dir %{_mingw64_datadir}/pw3270
  160 +%dir %{_mingw64_datadir}/pw3270/ui
  161 +%{_mingw64_bindir}/pw3270.exe
  162 +%{_mingw64_libdir}/pw3270.dll
  163 +%{_mingw64_libdir}/pw3270.dll.%{MAJOR_VERSION}
  164 +%{_mingw64_libdir}/pw3270.dll.%{MAJOR_VERSION}.%{MINOR_VERSION}
  165 +
  166 +%{_mingw64_datadir}/pw3270/ui/00default.xml
  167 +%{_mingw64_datadir}/pw3270/ui/10functions.xml
  168 +%{_mingw64_datadir}/pw3270/ui/10keypad.xml
  169 +%{_mingw64_datadir}/pw3270/colors.conf
  170 +%{_mingw64_datadir}/pw3270/pw3270.png
  171 +%{_mingw64_datadir}/pw3270/pw3270-logo.png
  172 +
  173 +%dir %{_mingw64_datadir}/locale
  174 +%dir %{_mingw64_datadir}/locale/pt_BR
  175 +%dir %{_mingw64_datadir}/locale/pt_BR/LC_MESSAGES
  176 +%{_mingw64_datadir}/locale/pt_BR/LC_MESSAGES/pw3270.mo
  177 +
  178 +%dir %{_mingw64_libdir}/pw3270-plugins
  179 +%{_mingw64_libdir}/libhllapi.dll
  180 +%{_mingw64_libdir}/pw3270-plugins/hllapi.dll
  181 +
  182 +%files -n mingw64-lib3270-%{MAJOR_VERSION}_%{MINOR_VERSION}
  183 +%defattr(-,root,root)
  184 +%{_mingw64_libdir}/lib3270.dll.%{MAJOR_VERSION}.%{MINOR_VERSION}
  185 +%{_mingw64_libdir}/lib3270.dll.%{MAJOR_VERSION}
  186 +%{_mingw64_libdir}/lib3270.dll
  187 +
  188 +%files -n mingw64-lib3270-devel
  189 +%defattr(-,root,root)
  190 +%{_mingw64_includedir}/lib3270
  191 +%{_mingw64_includedir}/lib3270.h
  192 +%{_mingw64_libdir}/pkgconfig/lib3270.pc
  193 +
  194 +%files -n %{name}-devel
  195 +%defattr(-,root,root)
  196 +%{_mingw64_includedir}/pw3270
  197 +%{_mingw64_includedir}/pw3270.h
  198 +%{_mingw64_libdir}/pkgconfig/pw3270.pc
  199 +%{_mingw64_datadir}/pw3270/ui/98trace.xml
  200 +%{_mingw64_datadir}/pw3270/ui/99debug.xml
  201 +
  202 +%dir %{_mingw64_datadir}/pw3270/locale
  203 +%{_mingw64_datadir}/pw3270/locale/Makefile
  204 +%{_mingw64_datadir}/pw3270/locale/pt_BR.po
  205 +%{_mingw64_datadir}/pw3270/locale/pw3270.pot
  206 +
  207 +%{_mingw64_includedir}/pw3270cpp.h
  208 +%{_mingw64_libdir}/libpw3270cpp.a
  209 +
  210 +%changelog
  211 +