Commit ac265fb1fc0d2555124dc6b25fcafb5c74811126
Exists in
master
and in
1 other branch
Merge remote-tracking branch 'origin/master'
Showing
14 changed files
with
503 additions
and
428 deletions
Show diff stats
src/dialogs/hostselect.c
| ... | ... | @@ -30,6 +30,7 @@ |
| 30 | 30 | #include "private.h" |
| 31 | 31 | #include <hostselect.h> |
| 32 | 32 | #include <v3270/dialogs.h> |
| 33 | + #include <lib3270/log.h> | |
| 33 | 34 | |
| 34 | 35 | /*--[ Widget definition ]----------------------------------------------------------------------------*/ |
| 35 | 36 | |
| ... | ... | @@ -241,12 +242,37 @@ LIB3270_EXPORT void v3270_host_select_set_session(GtkWidget *w, GtkWidget *sessi |
| 241 | 242 | V3270HostSelectWidget *widget = GTK_V3270HostSelectWidget(w); |
| 242 | 243 | widget->hSession = v3270_get_session(session); |
| 243 | 244 | |
| 244 | - gtk_entry_set_text(widget->input.entry[ENTRY_HOSTNAME],lib3270_get_hostname(widget->hSession)); | |
| 245 | - gtk_entry_set_text(widget->input.entry[ENTRY_SRVCNAME],lib3270_get_srvcname(widget->hSession)); | |
| 245 | + g_autofree gchar * url = g_strdup(lib3270_get_url(widget->hSession)); | |
| 246 | + debug("URL=[%s]",url); | |
| 247 | + | |
| 248 | + gchar *hostname = strstr(url,"://"); | |
| 249 | + if(!hostname) | |
| 250 | + { | |
| 251 | + g_message("Invalid URL: \"%s\" (no scheme)",url); | |
| 252 | + } | |
| 253 | + else | |
| 254 | + { | |
| 255 | + hostname += 3; | |
| 256 | + | |
| 257 | + gchar *srvcname = strchr(hostname,':'); | |
| 258 | + | |
| 259 | + if(srvcname) | |
| 260 | + { | |
| 261 | + *(srvcname++) = 0; | |
| 262 | + } | |
| 263 | + else | |
| 264 | + { | |
| 265 | + srvcname = "telnet"; | |
| 266 | + } | |
| 267 | + | |
| 268 | + gtk_entry_set_text(widget->input.entry[ENTRY_HOSTNAME],hostname); | |
| 269 | + gtk_entry_set_text(widget->input.entry[ENTRY_SRVCNAME],srvcname); | |
| 270 | + | |
| 271 | + } | |
| 246 | 272 | |
| 247 | 273 | LIB3270_HOST_TYPE type = lib3270_get_host_type(widget->hSession); |
| 248 | 274 | |
| 249 | - gtk_toggle_button_set_active(widget->input.ssl,lib3270_get_secure_host(widget->hSession) != 0); | |
| 275 | + gtk_toggle_button_set_active(widget->input.ssl,g_str_has_prefix(url,"tn3270s://") != 0); | |
| 250 | 276 | |
| 251 | 277 | // Set host type |
| 252 | 278 | { |
| ... | ... | @@ -349,10 +375,25 @@ int v3270_host_select_apply(GtkWidget *w) |
| 349 | 375 | |
| 350 | 376 | V3270HostSelectWidget *widget = GTK_V3270HostSelectWidget(w); |
| 351 | 377 | |
| 378 | + g_autofree gchar * url = | |
| 379 | + g_strconcat( | |
| 380 | + (gtk_toggle_button_get_active(widget->input.ssl) ? "tn3270s://" : "tn3270://"), | |
| 381 | + gtk_entry_get_text(widget->input.entry[ENTRY_HOSTNAME]), | |
| 382 | + ":", | |
| 383 | + gtk_entry_get_text(widget->input.entry[ENTRY_SRVCNAME]), | |
| 384 | + NULL | |
| 385 | + ); | |
| 386 | + | |
| 387 | + debug("URL=[%s]",url); | |
| 388 | + lib3270_set_url(widget->hSession,url); | |
| 389 | + | |
| 390 | + /* | |
| 352 | 391 | lib3270_set_hostname(widget->hSession,gtk_entry_get_text(widget->input.entry[ENTRY_HOSTNAME])); |
| 353 | 392 | lib3270_set_srvcname(widget->hSession,gtk_entry_get_text(widget->input.entry[ENTRY_SRVCNAME])); |
| 354 | - lib3270_set_host_type(widget->hSession,widget->type); | |
| 393 | + */ | |
| 355 | 394 | |
| 395 | + lib3270_set_host_type(widget->hSession,widget->type); | |
| 356 | 396 | return lib3270_reconnect(widget->hSession,0); |
| 397 | + | |
| 357 | 398 | } |
| 358 | 399 | ... | ... |
src/include/v3270.h
| ... | ... | @@ -240,9 +240,9 @@ |
| 240 | 240 | LIB3270_EXPORT int v3270_set_host_type_by_name(GtkWidget *widget, const char *name); |
| 241 | 241 | |
| 242 | 242 | LIB3270_EXPORT void v3270_set_url(GtkWidget *widget, const gchar *uri); |
| 243 | - LIB3270_EXPORT const gchar * v3270_get_hostname(GtkWidget *widget); | |
| 243 | + LIB3270_EXPORT const gchar * v3270_get_url(GtkWidget *widget); | |
| 244 | + | |
| 244 | 245 | LIB3270_EXPORT const char * v3270_get_luname(GtkWidget *widget); |
| 245 | - LIB3270_EXPORT GtkWidget * v3270_get_default_widget(void); | |
| 246 | 246 | |
| 247 | 247 | LIB3270_EXPORT void v3270_set_session_host_type(GtkWidget *widget, LIB3270_HOST_TYPE); |
| 248 | 248 | ... | ... |
src/selection/table.c
| ... | ... | @@ -34,7 +34,7 @@ |
| 34 | 34 | /*--[ Implement ]------------------------------------------------------------------------------------*/ |
| 35 | 35 | |
| 36 | 36 | /// @brief Check if column has data. |
| 37 | -static gboolean hasDataOnColumn(v3270 * G_GNUC_UNUSED(terminal), unsigned int col, const GList *selection, gboolean all) | |
| 37 | +static gboolean hasDataOnColumn(v3270 G_GNUC_UNUSED(* terminal), unsigned int col, const GList *selection, gboolean all) | |
| 38 | 38 | { |
| 39 | 39 | while(selection) |
| 40 | 40 | { | ... | ... |
src/terminal/properties.c
| ... | ... | @@ -48,10 +48,13 @@ |
| 48 | 48 | |
| 49 | 49 | enum _v3270_internal_property |
| 50 | 50 | { |
| 51 | - V3270_PROPERTY_FONT_FAMILY = 2, ///< @brief Name of the font-family used by widget. | |
| 52 | - V3270_PROPERTY_CLIPBOARD = 3, ///< @brief Name of the selected clipboard. | |
| 53 | - V3270_PROPERTY_SESSION_NAME = 4, ///< @brief Widget's session name. | |
| 54 | - V3270_PROPERTY_DYNAMIC = 5 ///< @brief Id of the first LIB3270 internal property. | |
| 51 | + V3270_PROPERTY_FONT_FAMILY = 2, ///< @brief Name of the font-family used by widget. | |
| 52 | + V3270_PROPERTY_CLIPBOARD = 3, ///< @brief Name of the selected clipboard. | |
| 53 | + V3270_PROPERTY_SESSION_NAME = 4, ///< @brief Widget's session name. | |
| 54 | + V3270_PROPERTY_AUTO_DISCONNECT = 5, ///< @brief Auto disconnect. | |
| 55 | + | |
| 56 | + | |
| 57 | + V3270_PROPERTY_DYNAMIC = 6 ///< @brief Id of the first LIB3270 internal property. | |
| 55 | 58 | }; |
| 56 | 59 | |
| 57 | 60 | /*--[ Implement ]------------------------------------------------------------------------------------*/ |
| ... | ... | @@ -139,6 +142,10 @@ |
| 139 | 142 | v3270_set_session_name(GTK_WIDGET(object), g_value_get_string(value)); |
| 140 | 143 | break; |
| 141 | 144 | |
| 145 | + case V3270_PROPERTY_AUTO_DISCONNECT: | |
| 146 | + v3270_set_auto_disconnect(GTK_WIDGET(object), g_value_get_uint(value)); | |
| 147 | + break; | |
| 148 | + | |
| 142 | 149 | default: |
| 143 | 150 | G_OBJECT_WARN_INVALID_PROPERTY_ID(object, prop_id, pspec); |
| 144 | 151 | |
| ... | ... | @@ -214,6 +221,10 @@ |
| 214 | 221 | g_value_set_string(value,v3270_get_session_name(GTK_WIDGET(object))); |
| 215 | 222 | break; |
| 216 | 223 | |
| 224 | + case V3270_PROPERTY_AUTO_DISCONNECT: | |
| 225 | + g_value_set_uint(value,window->activity.disconnect); | |
| 226 | + break; | |
| 227 | + | |
| 217 | 228 | default: |
| 218 | 229 | G_OBJECT_WARN_INVALID_PROPERTY_ID(object, prop_id, pspec); |
| 219 | 230 | |
| ... | ... | @@ -297,6 +308,21 @@ |
| 297 | 308 | spec |
| 298 | 309 | ); |
| 299 | 310 | |
| 311 | + // Auto disconnect | |
| 312 | + spec = g_param_spec_string( | |
| 313 | + "auto_disconnect", | |
| 314 | + "auto_disconnect", | |
| 315 | + _("IDLE minutes for automatic disconnection"), | |
| 316 | + FALSE, | |
| 317 | + G_PARAM_READABLE|G_PARAM_WRITABLE | |
| 318 | + ); | |
| 319 | + | |
| 320 | + g_object_class_install_property( | |
| 321 | + gobject_class, | |
| 322 | + V3270_PROPERTY_AUTO_DISCONNECT, | |
| 323 | + spec | |
| 324 | + ); | |
| 325 | + | |
| 300 | 326 | // Clipboard |
| 301 | 327 | spec = g_param_spec_string( |
| 302 | 328 | "clipboard", | ... | ... |
src/terminal/widget.c
| ... | ... | @@ -868,10 +868,10 @@ static void v3270_activate(GtkWidget *widget) |
| 868 | 868 | |
| 869 | 869 | if(lib3270_connected(terminal->host)) |
| 870 | 870 | lib3270_enter(terminal->host); |
| 871 | - else if(lib3270_get_hostname(terminal->host)) | |
| 871 | + else if(lib3270_get_url(terminal->host)) | |
| 872 | 872 | v3270_reconnect(widget); |
| 873 | 873 | else |
| 874 | - g_warning("Terminal widget %p activated without connection or valid hostname",terminal); | |
| 874 | + g_warning("Terminal widget %p activated without connection or valid url",terminal); | |
| 875 | 875 | } |
| 876 | 876 | |
| 877 | 877 | const GtkWidgetClass * v3270_get_parent_class(void) |
| ... | ... | @@ -900,13 +900,13 @@ LIB3270_EXPORT void v3270_set_url(GtkWidget *widget, const gchar *uri) |
| 900 | 900 | lib3270_set_url(GTK_V3270(widget)->host,uri); |
| 901 | 901 | } |
| 902 | 902 | |
| 903 | -LIB3270_EXPORT const gchar * v3270_get_hostname(GtkWidget *widget) | |
| 903 | +LIB3270_EXPORT const gchar * v3270_get_url(GtkWidget *widget) | |
| 904 | 904 | { |
| 905 | - g_return_val_if_fail(GTK_IS_V3270(widget),""); | |
| 906 | - return lib3270_get_hostname(GTK_V3270(widget)->host); | |
| 905 | + g_return_val_if_fail(GTK_IS_V3270(widget),NULL); | |
| 906 | + return lib3270_get_url(GTK_V3270(widget)->host); | |
| 907 | 907 | } |
| 908 | 908 | |
| 909 | -LIB3270_EXPORT const gchar * v3270_get_luname(GtkWidget *widget) | |
| 909 | +LIB3270_EXPORT const gchar * v3270_get_luname(GtkWidget *widget) | |
| 910 | 910 | { |
| 911 | 911 | g_return_val_if_fail(GTK_IS_V3270(widget),""); |
| 912 | 912 | return lib3270_get_luname(GTK_V3270(widget)->host); |
| ... | ... | @@ -975,6 +975,7 @@ LIB3270_EXPORT int v3270_set_host_charset(GtkWidget *widget, const gchar *name) |
| 975 | 975 | return lib3270_set_host_charset(GTK_V3270(widget)->host,name); |
| 976 | 976 | } |
| 977 | 977 | |
| 978 | +/* | |
| 978 | 979 | LIB3270_EXPORT GtkWidget * v3270_get_default_widget(void) |
| 979 | 980 | { |
| 980 | 981 | H3270 * hSession = lib3270_get_default_session_handle(); |
| ... | ... | @@ -995,6 +996,7 @@ LIB3270_EXPORT GtkWidget * v3270_get_default_widget(void) |
| 995 | 996 | |
| 996 | 997 | return GTK_WIDGET(widget); |
| 997 | 998 | } |
| 999 | +*/ | |
| 998 | 1000 | |
| 999 | 1001 | void v3270_set_cursor(GtkWidget *widget, LIB3270_POINTER id) |
| 1000 | 1002 | { | ... | ... |
src/trace/trace.c
| ... | ... | @@ -355,7 +355,13 @@ |
| 355 | 355 | { |
| 356 | 356 | size_t ix; |
| 357 | 357 | |
| 358 | - static const LIB3270_TOGGLE toggles[] = { LIB3270_TOGGLE_DS_TRACE, LIB3270_TOGGLE_NETWORK_TRACE, LIB3270_TOGGLE_EVENT_TRACE, LIB3270_TOGGLE_SSL_TRACE, LIB3270_TOGGLE_SCREEN_TRACE}; | |
| 358 | + static const LIB3270_TOGGLE toggles[] = { | |
| 359 | + LIB3270_TOGGLE_DS_TRACE, | |
| 360 | + LIB3270_TOGGLE_NETWORK_TRACE, | |
| 361 | + LIB3270_TOGGLE_EVENT_TRACE, | |
| 362 | + LIB3270_TOGGLE_SSL_TRACE, | |
| 363 | + LIB3270_TOGGLE_SCREEN_TRACE | |
| 364 | + }; | |
| 359 | 365 | |
| 360 | 366 | for(ix = 0; ix < G_N_ELEMENTS(toggles); ix++) |
| 361 | 367 | { | ... | ... |
win/mingw32/_service
| ... | ... | @@ -1,27 +0,0 @@ |
| 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">@PARENT_TAG@</param> | |
| 8 | - <param name="url">https://github.com/PerryWerneck/libv3270.git</param> | |
| 9 | - <param name="scm">git</param> | |
| 10 | - </service> | |
| 11 | - | |
| 12 | - <!-- https://github.com/openSUSE/obs-service-extract_file --> | |
| 13 | - <!-- service name="extract_file"> | |
| 14 | - <param name="archive">*.tar</param> | |
| 15 | - <param name="files">*/win/mingw32/libv3270.spec</param> | |
| 16 | - <param name="outfilename">mingw32-libv3270.spec</param> | |
| 17 | - </service --> | |
| 18 | - | |
| 19 | - <service name="recompress"> | |
| 20 | - <param name="file">*.tar</param> | |
| 21 | - <param name="compression">xz</param> | |
| 22 | - </service> | |
| 23 | - | |
| 24 | - <service name="set_version" /> | |
| 25 | - | |
| 26 | -</services> | |
| 27 | - |
win/mingw32/mingw32-libv3270.spec
| ... | ... | @@ -1,180 +0,0 @@ |
| 1 | -# | |
| 2 | -# spec file for package mingw32-libv3270 | |
| 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: 3270 Virtual Terminal for GTK | |
| 35 | -Name: mingw32-libv3270-%{_libvrs} | |
| 36 | -Version: 5.2 | |
| 37 | -Release: 0 | |
| 38 | -License: GPL-2.0 | |
| 39 | - | |
| 40 | -Source: libv3270-%{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-libv3270 | |
| 48 | -Conflicts: otherproviders(mingw32-libv3270) | |
| 49 | - | |
| 50 | -Provides: mingw32(lib:v3270) | |
| 51 | -Provides: mingw32(lib:v3270-%{_libvrs}) | |
| 52 | - | |
| 53 | -BuildRequires: autoconf | |
| 54 | -BuildRequires: automake | |
| 55 | -BuildRequires: gettext-tools | |
| 56 | -BuildRequires: pkgconfig(glib-2.0) | |
| 57 | - | |
| 58 | -BuildRequires: mingw32-cross-binutils | |
| 59 | -BuildRequires: mingw32-cross-gcc | |
| 60 | -BuildRequires: mingw32-cross-gcc-c++ | |
| 61 | -BuildRequires: mingw32-cross-pkg-config | |
| 62 | -BuildRequires: mingw32-filesystem | |
| 63 | -BuildRequires: mingw32-libopenssl-devel | |
| 64 | -BuildRequires: mingw32-zlib-devel | |
| 65 | - | |
| 66 | -BuildRequires: mingw32(pkg:gtk+-win32-3.0) | |
| 67 | -BuildRequires: mingw32(lib:iconv) | |
| 68 | -BuildRequires: mingw32(lib:intl) | |
| 69 | - | |
| 70 | -BuildRequires: mingw32-lib3270-devel = %{MAJOR_VERSION}.%{MINOR_VERSION} | |
| 71 | - | |
| 72 | -%description | |
| 73 | - | |
| 74 | -TN3270 GTK Virtual terminal Widget originally designed as part of the pw3270 application. | |
| 75 | - | |
| 76 | -See more details at https://softwarepublico.gov.br/social/pw3270/ | |
| 77 | - | |
| 78 | -#---[ Development ]--------------------------------------------------------------------------------------------------- | |
| 79 | - | |
| 80 | -%package devel | |
| 81 | - | |
| 82 | -Summary: 3270 Virtual Terminal for GTK development files | |
| 83 | -Group: Development/Libraries/C and C++ | |
| 84 | - | |
| 85 | -Requires: %{name} = %{version} | |
| 86 | -Requires: mingw32-lib3270-%{_libvrs}-devel | |
| 87 | - | |
| 88 | -Provides: mingw32-libv3270-devel = %{version} | |
| 89 | -Conflicts: otherproviders(mingw32-libv3270-devel) | |
| 90 | - | |
| 91 | -%description devel | |
| 92 | - | |
| 93 | -3270 Virtual Terminal for GTK development files. | |
| 94 | - | |
| 95 | -Originally designed as part of the pw3270 application. | |
| 96 | - | |
| 97 | -See more details at https://softwarepublico.gov.br/social/pw3270/ | |
| 98 | - | |
| 99 | -%package -n mingw32-glade-catalog-v3270 | |
| 100 | - | |
| 101 | -Summary: Glade catalog for the TN3270 terminal emulator library | |
| 102 | -Group: Development/Libraries/C and C++ | |
| 103 | - | |
| 104 | -Requires: libv3270-devel = %{version} | |
| 105 | -Requires: glade | |
| 106 | - | |
| 107 | -%description -n mingw32-glade-catalog-v3270 | |
| 108 | - | |
| 109 | -3270 Virtual Terminal for GTK development files. | |
| 110 | - | |
| 111 | -Originally designed as part of the pw3270 application. | |
| 112 | - | |
| 113 | -This package provides a catalog for Glade, to allow the use of V3270 | |
| 114 | -widgets in Glade. | |
| 115 | - | |
| 116 | -See more details at https://softwarepublico.gov.br/social/pw3270/ | |
| 117 | - | |
| 118 | - | |
| 119 | -#---[ Build & Install ]----------------------------------------------------------------------------------------------- | |
| 120 | - | |
| 121 | -%prep | |
| 122 | -%setup -n libv3270-%{version} | |
| 123 | - | |
| 124 | -NOCONFIGURE=1 ./autogen.sh | |
| 125 | - | |
| 126 | -%{_mingw32_configure} \ | |
| 127 | - --with-sdk-version=%{version} | |
| 128 | - | |
| 129 | -%build | |
| 130 | -make clean | |
| 131 | -make all | |
| 132 | - | |
| 133 | -%{_mingw32_strip} \ | |
| 134 | - --strip-all \ | |
| 135 | - .bin/Release/*.dll.%{MAJOR_VERSION}.%{MINOR_VERSION} | |
| 136 | - | |
| 137 | -%install | |
| 138 | -%{_mingw32_makeinstall} | |
| 139 | - | |
| 140 | -%clean | |
| 141 | -rm -rf %{buildroot} | |
| 142 | - | |
| 143 | -#---[ Files ]--------------------------------------------------------------------------------------------------------- | |
| 144 | - | |
| 145 | -%files | |
| 146 | -%defattr(-,root,root) | |
| 147 | -%doc AUTHORS LICENSE README.md | |
| 148 | - | |
| 149 | -%{_mingw32_libdir}/libv3270.dll | |
| 150 | -%{_mingw32_libdir}/libv3270.dll.%{MAJOR_VERSION} | |
| 151 | -%{_mingw32_libdir}/libv3270.dll.%{MAJOR_VERSION}.%{MINOR_VERSION} | |
| 152 | - | |
| 153 | -%files devel | |
| 154 | -%defattr(-,root,root) | |
| 155 | -%{_mingw32_includedir}/v3270 | |
| 156 | -%{_mingw32_includedir}/v3270.h | |
| 157 | - | |
| 158 | -%{_mingw32_libdir}/pkgconfig/*.pc | |
| 159 | -%{_mingw32_libdir}/*.a | |
| 160 | - | |
| 161 | -%{_mingw32_datadir}/pw3270/pot/*.pot | |
| 162 | - | |
| 163 | -%files -n mingw32-glade-catalog-v3270 | |
| 164 | -%defattr(-,root,root) | |
| 165 | - | |
| 166 | -%dir %{_mingw32_datadir}/glade | |
| 167 | -%dir %{_mingw32_datadir}/glade/catalogs | |
| 168 | -%{_mingw32_datadir}/glade/catalogs/v3270.xml | |
| 169 | - | |
| 170 | -%dir %{_mingw32_datadir}/glade/pixmaps | |
| 171 | -%dir %{_mingw32_datadir}/glade/pixmaps/hicolor | |
| 172 | -%dir %{_mingw32_datadir}/glade/pixmaps/hicolor/16x16 | |
| 173 | -%dir %{_mingw32_datadir}/glade/pixmaps/hicolor/22x22 | |
| 174 | -%dir %{_mingw32_datadir}/glade/pixmaps/hicolor/16x16/actions | |
| 175 | -%dir %{_mingw32_datadir}/glade/pixmaps/hicolor/22x22/actions | |
| 176 | -%{_mingw32_datadir}/glade/pixmaps/hicolor/16x16/actions/widget-v3270-terminal.png | |
| 177 | -%{_mingw32_datadir}/glade/pixmaps/hicolor/22x22/actions/widget-v3270-terminal.png | |
| 178 | - | |
| 179 | -%changelog | |
| 180 | - |
win/mingw64/_service
| ... | ... | @@ -1,27 +0,0 @@ |
| 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">@PARENT_TAG@</param> | |
| 8 | - <param name="url">https://github.com/PerryWerneck/libv3270.git</param> | |
| 9 | - <param name="scm">git</param> | |
| 10 | - </service> | |
| 11 | - | |
| 12 | - <!-- https://github.com/openSUSE/obs-service-extract_file --> | |
| 13 | - <!-- service name="extract_file"> | |
| 14 | - <param name="archive">*.tar</param> | |
| 15 | - <param name="files">*/win/mingw64/libv3270.spec</param> | |
| 16 | - <param name="outfilename">mingw64-libv3270.spec</param> | |
| 17 | - </service --> | |
| 18 | - | |
| 19 | - <service name="recompress"> | |
| 20 | - <param name="file">*.tar</param> | |
| 21 | - <param name="compression">xz</param> | |
| 22 | - </service> | |
| 23 | - | |
| 24 | - <service name="set_version" /> | |
| 25 | - | |
| 26 | -</services> | |
| 27 | - |
win/mingw64/mingw64-libv3270.spec
| ... | ... | @@ -1,176 +0,0 @@ |
| 1 | -# | |
| 2 | -# spec file for package mingw64-libv3270 | |
| 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: 3270 Virtual Terminal for GTK | |
| 35 | -Name: mingw64-libv3270-%{_libvrs} | |
| 36 | -Version: 5.2 | |
| 37 | -Release: 0 | |
| 38 | -License: GPL-2.0 | |
| 39 | - | |
| 40 | -Source: libv3270-%{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: mingw64-libv3270 | |
| 48 | -Conflicts: otherproviders(mingw64-libv3270) | |
| 49 | - | |
| 50 | -BuildRequires: autoconf | |
| 51 | -BuildRequires: automake | |
| 52 | -BuildRequires: gettext-tools | |
| 53 | -BuildRequires: pkgconfig(glib-2.0) | |
| 54 | - | |
| 55 | -BuildRequires: mingw64-cross-binutils | |
| 56 | -BuildRequires: mingw64-cross-gcc | |
| 57 | -BuildRequires: mingw64-cross-gcc-c++ | |
| 58 | -BuildRequires: mingw64-cross-pkg-config | |
| 59 | -BuildRequires: mingw64-filesystem | |
| 60 | -BuildRequires: mingw64-libopenssl-devel | |
| 61 | -BuildRequires: mingw64-zlib-devel | |
| 62 | - | |
| 63 | -BuildRequires: mingw64(pkg:gtk+-win32-3.0) | |
| 64 | -BuildRequires: mingw64(lib:iconv) | |
| 65 | -BuildRequires: mingw64(lib:intl) | |
| 66 | - | |
| 67 | -BuildRequires: mingw64-lib3270-%{_libvrs}-devel | |
| 68 | - | |
| 69 | -%description | |
| 70 | - | |
| 71 | -TN3270 GTK Virtual terminal Widget originally designed as part of the pw3270 application. | |
| 72 | - | |
| 73 | -See more details at https://softwarepublico.gov.br/social/pw3270/ | |
| 74 | - | |
| 75 | -#---[ Development ]--------------------------------------------------------------------------------------------------- | |
| 76 | - | |
| 77 | -%package devel | |
| 78 | - | |
| 79 | -Summary: 3270 Virtual Terminal for GTK development files | |
| 80 | -Group: Development/Libraries/C and C++ | |
| 81 | - | |
| 82 | -Requires: %{name} = %{version} | |
| 83 | -Requires: mingw64-lib3270-%{_libvrs}-devel | |
| 84 | - | |
| 85 | -Provides: mingw64-libv3270-devel = %{version} | |
| 86 | -Conflicts: otherproviders(mingw64-libv3270-devel) | |
| 87 | - | |
| 88 | -%description devel | |
| 89 | - | |
| 90 | -3270 Virtual Terminal for GTK development files. | |
| 91 | - | |
| 92 | -Originally designed as part of the pw3270 application. | |
| 93 | - | |
| 94 | -See more details at https://softwarepublico.gov.br/social/pw3270/ | |
| 95 | - | |
| 96 | -%package -n mingw64-glade-catalog-v3270 | |
| 97 | - | |
| 98 | -Summary: Glade catalog for the TN3270 terminal emulator library | |
| 99 | -Group: Development/Libraries/C and C++ | |
| 100 | - | |
| 101 | -Requires: libv3270-devel = %{version} | |
| 102 | -Requires: glade | |
| 103 | - | |
| 104 | -%description -n mingw64-glade-catalog-v3270 | |
| 105 | - | |
| 106 | -3270 Virtual Terminal for GTK development files. | |
| 107 | - | |
| 108 | -Originally designed as part of the pw3270 application. | |
| 109 | - | |
| 110 | -This package provides a catalog for Glade, to allow the use of V3270 | |
| 111 | -widgets in Glade. | |
| 112 | - | |
| 113 | -See more details at https://softwarepublico.gov.br/social/pw3270/ | |
| 114 | - | |
| 115 | - | |
| 116 | -#---[ Build & Install ]----------------------------------------------------------------------------------------------- | |
| 117 | - | |
| 118 | -%prep | |
| 119 | -%setup -n libv3270-%{version} | |
| 120 | - | |
| 121 | -NOCONFIGURE=1 ./autogen.sh | |
| 122 | - | |
| 123 | -%{_mingw64_configure} \ | |
| 124 | - --with-sdk-version=%{version} | |
| 125 | - | |
| 126 | -%build | |
| 127 | -make clean | |
| 128 | -make all | |
| 129 | - | |
| 130 | -%{_mingw64_strip} \ | |
| 131 | - --strip-all \ | |
| 132 | - .bin/Release/*.dll.%{MAJOR_VERSION}.%{MINOR_VERSION} | |
| 133 | - | |
| 134 | -%install | |
| 135 | -%{_mingw64_makeinstall} | |
| 136 | - | |
| 137 | -%clean | |
| 138 | -rm -rf %{buildroot} | |
| 139 | - | |
| 140 | -#---[ Files ]--------------------------------------------------------------------------------------------------------- | |
| 141 | - | |
| 142 | -%files | |
| 143 | -%defattr(-,root,root) | |
| 144 | -%doc AUTHORS LICENSE README.md | |
| 145 | - | |
| 146 | -%{_mingw64_libdir}/libv3270.dll | |
| 147 | -%{_mingw64_libdir}/libv3270.dll.%{MAJOR_VERSION} | |
| 148 | -%{_mingw64_libdir}/libv3270.dll.%{MAJOR_VERSION}.%{MINOR_VERSION} | |
| 149 | - | |
| 150 | -%files devel | |
| 151 | -%defattr(-,root,root) | |
| 152 | -%{_mingw64_includedir}/v3270 | |
| 153 | -%{_mingw64_includedir}/v3270.h | |
| 154 | - | |
| 155 | -%{_mingw64_libdir}/pkgconfig/*.pc | |
| 156 | -%{_mingw64_libdir}/*.a | |
| 157 | -%{_mingw64_datadir}/pw3270/pot/*.pot | |
| 158 | - | |
| 159 | -%files -n mingw64-glade-catalog-v3270 | |
| 160 | -%defattr(-,root,root) | |
| 161 | - | |
| 162 | -%dir %{_mingw64_datadir}/glade | |
| 163 | -%dir %{_mingw64_datadir}/glade/catalogs | |
| 164 | -%{_mingw64_datadir}/glade/catalogs/v3270.xml | |
| 165 | - | |
| 166 | -%dir %{_mingw64_datadir}/glade/pixmaps | |
| 167 | -%dir %{_mingw64_datadir}/glade/pixmaps/hicolor | |
| 168 | -%dir %{_mingw64_datadir}/glade/pixmaps/hicolor/16x16 | |
| 169 | -%dir %{_mingw64_datadir}/glade/pixmaps/hicolor/22x22 | |
| 170 | -%dir %{_mingw64_datadir}/glade/pixmaps/hicolor/16x16/actions | |
| 171 | -%dir %{_mingw64_datadir}/glade/pixmaps/hicolor/22x22/actions | |
| 172 | -%{_mingw64_datadir}/glade/pixmaps/hicolor/16x16/actions/widget-v3270-terminal.png | |
| 173 | -%{_mingw64_datadir}/glade/pixmaps/hicolor/22x22/actions/widget-v3270-terminal.png | |
| 174 | - | |
| 175 | -%changelog | |
| 176 | - |
| ... | ... | @@ -0,0 +1,27 @@ |
| 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">@PARENT_TAG@</param> | |
| 8 | + <param name="url">https://github.com/PerryWerneck/libv3270.git</param> | |
| 9 | + <param name="scm">git</param> | |
| 10 | + </service> | |
| 11 | + | |
| 12 | + <!-- https://github.com/openSUSE/obs-service-extract_file --> | |
| 13 | + <!-- service name="extract_file"> | |
| 14 | + <param name="archive">*.tar</param> | |
| 15 | + <param name="files">*/win/mingw32/libv3270.spec</param> | |
| 16 | + <param name="outfilename">mingw32-libv3270.spec</param> | |
| 17 | + </service --> | |
| 18 | + | |
| 19 | + <service name="recompress"> | |
| 20 | + <param name="file">*.tar</param> | |
| 21 | + <param name="compression">xz</param> | |
| 22 | + </service> | |
| 23 | + | |
| 24 | + <service name="set_version" /> | |
| 25 | + | |
| 26 | +</services> | |
| 27 | + | ... | ... |
| ... | ... | @@ -0,0 +1,180 @@ |
| 1 | +# | |
| 2 | +# spec file for package mingw32-libv3270 | |
| 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: 3270 Virtual Terminal for GTK | |
| 35 | +Name: mingw32-libv3270-%{_libvrs} | |
| 36 | +Version: 5.2 | |
| 37 | +Release: 0 | |
| 38 | +License: GPL-2.0 | |
| 39 | + | |
| 40 | +Source: libv3270-%{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-libv3270 | |
| 48 | +Conflicts: otherproviders(mingw32-libv3270) | |
| 49 | + | |
| 50 | +Provides: mingw32(lib:v3270) | |
| 51 | +Provides: mingw32(lib:v3270-%{_libvrs}) | |
| 52 | + | |
| 53 | +BuildRequires: autoconf | |
| 54 | +BuildRequires: automake | |
| 55 | +BuildRequires: gettext-tools | |
| 56 | +BuildRequires: pkgconfig(glib-2.0) | |
| 57 | + | |
| 58 | +BuildRequires: mingw32-cross-binutils | |
| 59 | +BuildRequires: mingw32-cross-gcc | |
| 60 | +BuildRequires: mingw32-cross-gcc-c++ | |
| 61 | +BuildRequires: mingw32-cross-pkg-config | |
| 62 | +BuildRequires: mingw32-filesystem | |
| 63 | +BuildRequires: mingw32-libopenssl-devel | |
| 64 | +BuildRequires: mingw32-zlib-devel | |
| 65 | + | |
| 66 | +BuildRequires: mingw32(pkg:gtk+-win32-3.0) | |
| 67 | +BuildRequires: mingw32(lib:iconv) | |
| 68 | +BuildRequires: mingw32(lib:intl) | |
| 69 | + | |
| 70 | +BuildRequires: mingw32-lib3270-devel = %{MAJOR_VERSION}.%{MINOR_VERSION} | |
| 71 | + | |
| 72 | +%description | |
| 73 | + | |
| 74 | +TN3270 GTK Virtual terminal Widget originally designed as part of the pw3270 application. | |
| 75 | + | |
| 76 | +See more details at https://softwarepublico.gov.br/social/pw3270/ | |
| 77 | + | |
| 78 | +#---[ Development ]--------------------------------------------------------------------------------------------------- | |
| 79 | + | |
| 80 | +%package devel | |
| 81 | + | |
| 82 | +Summary: 3270 Virtual Terminal for GTK development files | |
| 83 | +Group: Development/Libraries/C and C++ | |
| 84 | + | |
| 85 | +Requires: %{name} = %{version} | |
| 86 | +Requires: mingw32-lib3270-%{_libvrs}-devel | |
| 87 | + | |
| 88 | +Provides: mingw32-libv3270-devel = %{version} | |
| 89 | +Conflicts: otherproviders(mingw32-libv3270-devel) | |
| 90 | + | |
| 91 | +%description devel | |
| 92 | + | |
| 93 | +3270 Virtual Terminal for GTK development files. | |
| 94 | + | |
| 95 | +Originally designed as part of the pw3270 application. | |
| 96 | + | |
| 97 | +See more details at https://softwarepublico.gov.br/social/pw3270/ | |
| 98 | + | |
| 99 | +%package -n mingw32-glade-catalog-v3270 | |
| 100 | + | |
| 101 | +Summary: Glade catalog for the TN3270 terminal emulator library | |
| 102 | +Group: Development/Libraries/C and C++ | |
| 103 | + | |
| 104 | +Requires: libv3270-devel = %{version} | |
| 105 | +Requires: glade | |
| 106 | + | |
| 107 | +%description -n mingw32-glade-catalog-v3270 | |
| 108 | + | |
| 109 | +3270 Virtual Terminal for GTK development files. | |
| 110 | + | |
| 111 | +Originally designed as part of the pw3270 application. | |
| 112 | + | |
| 113 | +This package provides a catalog for Glade, to allow the use of V3270 | |
| 114 | +widgets in Glade. | |
| 115 | + | |
| 116 | +See more details at https://softwarepublico.gov.br/social/pw3270/ | |
| 117 | + | |
| 118 | + | |
| 119 | +#---[ Build & Install ]----------------------------------------------------------------------------------------------- | |
| 120 | + | |
| 121 | +%prep | |
| 122 | +%setup -n libv3270-%{version} | |
| 123 | + | |
| 124 | +NOCONFIGURE=1 ./autogen.sh | |
| 125 | + | |
| 126 | +%{_mingw32_configure} \ | |
| 127 | + --with-sdk-version=%{version} | |
| 128 | + | |
| 129 | +%build | |
| 130 | +make clean | |
| 131 | +make all | |
| 132 | + | |
| 133 | +%{_mingw32_strip} \ | |
| 134 | + --strip-all \ | |
| 135 | + .bin/Release/*.dll.%{MAJOR_VERSION}.%{MINOR_VERSION} | |
| 136 | + | |
| 137 | +%install | |
| 138 | +%{_mingw32_makeinstall} | |
| 139 | + | |
| 140 | +%clean | |
| 141 | +rm -rf %{buildroot} | |
| 142 | + | |
| 143 | +#---[ Files ]--------------------------------------------------------------------------------------------------------- | |
| 144 | + | |
| 145 | +%files | |
| 146 | +%defattr(-,root,root) | |
| 147 | +%doc AUTHORS LICENSE README.md | |
| 148 | + | |
| 149 | +%{_mingw32_libdir}/libv3270.dll | |
| 150 | +%{_mingw32_libdir}/libv3270.dll.%{MAJOR_VERSION} | |
| 151 | +%{_mingw32_libdir}/libv3270.dll.%{MAJOR_VERSION}.%{MINOR_VERSION} | |
| 152 | + | |
| 153 | +%files devel | |
| 154 | +%defattr(-,root,root) | |
| 155 | +%{_mingw32_includedir}/v3270 | |
| 156 | +%{_mingw32_includedir}/v3270.h | |
| 157 | + | |
| 158 | +%{_mingw32_libdir}/pkgconfig/*.pc | |
| 159 | +%{_mingw32_libdir}/*.a | |
| 160 | + | |
| 161 | +%{_mingw32_datadir}/pw3270/pot/*.pot | |
| 162 | + | |
| 163 | +%files -n mingw32-glade-catalog-v3270 | |
| 164 | +%defattr(-,root,root) | |
| 165 | + | |
| 166 | +%dir %{_mingw32_datadir}/glade | |
| 167 | +%dir %{_mingw32_datadir}/glade/catalogs | |
| 168 | +%{_mingw32_datadir}/glade/catalogs/v3270.xml | |
| 169 | + | |
| 170 | +%dir %{_mingw32_datadir}/glade/pixmaps | |
| 171 | +%dir %{_mingw32_datadir}/glade/pixmaps/hicolor | |
| 172 | +%dir %{_mingw32_datadir}/glade/pixmaps/hicolor/16x16 | |
| 173 | +%dir %{_mingw32_datadir}/glade/pixmaps/hicolor/22x22 | |
| 174 | +%dir %{_mingw32_datadir}/glade/pixmaps/hicolor/16x16/actions | |
| 175 | +%dir %{_mingw32_datadir}/glade/pixmaps/hicolor/22x22/actions | |
| 176 | +%{_mingw32_datadir}/glade/pixmaps/hicolor/16x16/actions/widget-v3270-terminal.png | |
| 177 | +%{_mingw32_datadir}/glade/pixmaps/hicolor/22x22/actions/widget-v3270-terminal.png | |
| 178 | + | |
| 179 | +%changelog | |
| 180 | + | ... | ... |
| ... | ... | @@ -0,0 +1,27 @@ |
| 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">@PARENT_TAG@</param> | |
| 8 | + <param name="url">https://github.com/PerryWerneck/libv3270.git</param> | |
| 9 | + <param name="scm">git</param> | |
| 10 | + </service> | |
| 11 | + | |
| 12 | + <!-- https://github.com/openSUSE/obs-service-extract_file --> | |
| 13 | + <!-- service name="extract_file"> | |
| 14 | + <param name="archive">*.tar</param> | |
| 15 | + <param name="files">*/win/mingw64/libv3270.spec</param> | |
| 16 | + <param name="outfilename">mingw64-libv3270.spec</param> | |
| 17 | + </service --> | |
| 18 | + | |
| 19 | + <service name="recompress"> | |
| 20 | + <param name="file">*.tar</param> | |
| 21 | + <param name="compression">xz</param> | |
| 22 | + </service> | |
| 23 | + | |
| 24 | + <service name="set_version" /> | |
| 25 | + | |
| 26 | +</services> | |
| 27 | + | ... | ... |
| ... | ... | @@ -0,0 +1,176 @@ |
| 1 | +# | |
| 2 | +# spec file for package mingw64-libv3270 | |
| 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: 3270 Virtual Terminal for GTK | |
| 35 | +Name: mingw64-libv3270-%{_libvrs} | |
| 36 | +Version: 5.2 | |
| 37 | +Release: 0 | |
| 38 | +License: GPL-2.0 | |
| 39 | + | |
| 40 | +Source: libv3270-%{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: mingw64-libv3270 | |
| 48 | +Conflicts: otherproviders(mingw64-libv3270) | |
| 49 | + | |
| 50 | +BuildRequires: autoconf | |
| 51 | +BuildRequires: automake | |
| 52 | +BuildRequires: gettext-tools | |
| 53 | +BuildRequires: pkgconfig(glib-2.0) | |
| 54 | + | |
| 55 | +BuildRequires: mingw64-cross-binutils | |
| 56 | +BuildRequires: mingw64-cross-gcc | |
| 57 | +BuildRequires: mingw64-cross-gcc-c++ | |
| 58 | +BuildRequires: mingw64-cross-pkg-config | |
| 59 | +BuildRequires: mingw64-filesystem | |
| 60 | +BuildRequires: mingw64-libopenssl-devel | |
| 61 | +BuildRequires: mingw64-zlib-devel | |
| 62 | + | |
| 63 | +BuildRequires: mingw64(pkg:gtk+-win32-3.0) | |
| 64 | +BuildRequires: mingw64(lib:iconv) | |
| 65 | +BuildRequires: mingw64(lib:intl) | |
| 66 | + | |
| 67 | +BuildRequires: mingw64-lib3270-%{_libvrs}-devel | |
| 68 | + | |
| 69 | +%description | |
| 70 | + | |
| 71 | +TN3270 GTK Virtual terminal Widget originally designed as part of the pw3270 application. | |
| 72 | + | |
| 73 | +See more details at https://softwarepublico.gov.br/social/pw3270/ | |
| 74 | + | |
| 75 | +#---[ Development ]--------------------------------------------------------------------------------------------------- | |
| 76 | + | |
| 77 | +%package devel | |
| 78 | + | |
| 79 | +Summary: 3270 Virtual Terminal for GTK development files | |
| 80 | +Group: Development/Libraries/C and C++ | |
| 81 | + | |
| 82 | +Requires: %{name} = %{version} | |
| 83 | +Requires: mingw64-lib3270-%{_libvrs}-devel | |
| 84 | + | |
| 85 | +Provides: mingw64-libv3270-devel = %{version} | |
| 86 | +Conflicts: otherproviders(mingw64-libv3270-devel) | |
| 87 | + | |
| 88 | +%description devel | |
| 89 | + | |
| 90 | +3270 Virtual Terminal for GTK development files. | |
| 91 | + | |
| 92 | +Originally designed as part of the pw3270 application. | |
| 93 | + | |
| 94 | +See more details at https://softwarepublico.gov.br/social/pw3270/ | |
| 95 | + | |
| 96 | +%package -n mingw64-glade-catalog-v3270 | |
| 97 | + | |
| 98 | +Summary: Glade catalog for the TN3270 terminal emulator library | |
| 99 | +Group: Development/Libraries/C and C++ | |
| 100 | + | |
| 101 | +Requires: libv3270-devel = %{version} | |
| 102 | +Requires: glade | |
| 103 | + | |
| 104 | +%description -n mingw64-glade-catalog-v3270 | |
| 105 | + | |
| 106 | +3270 Virtual Terminal for GTK development files. | |
| 107 | + | |
| 108 | +Originally designed as part of the pw3270 application. | |
| 109 | + | |
| 110 | +This package provides a catalog for Glade, to allow the use of V3270 | |
| 111 | +widgets in Glade. | |
| 112 | + | |
| 113 | +See more details at https://softwarepublico.gov.br/social/pw3270/ | |
| 114 | + | |
| 115 | + | |
| 116 | +#---[ Build & Install ]----------------------------------------------------------------------------------------------- | |
| 117 | + | |
| 118 | +%prep | |
| 119 | +%setup -n libv3270-%{version} | |
| 120 | + | |
| 121 | +NOCONFIGURE=1 ./autogen.sh | |
| 122 | + | |
| 123 | +%{_mingw64_configure} \ | |
| 124 | + --with-sdk-version=%{version} | |
| 125 | + | |
| 126 | +%build | |
| 127 | +make clean | |
| 128 | +make all | |
| 129 | + | |
| 130 | +%{_mingw64_strip} \ | |
| 131 | + --strip-all \ | |
| 132 | + .bin/Release/*.dll.%{MAJOR_VERSION}.%{MINOR_VERSION} | |
| 133 | + | |
| 134 | +%install | |
| 135 | +%{_mingw64_makeinstall} | |
| 136 | + | |
| 137 | +%clean | |
| 138 | +rm -rf %{buildroot} | |
| 139 | + | |
| 140 | +#---[ Files ]--------------------------------------------------------------------------------------------------------- | |
| 141 | + | |
| 142 | +%files | |
| 143 | +%defattr(-,root,root) | |
| 144 | +%doc AUTHORS LICENSE README.md | |
| 145 | + | |
| 146 | +%{_mingw64_libdir}/libv3270.dll | |
| 147 | +%{_mingw64_libdir}/libv3270.dll.%{MAJOR_VERSION} | |
| 148 | +%{_mingw64_libdir}/libv3270.dll.%{MAJOR_VERSION}.%{MINOR_VERSION} | |
| 149 | + | |
| 150 | +%files devel | |
| 151 | +%defattr(-,root,root) | |
| 152 | +%{_mingw64_includedir}/v3270 | |
| 153 | +%{_mingw64_includedir}/v3270.h | |
| 154 | + | |
| 155 | +%{_mingw64_libdir}/pkgconfig/*.pc | |
| 156 | +%{_mingw64_libdir}/*.a | |
| 157 | +%{_mingw64_datadir}/pw3270/pot/*.pot | |
| 158 | + | |
| 159 | +%files -n mingw64-glade-catalog-v3270 | |
| 160 | +%defattr(-,root,root) | |
| 161 | + | |
| 162 | +%dir %{_mingw64_datadir}/glade | |
| 163 | +%dir %{_mingw64_datadir}/glade/catalogs | |
| 164 | +%{_mingw64_datadir}/glade/catalogs/v3270.xml | |
| 165 | + | |
| 166 | +%dir %{_mingw64_datadir}/glade/pixmaps | |
| 167 | +%dir %{_mingw64_datadir}/glade/pixmaps/hicolor | |
| 168 | +%dir %{_mingw64_datadir}/glade/pixmaps/hicolor/16x16 | |
| 169 | +%dir %{_mingw64_datadir}/glade/pixmaps/hicolor/22x22 | |
| 170 | +%dir %{_mingw64_datadir}/glade/pixmaps/hicolor/16x16/actions | |
| 171 | +%dir %{_mingw64_datadir}/glade/pixmaps/hicolor/22x22/actions | |
| 172 | +%{_mingw64_datadir}/glade/pixmaps/hicolor/16x16/actions/widget-v3270-terminal.png | |
| 173 | +%{_mingw64_datadir}/glade/pixmaps/hicolor/22x22/actions/widget-v3270-terminal.png | |
| 174 | + | |
| 175 | +%changelog | |
| 176 | + | ... | ... |