Commit 0958a783775cbb9cecd31b7a1249f3e3112895e5
1 parent
aa623edc
Exists in
master
and in
5 other branches
Ajustando compilação windows, reativando plugin hllapi
Showing
6 changed files
with
445 additions
and
252 deletions
Show diff stats
configure.ac
@@ -93,7 +93,9 @@ case "$host" in | @@ -93,7 +93,9 @@ case "$host" in | ||
93 | LIBS="$LIBS -lws2_32 -lntdll -lwtsapi32 -lintl -lcomdlg32" | 93 | LIBS="$LIBS -lws2_32 -lntdll -lwtsapi32 -lintl -lcomdlg32" |
94 | 94 | ||
95 | AC_CONFIG_FILES(win/makegtkruntime.sh) | 95 | AC_CONFIG_FILES(win/makegtkruntime.sh) |
96 | + AC_CONFIG_FILES(src/plugins/hllapi/Makefile) | ||
96 | 97 | ||
98 | + PLUGINS="$PLUGINS hllapi" | ||
97 | ;; | 99 | ;; |
98 | 100 | ||
99 | *-apple-*) | 101 | *-apple-*) |
src/plugins/hllapi/Makefile.in
@@ -22,74 +22,265 @@ | @@ -22,74 +22,265 @@ | ||
22 | # | 22 | # |
23 | # perry.werneck@gmail.com (Alexandre Perry de Souza Werneck) | 23 | # perry.werneck@gmail.com (Alexandre Perry de Souza Werneck) |
24 | # erico.mendonca@gmail.com (Erico Mascarenhas de Mendonça) | 24 | # erico.mendonca@gmail.com (Erico Mascarenhas de Mendonça) |
25 | -# licinio@bb.com.br (Licínio Luis Branco) | ||
26 | -# kraucer@bb.com.br (Kraucer Fernandes Mazuco) | ||
27 | # | 25 | # |
28 | 26 | ||
29 | -#---[ Sources ]---------------------------------------------------------------- | ||
30 | - | ||
31 | MODULE_NAME=hllapi | 27 | MODULE_NAME=hllapi |
32 | -DEPENDS=*.h ../../include/*.h ../../include/lib3270/*.h Makefile ../../classlib/*.cc | ||
33 | -PLUGIN_SRC=pluginmain.c | ||
34 | -EXTAPI_SRC=calls.c hllapi.c | 28 | +LIBNAME=lib$(MODULE_NAME)@DLLEXT@ |
29 | + | ||
30 | +PLUGIN_SOURCES=pluginmain.c | ||
31 | +API_SOURCES=calls.c hllapi.c | ||
32 | + | ||
33 | +#---[ Configuration values ]------------------------------------------------------------- | ||
34 | + | ||
35 | +PACKAGE_NAME=@PACKAGE_NAME@ | ||
36 | +PACKAGE_VERSION=@PACKAGE_VERSION@ | ||
37 | +PACKAGE_TARNAME=@PACKAGE_TARNAME@ | ||
38 | + | ||
39 | +prefix=@prefix@ | ||
40 | +exec_prefix=@exec_prefix@ | ||
41 | +bindir=@bindir@ | ||
42 | +sbindir=@sbindir@ | ||
43 | +libdir=@libdir@ | ||
44 | + | ||
45 | +BASEDIR=@BASEDIR@ | ||
46 | +SRCDIR=$(BASEDIR)/.src/$(PACKAGE_TARNAME)-$(PACKAGE_VERSION)/src/plugins/$(MODULE_NAME) | ||
47 | +POTDIR=$(BASEDIR)/.pot/plugins/$(MODULE_NAME) | ||
48 | + | ||
49 | +OBJDIR=$(BASEDIR)/.obj/plugins/$(MODULE_NAME) | ||
50 | +OBJDBG=$(OBJDIR)/Debug | ||
51 | +OBJRLS=$(OBJDIR)/Release | ||
35 | 52 | ||
36 | -#---[ Include plugin rules ]--------------------------------------------------- | 53 | +BINDIR=$(BASEDIR)/.bin |
54 | +BINDBG=$(BINDIR)/Debug | ||
55 | +BINRLS=$(BINDIR)/Release | ||
37 | 56 | ||
38 | -CLASSLIBDIR=../../classlib | ||
39 | -LIBS=@LIBS@ | 57 | +MKDIR=@MKDIR_P@ |
58 | +CC=@CC@ | ||
59 | +CXX=@CXX@ | ||
60 | +LD=@CXX@ | ||
61 | +AR=@AR@ | ||
62 | +XGETTEXT=@XGETTEXT@ | ||
63 | +MSGCAT=@MSGCAT@ | ||
64 | +INSTALL=@INSTALL@ | ||
65 | +INSTALL_DATA=@INSTALL_DATA@ | ||
66 | +INSTALL_PROGRAM=@INSTALL_PROGRAM@ | ||
67 | +LN_S=@LN_S@ | ||
40 | 68 | ||
41 | -include ../../include/plugin.mak | ||
42 | -include $(CLASSLIBDIR)/class.mak | 69 | +CFLAGS=@CFLAGS@ @GTK_CFLAGS@ -I$(BASEDIR)/src/include |
43 | 70 | ||
44 | -#---[ Release Targets ]-------------------------------------------------------- | 71 | +LIBS=@LIBS@ |
72 | +API_LIBS=$(LIBS) -lpw3270cpp @LIBICONV@ | ||
73 | +PLUGIN_LIBS=$(LIBS) @GTK_LIBS@ @GLIB_LIBS@ @LIB3270_LIBS@ @PW3270_LIBS@ | ||
45 | 74 | ||
46 | -$(BINRLS)/$(PLUGIN_NAME): \ | ||
47 | - $(foreach SRC, $(basename $(PLUGIN_SRC)), $(OBJRLS)/$(SRC).o) \ | ||
48 | - $(BINRLS)$(DLL_NAME) | 75 | +#---[ Rules ]---------------------------------------------------------------------------- |
49 | 76 | ||
50 | - @echo " CCLD `basename $@`" | 77 | +DEPENDS=*.h Makefile |
78 | + | ||
79 | +$(OBJDBG)/%.o: \ | ||
80 | + %.c \ | ||
81 | + $(DEPENDS) | ||
82 | + | ||
83 | + @echo $< ... | ||
51 | @$(MKDIR) `dirname $@` | 84 | @$(MKDIR) `dirname $@` |
52 | - @$(CXX) $(DLL_FLAGS) @LDSOFLAGS@ $(LDFLAGS) @RLS_LDFLAGS@ -o $@ $^ $(LIBS) $(LIB3270_LIBS) $(GTK_LIBS) $(GLIB_LIBS) $(PW3270_LIBS) | 85 | + @$(CC) $(CFLAGS) \ |
86 | + @DBG_CFLAGS@ \ | ||
87 | + -DBUILD_DATE=`date +"0x%Y%m%d"`\ | ||
88 | + -o $@ -c $< | ||
53 | 89 | ||
54 | -$(BINRLS)$(DLL_NAME).$(VERSION): \ | ||
55 | - $(foreach SRC, $(basename $(EXTAPI_SRC)), $(OBJRLS)/$(SRC).o) $(CLASS_RELEASE_OBJECTS) | 90 | +$(OBJDBG)/%.o: \ |
91 | + %.cc \ | ||
92 | + $(DEPENDS) | ||
56 | 93 | ||
57 | - @echo " CCLD `basename $@`" | 94 | + @echo $< ... |
58 | @$(MKDIR) `dirname $@` | 95 | @$(MKDIR) `dirname $@` |
59 | - @$(CXX) $(SYSDLL_FLAGS) @LDSOFLAGS@ $(LDFLAGS) @RLS_LDFLAGS@ -o $@ $^ $(CLASS_LIBS) | 96 | + @$(CXX) $(CFLAGS) \ |
97 | + @DBG_CFLAGS@ \ | ||
98 | + -DBUILD_DATE=`date +"0x%Y%m%d"`\ | ||
99 | + -o $@ -c $< | ||
60 | 100 | ||
61 | -install: | 101 | +$(OBJRLS)/%.o: \ |
102 | + %.c \ | ||
103 | + $(DEPENDS) | ||
62 | 104 | ||
63 | -#---[ Debug Targets ]---------------------------------------------------------- | 105 | + @echo $< ... |
106 | + @$(MKDIR) `dirname $@` | ||
107 | + @$(CC) $(CFLAGS) \ | ||
108 | + @RLS_CFLAGS@ \ | ||
109 | + -DBUILD_DATE=`date +"0x%Y%m%d"` \ | ||
110 | + -o $@ -c $< | ||
64 | 111 | ||
65 | -$(BINDBG)/$(PLUGIN_NAME): \ | ||
66 | - $(foreach SRC, $(basename $(PLUGIN_SRC)), $(OBJDBG)/$(SRC).o) \ | ||
67 | - $(BINDBG)$(DLL_NAME) | 112 | +$(OBJRLS)/%.o: \ |
113 | + %.cc \ | ||
114 | + $(DEPENDS) | ||
68 | 115 | ||
69 | - @echo " CCLD `basename $@`" | 116 | + @echo $< ... |
70 | @$(MKDIR) `dirname $@` | 117 | @$(MKDIR) `dirname $@` |
71 | - @$(CXX) $(DLL_FLAGS) @LDSOFLAGS@ @DBGRPATH@ $(LDFLAGS) -o $@ $^ $(LIBS) $(LIB3270_LIBS) $(GTK_LIBS) $(GLIB_LIBS) $(PW3270_LIBS) | 118 | + @$(CXX) $(CFLAGS) \ |
119 | + @RLS_CFLAGS@ \ | ||
120 | + -DBUILD_DATE=`date +"0x%Y%m%d"` \ | ||
121 | + -o $@ -c $< | ||
72 | 122 | ||
73 | -$(BINDBG)$(DLL_NAME).$(VERSION): \ | ||
74 | - $(foreach SRC, $(basename $(EXTAPI_SRC)), $(OBJDBG)/$(SRC)@OBJEXT@) $(CLASS_DEBUG_OBJECTS) | 123 | +$(POTDIR)/%.pot: %.c |
75 | 124 | ||
76 | - @echo " CCLD `basename $@`" | 125 | + @echo $(notdir $@) ... |
77 | @$(MKDIR) `dirname $@` | 126 | @$(MKDIR) `dirname $@` |
78 | - @$(CXX) $(SYSDLL_FLAGS) $(LDFLAGS) @LDSOFLAGS@ @DBGRPATH@ -L../../../.bin/Debug -o $@ $^ $(CLASS_LIBS) | 127 | + @$(XGETTEXT) \ |
128 | + --default-domain=$(PACKAGE) \ | ||
129 | + --language=C \ | ||
130 | + --keyword=_ \ | ||
131 | + --keyword=N_ \ | ||
132 | + --keyword=MSG_:2 \ | ||
133 | + --output=$@ \ | ||
134 | + $< | ||
79 | 135 | ||
80 | -test: \ | ||
81 | - $(BINDBG)/test@EXEEXT@ | 136 | + @touch $@ |
82 | 137 | ||
83 | -cleantest: \ | ||
84 | - clean | 138 | +#---[ Release Targets ]------------------------------------------------------------------ |
139 | + | ||
140 | +Release: \ | ||
141 | + $(BINRLS)/plugins/$(MODULE_NAME)@DLLEXT@ | ||
142 | + | ||
143 | +install: \ | ||
144 | + $(BINRLS)/$(LIBNAME) \ | ||
145 | + $(BINRLS)/plugins/$(MODULE_NAME)@DLLEXT@ | ||
146 | + | ||
147 | + @echo $@ ... | ||
148 | + @$(MKDIR) $(DESTDIR)$(libdir)/$(PACKAGE_TARNAME)-plugins | ||
149 | + @$(INSTALL_PROGRAM) $(BINRLS)/$(MODULE_NAME)@DLLEXT@ $(DESTDIR)$(libdir)/$(PACKAGE_TARNAME)-plugins/$(MODULE_NAME)@DLLEXT@ | ||
150 | + | ||
151 | + @$(MKDIR) $(DESTDIR)$(libdir) | ||
152 | + @$(INSTALL_PROGRAM) $(BINRLS)/$(LIBNAME) $(DESTDIR)$(libdir) | ||
153 | + | ||
154 | +$(DESTDIR)$(libdir)/$(PACKAGE_TARNAME)-plugins/$(MODULE_NAME)@DLLEXT@: \ | ||
155 | + $(BINRLS)/$(LIBNAME) \ | ||
156 | + $(BINRLS)/plugins/$(MODULE_NAME)@DLLEXT@ | ||
157 | + | ||
158 | + @echo $@ ... | ||
159 | + @$(MKDIR) `dirname $@` | ||
160 | + @$(INSTALL_PROGRAM) $(BINRLS)/$(MODULE_NAME)@DLLEXT@ $@ | ||
161 | + | ||
162 | + @$(MKDIR) $(DESTDIR)$(libdir) | ||
163 | + @$(INSTALL_PROGRAM) $(BINRLS)/$(LIBNAME) $(DESTDIR)$(libdir) | ||
164 | + | ||
165 | +$(BINRLS)/$(LIBNAME): \ | ||
166 | + $(BINRLS)/$(LIBNAME).@PACKAGE_MAJOR_VERSION@ | ||
167 | + | ||
168 | + @echo $(basename $@) ... | ||
169 | + @$(MKDIR) `dirname $@` | ||
170 | + @$(LN_S) -f $(LIBNAME).@PACKAGE_MAJOR_VERSION@ $@ | ||
171 | + | ||
172 | +$(BINRLS)/$(LIBNAME).@PACKAGE_MAJOR_VERSION@: \ | ||
173 | + $(BINRLS)/$(LIBNAME).@PACKAGE_MAJOR_VERSION@.@PACKAGE_MINOR_VERSION@ | ||
174 | + | ||
175 | + @echo $(basename $@) ... | ||
176 | + @$(MKDIR) `dirname $@` | ||
177 | + @$(LN_S) -f $(LIBNAME).@PACKAGE_MAJOR_VERSION@.@PACKAGE_MINOR_VERSION@ $@ | ||
178 | + | ||
179 | +$(BINRLS)/$(LIBNAME).@PACKAGE_MAJOR_VERSION@.@PACKAGE_MINOR_VERSION@: \ | ||
180 | + $(foreach SRC, $(basename $(API_SOURCES)), $(OBJRLS)/$(SRC).o) | ||
181 | + | ||
182 | + @echo $@ ... | ||
183 | + @$(MKDIR) `dirname $@` | ||
184 | + $(LD) \ | ||
185 | + -shared \ | ||
186 | + -Wl,-soname,`basename $@` \ | ||
187 | + -L$(BASEDIR)/.bin/Release \ | ||
188 | + -o $@ $^ \ | ||
189 | + $(API_LIBS) | ||
85 | 190 | ||
86 | -cleanDebug: \ | 191 | +$(BINRLS)/plugins/$(MODULE_NAME)@DLLEXT@: \ |
192 | + $(BINRLS)/$(LIBNAME) \ | ||
193 | + $(foreach SRC, $(basename $(PLUGIN_SOURCES)), $(OBJRLS)/$(SRC).o) | ||
194 | + | ||
195 | + @echo $@ ... | ||
196 | + @$(MKDIR) `dirname $@` | ||
197 | + @$(LD) \ | ||
198 | + -shared \ | ||
199 | + -Wl,-soname,$(MODULE_NAME)d \ | ||
200 | + -L$(BASEDIR)/.bin/Release \ | ||
201 | + -o $@ $(foreach SRC, $(basename $(PLUGIN_SOURCES)), $(OBJRLS)/$(SRC).o) \ | ||
202 | + $(PLUGIN_LIBS) | ||
203 | + | ||
204 | +pot: \ | ||
205 | + $(BASEDIR)/.pot/plugins/$(MODULE_NAME).pot | ||
206 | + | ||
207 | +$(BASEDIR)/.pot/plugins/$(MODULE_NAME).pot: \ | ||
208 | + $(foreach SRC, $(basename $(SOURCES)), $(POTDIR)/$(SRC).pot) | ||
209 | + | ||
210 | + @rm -f $@ | ||
211 | + @mkdir -p `dirname $@` | ||
212 | + @$(MSGCAT) --sort-output $^ > $@ | ||
213 | + | ||
214 | +$(SRCDIR): \ | ||
87 | clean | 215 | clean |
88 | 216 | ||
89 | -$(BINDBG)/test@EXEEXT@: \ | ||
90 | - $(BINDBG)$(DLL_NAME).$(VERSION) $(OBJDBG)/testprogram.o | 217 | + @$(MKDIR) $@ |
218 | + @$(INSTALL_DATA) *.c *.h *.in *.xml *.cbp $@ | ||
219 | + | ||
91 | 220 | ||
92 | - @echo " CCLD `basename $@`" | 221 | +#---[ Debug Targets ]-------------------------------------------------------------------- |
222 | + | ||
223 | +Debug: \ | ||
224 | + $(BINDBG)/plugins/$(MODULE_NAME)@DLLEXT@ | ||
225 | + | ||
226 | +$(BINDBG)/$(LIBNAME): \ | ||
227 | + $(BINDBG)/$(LIBNAME).@PACKAGE_MAJOR_VERSION@ | ||
228 | + | ||
229 | + @echo $(basename $@) ... | ||
93 | @$(MKDIR) `dirname $@` | 230 | @$(MKDIR) `dirname $@` |
94 | - $(LD) -o $@ $^ -Wl,-rpath,$(BINDBG)/lib $(LIBS) $(BINDBG)$(DLL_NAME).$(VERSION) | 231 | + @$(LN_S) -f $(LIBNAME).@PACKAGE_MAJOR_VERSION@ $@ |
232 | + | ||
233 | +$(BINDBG)/$(LIBNAME).@PACKAGE_MAJOR_VERSION@: \ | ||
234 | + $(BINDBG)/$(LIBNAME).@PACKAGE_MAJOR_VERSION@.@PACKAGE_MINOR_VERSION@ | ||
235 | + | ||
236 | + @echo $(basename $@) ... | ||
237 | + @$(MKDIR) `dirname $@` | ||
238 | + @$(LN_S) -f $(LIBNAME).@PACKAGE_MAJOR_VERSION@.@PACKAGE_MINOR_VERSION@ $@ | ||
239 | + | ||
240 | +$(BINDBG)/$(LIBNAME).@PACKAGE_MAJOR_VERSION@.@PACKAGE_MINOR_VERSION@: \ | ||
241 | + $(foreach SRC, $(basename $(API_SOURCES)), $(OBJDBG)/$(SRC).o) | ||
242 | + | ||
243 | + @echo $@ ... | ||
244 | + @$(MKDIR) `dirname $@` | ||
245 | + $(LD) \ | ||
246 | + -shared \ | ||
247 | + -Wl,-soname,`basename $@` \ | ||
248 | + -L$(BASEDIR)/.bin/Debug \ | ||
249 | + -o $@ $^ \ | ||
250 | + $(API_LIBS) | ||
251 | + | ||
252 | +$(BINDBG)/plugins/$(MODULE_NAME)@DLLEXT@: \ | ||
253 | + $(BINDBG)/$(LIBNAME) \ | ||
254 | + $(foreach SRC, $(basename $(PLUGIN_SOURCES)), $(OBJDBG)/$(SRC).o) | ||
255 | + | ||
256 | + @echo $@ ... | ||
257 | + @$(MKDIR) `dirname $@` | ||
258 | + @$(LD) \ | ||
259 | + -shared \ | ||
260 | + -Wl,-soname,$(MODULE_NAME)d,--rpath,$(BASEDIR)/.bin/Debug \ | ||
261 | + -L$(BASEDIR)/.bin/Debug \ | ||
262 | + -o $@ $(foreach SRC, $(basename $(PLUGIN_SOURCES)), $(OBJDBG)/$(SRC).o) \ | ||
263 | + $(PLUGIN_LIBS) | ||
264 | + | ||
265 | + | ||
266 | +#---[ Clean Targets]--------------------------------------------------------------------- | ||
267 | + | ||
268 | +cleanDebug: | ||
269 | + | ||
270 | + @rm -fr $(BINDBG)/$(MODULE_NAME)@DLLEXT@ \ | ||
271 | + $(OBJDBG) \ | ||
272 | + dbus-glue.h | ||
273 | + | ||
274 | +cleanRelease: | ||
275 | + | ||
276 | + @rm -fr $(BINRLS)/$(MODULE_NAME)@DLLEXT@ \ | ||
277 | + $(OBJRLS) \ | ||
278 | + dbus-glue.h | ||
279 | + | ||
280 | + @rm -fr $(POTDIR) | ||
281 | + | ||
282 | +clean: \ | ||
283 | + cleanDebug \ | ||
284 | + cleanRelease | ||
95 | 285 | ||
286 | + |
src/plugins/hllapi/calls.cc
@@ -31,7 +31,7 @@ | @@ -31,7 +31,7 @@ | ||
31 | #include <cstdlib> | 31 | #include <cstdlib> |
32 | #include <cstring> | 32 | #include <cstring> |
33 | 33 | ||
34 | - #include <pw3270/class.h> | 34 | + #include <pw3270cpp.h> |
35 | #include <pw3270/hllapi.h> | 35 | #include <pw3270/hllapi.h> |
36 | #include "client.h" | 36 | #include "client.h" |
37 | 37 |
src/plugins/hllapi/pluginmain.c
@@ -38,7 +38,7 @@ | @@ -38,7 +38,7 @@ | ||
38 | #endif // _WIN32 | 38 | #endif // _WIN32 |
39 | 39 | ||
40 | #include <pw3270/plugin.h> | 40 | #include <pw3270/plugin.h> |
41 | - #include <v3270.h> | 41 | + #include <pw3270/v3270.h> |
42 | #include <pw3270/ipcpackets.h> | 42 | #include <pw3270/ipcpackets.h> |
43 | #include <lib3270/actions.h> | 43 | #include <lib3270/actions.h> |
44 | #include <lib3270/charset.h> | 44 | #include <lib3270/charset.h> |
win/mingw64-pw3270-unstable.spec
@@ -1,208 +0,0 @@ | @@ -1,208 +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 | -BuildArch: noarch | ||
43 | - | ||
44 | -Requires: mingw64-gtk3 | ||
45 | -Requires: mingw64-lib3270 = %{version} | ||
46 | - | ||
47 | -Provides: mingw64(lib:pw3270) = %{version} | ||
48 | -Requires: mingw64-lib3270-%{MAJOR_VERSION}_%{MINOR_VERSION} = %{version} | ||
49 | - | ||
50 | -BuildRequires: autoconf | ||
51 | -BuildRequires: automake | ||
52 | -BuildRequires: rsvg-view | ||
53 | -BuildRequires: gettext-tools | ||
54 | -BuildRequires: glib2-devel | ||
55 | -BuildRequires: gtk3-devel | ||
56 | -BuildRequires: desktop-file-utils | ||
57 | -BuildRequires: optipng | ||
58 | - | ||
59 | -BuildRequires: mingw64-cross-binutils | ||
60 | -BuildRequires: mingw64-cross-gcc | ||
61 | -BuildRequires: mingw64-cross-gcc-c++ | ||
62 | -BuildRequires: mingw64-cross-pkg-config | ||
63 | -BuildRequires: mingw64-filesystem | ||
64 | -BuildRequires: mingw64-libopenssl-devel | ||
65 | -BuildRequires: mingw64-zlib-devel | ||
66 | -BuildRequires: mingw64-gtk3-devel | ||
67 | - | ||
68 | -#--------------------------------------------------------------------------------------------------------------------- | ||
69 | - | ||
70 | -%description | ||
71 | -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. | ||
72 | -Based on the original x3270 code, pw3270 was originally created for Banco do Brasil, and is now used worldwide. | ||
73 | - | ||
74 | -#--[ lib3270 ]-------------------------------------------------------------------------------------------------------- | ||
75 | - | ||
76 | -%package -n mingw64-lib3270-%{MAJOR_VERSION}_%{MINOR_VERSION} | ||
77 | -Summary: 3270 Communication library for %{name} | ||
78 | -Group: Development/Libraries/C and C++ | ||
79 | -Requires: openssl | ||
80 | - | ||
81 | -Provides: mingw64-lib3270 = %{version} | ||
82 | -Provides: mingw64-lib3270-%{MAJOR_VERSION}_%{MINOR_VERSION} = %{version} | ||
83 | -Provides: mingw64(lib:3270) = %{version} | ||
84 | - | ||
85 | -%description -n mingw64-lib3270-%{MAJOR_VERSION}_%{MINOR_VERSION} | ||
86 | -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. | ||
87 | - | ||
88 | -This package contains the tn3270 protocol library for %{name} | ||
89 | - | ||
90 | -#--[ Devel ]---------------------------------------------------------------------------------------------------------- | ||
91 | - | ||
92 | -%package -n mingw64-lib3270-devel | ||
93 | -Summary: Devel for 3270 Communication library for %{name} | ||
94 | -Group: Development/Libraries/C and C++ | ||
95 | - | ||
96 | -Requires: mingw64-lib3270-%{MAJOR_VERSION}_%{MINOR_VERSION} = %{version} | ||
97 | -Provides: mingw64-lib3270-devel-%{MAJOR_VERSION}_%{MINOR_VERSION} = %{version} | ||
98 | -Requires: mingw64-lib3270-%{MAJOR_VERSION}_%{MINOR_VERSION} = %{version} | ||
99 | - | ||
100 | -%description -n mingw64-lib3270-devel | ||
101 | -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. | ||
102 | -This package contains the development files for tn3270 protocol library for %{name} | ||
103 | - | ||
104 | -%package -n %{name}-devel | ||
105 | -Summary: Files required for development of %{name} plugins | ||
106 | -Group: Development/Libraries/C and C++ | ||
107 | - | ||
108 | -Requires: mingw64-lib3270-devel-%{MAJOR_VERSION}_%{MINOR_VERSION} = %{version} | ||
109 | -Requires: mingw64-libpw3270-%{MAJOR_VERSION}_%{MINOR_VERSION} = %{version} | ||
110 | - | ||
111 | -%description -n %{name}-devel | ||
112 | -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. | ||
113 | - | ||
114 | -This package contains the development files for %{name} | ||
115 | - | ||
116 | -#---[ Build & Install ]----------------------------------------------------------------------------------------------- | ||
117 | - | ||
118 | -%prep | ||
119 | - | ||
120 | -%setup -q -n pw3270-%{version} | ||
121 | - | ||
122 | -echo "m4_define([SVN_REVISION], %{release})" > revision.m4 | ||
123 | -echo "m4_define([SVN_URL], http://softwarepublico.gov.br/gitlab/pw3270/principal.git)" >> revision.m4 | ||
124 | -echo "m4_define([APP_LEVEL], 0)" >> revision.m4 | ||
125 | - | ||
126 | -find . -exec touch {} \; | ||
127 | -aclocal | ||
128 | -autoconf | ||
129 | -%{_mingw64_configure} | ||
130 | - | ||
131 | -%build | ||
132 | -make clean | ||
133 | -make all | ||
134 | - | ||
135 | -%install | ||
136 | -%{_mingw64_makeinstall} | ||
137 | - | ||
138 | -rm -f %{buildroot}%{_mingw64_datadir}/pw3270/ui/80javasamples.xml | ||
139 | -rm -f %{buildroot}%{_mingw64_datadir}/pw3270/ui/80rexx.xml | ||
140 | - | ||
141 | -#install --mode=755 .bin/Release/hllapi.dll.%{MAJOR_VERSION}.%{MINOR_VERSION} %{buildroot}%{_mingw64_libdir}/libhllapi.dll | ||
142 | -#install --mode=755 .bin/Release/plugins/hllapi.dll %{buildroot}%{_mingw64_libdir}/pw3270-plugins/hllapi.dll | ||
143 | - | ||
144 | -%clean | ||
145 | -rm -rf %{buildroot} | ||
146 | - | ||
147 | -#---[ Files ]--------------------------------------------------------------------------------------------------------- | ||
148 | - | ||
149 | -%files | ||
150 | -%defattr(-,root,root) | ||
151 | -%doc AUTHORS LICENSE | ||
152 | -%{_mingw64_mandir}/*/* | ||
153 | - | ||
154 | -# Main application | ||
155 | -%dir %{_mingw64_datadir}/pw3270 | ||
156 | -%dir %{_mingw64_datadir}/pw3270/ui | ||
157 | -%{_mingw64_bindir}/pw3270.exe | ||
158 | -%{_mingw64_libdir}/pw3270.dll | ||
159 | -%{_mingw64_libdir}/pw3270.dll.%{MAJOR_VERSION} | ||
160 | -%{_mingw64_libdir}/pw3270.dll.%{MAJOR_VERSION}.%{MINOR_VERSION} | ||
161 | - | ||
162 | -%dir %{_mingw64_datadir}/applications | ||
163 | -%{_mingw64_datadir}/applications/pw3270.desktop | ||
164 | - | ||
165 | -%{_mingw64_datadir}/pw3270/ui/00default.xml | ||
166 | -%{_mingw64_datadir}/pw3270/ui/10functions.xml | ||
167 | -%{_mingw64_datadir}/pw3270/ui/10keypad.xml | ||
168 | -%{_mingw64_datadir}/pw3270/colors.conf | ||
169 | -%{_mingw64_datadir}/pw3270/pw3270.png | ||
170 | -%{_mingw64_datadir}/pw3270/pw3270-logo.png | ||
171 | - | ||
172 | -%dir %{_mingw64_datadir}/locale | ||
173 | -%dir %{_mingw64_datadir}/locale/pt_BR | ||
174 | -%dir %{_mingw64_datadir}/locale/pt_BR/LC_MESSAGES | ||
175 | -%{_mingw64_datadir}/locale/pt_BR/LC_MESSAGES/pw3270.mo | ||
176 | - | ||
177 | -%dir %{_mingw64_libdir}/pw3270-plugins | ||
178 | -%{_mingw64_libdir}/libhllapi.dll | ||
179 | -%{_mingw64_libdir}/pw3270-plugins/hllapi.dll | ||
180 | - | ||
181 | -%files -n mingw64-lib3270-%{MAJOR_VERSION}_%{MINOR_VERSION} | ||
182 | -%defattr(-,root,root) | ||
183 | -%{_mingw64_libdir}/lib3270.dll.%{MAJOR_VERSION}.%{MINOR_VERSION} | ||
184 | -%{_mingw64_libdir}/lib3270.dll.%{MAJOR_VERSION} | ||
185 | -%{_mingw64_libdir}/lib3270.dll | ||
186 | - | ||
187 | -%files -n mingw64-lib3270-devel | ||
188 | -%defattr(-,root,root) | ||
189 | -%{_mingw64_includedir}/lib3270 | ||
190 | -%{_mingw64_includedir}/lib3270.h | ||
191 | -%{_mingw64_libdir}/pkgconfig/lib3270.pc | ||
192 | - | ||
193 | -%files -n %{name}-devel | ||
194 | -%defattr(-,root,root) | ||
195 | -%{_mingw64_includedir}/pw3270 | ||
196 | -%{_mingw64_includedir}/pw3270.h | ||
197 | -%{_mingw64_libdir}/pkgconfig/pw3270.pc | ||
198 | -%{_mingw64_datadir}/pw3270/ui/98trace.xml | ||
199 | -%{_mingw64_datadir}/pw3270/ui/99debug.xml | ||
200 | - | ||
201 | -%{_mingw64_includedir}/pw3270cpp.h | ||
202 | -%{_mingw64_libdir}/libpw3270cpp.a | ||
203 | - | ||
204 | -%dir %{_mingw64_datadir}/pw3270/sample | ||
205 | -%{_mingw64_datadir}/pw3270/sample/* | ||
206 | - | ||
207 | -%changelog | ||
208 | - |
@@ -0,0 +1,208 @@ | @@ -0,0 +1,208 @@ | ||
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 | +BuildArch: noarch | ||
43 | + | ||
44 | +Requires: mingw64-gtk3 | ||
45 | +Requires: mingw64-lib3270 = %{version} | ||
46 | + | ||
47 | +Provides: mingw64(lib:pw3270) = %{version} | ||
48 | +Requires: mingw64-lib3270-%{MAJOR_VERSION}_%{MINOR_VERSION} = %{version} | ||
49 | + | ||
50 | +BuildRequires: autoconf | ||
51 | +BuildRequires: automake | ||
52 | +BuildRequires: rsvg-view | ||
53 | +BuildRequires: gettext-tools | ||
54 | +BuildRequires: glib2-devel | ||
55 | +BuildRequires: gtk3-devel | ||
56 | +BuildRequires: desktop-file-utils | ||
57 | +BuildRequires: optipng | ||
58 | + | ||
59 | +BuildRequires: mingw64-cross-binutils | ||
60 | +BuildRequires: mingw64-cross-gcc | ||
61 | +BuildRequires: mingw64-cross-gcc-c++ | ||
62 | +BuildRequires: mingw64-cross-pkg-config | ||
63 | +BuildRequires: mingw64-filesystem | ||
64 | +BuildRequires: mingw64-libopenssl-devel | ||
65 | +BuildRequires: mingw64-zlib-devel | ||
66 | +BuildRequires: mingw64-gtk3-devel | ||
67 | + | ||
68 | +#--------------------------------------------------------------------------------------------------------------------- | ||
69 | + | ||
70 | +%description | ||
71 | +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. | ||
72 | +Based on the original x3270 code, pw3270 was originally created for Banco do Brasil, and is now used worldwide. | ||
73 | + | ||
74 | +#--[ lib3270 ]-------------------------------------------------------------------------------------------------------- | ||
75 | + | ||
76 | +%package -n mingw64-lib3270-%{MAJOR_VERSION}_%{MINOR_VERSION} | ||
77 | +Summary: 3270 Communication library for %{name} | ||
78 | +Group: Development/Libraries/C and C++ | ||
79 | +Requires: openssl | ||
80 | + | ||
81 | +Provides: mingw64-lib3270 = %{version} | ||
82 | +Provides: mingw64-lib3270-%{MAJOR_VERSION}_%{MINOR_VERSION} = %{version} | ||
83 | +Provides: mingw64(lib:3270) = %{version} | ||
84 | + | ||
85 | +%description -n mingw64-lib3270-%{MAJOR_VERSION}_%{MINOR_VERSION} | ||
86 | +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. | ||
87 | + | ||
88 | +This package contains the tn3270 protocol library for %{name} | ||
89 | + | ||
90 | +#--[ Devel ]---------------------------------------------------------------------------------------------------------- | ||
91 | + | ||
92 | +%package -n mingw64-lib3270-devel | ||
93 | +Summary: Devel for 3270 Communication library for %{name} | ||
94 | +Group: Development/Libraries/C and C++ | ||
95 | + | ||
96 | +Requires: mingw64-lib3270-%{MAJOR_VERSION}_%{MINOR_VERSION} = %{version} | ||
97 | +Provides: mingw64-lib3270-devel-%{MAJOR_VERSION}_%{MINOR_VERSION} = %{version} | ||
98 | +Requires: mingw64-lib3270-%{MAJOR_VERSION}_%{MINOR_VERSION} = %{version} | ||
99 | + | ||
100 | +%description -n mingw64-lib3270-devel | ||
101 | +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. | ||
102 | +This package contains the development files for tn3270 protocol library for %{name} | ||
103 | + | ||
104 | +%package -n %{name}-devel | ||
105 | +Summary: Files required for development of %{name} plugins | ||
106 | +Group: Development/Libraries/C and C++ | ||
107 | + | ||
108 | +Requires: mingw64-lib3270-devel-%{MAJOR_VERSION}_%{MINOR_VERSION} = %{version} | ||
109 | +Requires: mingw64-libpw3270-%{MAJOR_VERSION}_%{MINOR_VERSION} = %{version} | ||
110 | + | ||
111 | +%description -n %{name}-devel | ||
112 | +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. | ||
113 | + | ||
114 | +This package contains the development files for %{name} | ||
115 | + | ||
116 | +#---[ Build & Install ]----------------------------------------------------------------------------------------------- | ||
117 | + | ||
118 | +%prep | ||
119 | + | ||
120 | +%setup -q -n pw3270-%{version} | ||
121 | + | ||
122 | +echo "m4_define([SVN_REVISION], %{release})" > revision.m4 | ||
123 | +echo "m4_define([SVN_URL], http://softwarepublico.gov.br/gitlab/pw3270/principal.git)" >> revision.m4 | ||
124 | +echo "m4_define([APP_LEVEL], 0)" >> revision.m4 | ||
125 | + | ||
126 | +find . -exec touch {} \; | ||
127 | +aclocal | ||
128 | +autoconf | ||
129 | +%{_mingw64_configure} | ||
130 | + | ||
131 | +%build | ||
132 | +make clean | ||
133 | +make all | ||
134 | + | ||
135 | +%install | ||
136 | +%{_mingw64_makeinstall} | ||
137 | + | ||
138 | +rm -f %{buildroot}%{_mingw64_datadir}/pw3270/ui/80javasamples.xml | ||
139 | +rm -f %{buildroot}%{_mingw64_datadir}/pw3270/ui/80rexx.xml | ||
140 | + | ||
141 | +#install --mode=755 .bin/Release/hllapi.dll.%{MAJOR_VERSION}.%{MINOR_VERSION} %{buildroot}%{_mingw64_libdir}/libhllapi.dll | ||
142 | +#install --mode=755 .bin/Release/plugins/hllapi.dll %{buildroot}%{_mingw64_libdir}/pw3270-plugins/hllapi.dll | ||
143 | + | ||
144 | +%clean | ||
145 | +rm -rf %{buildroot} | ||
146 | + | ||
147 | +#---[ Files ]--------------------------------------------------------------------------------------------------------- | ||
148 | + | ||
149 | +%files | ||
150 | +%defattr(-,root,root) | ||
151 | +%doc AUTHORS LICENSE | ||
152 | +%{_mingw64_mandir}/*/* | ||
153 | + | ||
154 | +# Main application | ||
155 | +%dir %{_mingw64_datadir}/pw3270 | ||
156 | +%dir %{_mingw64_datadir}/pw3270/ui | ||
157 | +%{_mingw64_bindir}/pw3270.exe | ||
158 | +%{_mingw64_libdir}/pw3270.dll | ||
159 | +%{_mingw64_libdir}/pw3270.dll.%{MAJOR_VERSION} | ||
160 | +%{_mingw64_libdir}/pw3270.dll.%{MAJOR_VERSION}.%{MINOR_VERSION} | ||
161 | + | ||
162 | +%dir %{_mingw64_datadir}/applications | ||
163 | +%{_mingw64_datadir}/applications/pw3270.desktop | ||
164 | + | ||
165 | +%{_mingw64_datadir}/pw3270/ui/00default.xml | ||
166 | +%{_mingw64_datadir}/pw3270/ui/10functions.xml | ||
167 | +%{_mingw64_datadir}/pw3270/ui/10keypad.xml | ||
168 | +%{_mingw64_datadir}/pw3270/colors.conf | ||
169 | +%{_mingw64_datadir}/pw3270/pw3270.png | ||
170 | +%{_mingw64_datadir}/pw3270/pw3270-logo.png | ||
171 | + | ||
172 | +%dir %{_mingw64_datadir}/locale | ||
173 | +%dir %{_mingw64_datadir}/locale/pt_BR | ||
174 | +%dir %{_mingw64_datadir}/locale/pt_BR/LC_MESSAGES | ||
175 | +%{_mingw64_datadir}/locale/pt_BR/LC_MESSAGES/pw3270.mo | ||
176 | + | ||
177 | +%dir %{_mingw64_libdir}/pw3270-plugins | ||
178 | +%{_mingw64_libdir}/libhllapi.dll | ||
179 | +%{_mingw64_libdir}/pw3270-plugins/hllapi.dll | ||
180 | + | ||
181 | +%files -n mingw64-lib3270-%{MAJOR_VERSION}_%{MINOR_VERSION} | ||
182 | +%defattr(-,root,root) | ||
183 | +%{_mingw64_libdir}/lib3270.dll.%{MAJOR_VERSION}.%{MINOR_VERSION} | ||
184 | +%{_mingw64_libdir}/lib3270.dll.%{MAJOR_VERSION} | ||
185 | +%{_mingw64_libdir}/lib3270.dll | ||
186 | + | ||
187 | +%files -n mingw64-lib3270-devel | ||
188 | +%defattr(-,root,root) | ||
189 | +%{_mingw64_includedir}/lib3270 | ||
190 | +%{_mingw64_includedir}/lib3270.h | ||
191 | +%{_mingw64_libdir}/pkgconfig/lib3270.pc | ||
192 | + | ||
193 | +%files -n %{name}-devel | ||
194 | +%defattr(-,root,root) | ||
195 | +%{_mingw64_includedir}/pw3270 | ||
196 | +%{_mingw64_includedir}/pw3270.h | ||
197 | +%{_mingw64_libdir}/pkgconfig/pw3270.pc | ||
198 | +%{_mingw64_datadir}/pw3270/ui/98trace.xml | ||
199 | +%{_mingw64_datadir}/pw3270/ui/99debug.xml | ||
200 | + | ||
201 | +%{_mingw64_includedir}/pw3270cpp.h | ||
202 | +%{_mingw64_libdir}/libpw3270cpp.a | ||
203 | + | ||
204 | +%dir %{_mingw64_datadir}/pw3270/sample | ||
205 | +%{_mingw64_datadir}/pw3270/sample/* | ||
206 | + | ||
207 | +%changelog | ||
208 | + |