From c32dc5a0487bbefba7c476007e7bddbf5c3cb1f9f77ae78296695bbee3036a10 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Tue, 10 Sep 2024 13:23:58 +0000 Subject: [PATCH] - update to 0.11.10: * Removed a few unused variables which gcc reported during building with -Wall compiler option. A notable case was in function decode_wv_datetime where a memory allocation failure was ignored * Added workaround for buggy FindEXPAT in cmake 3.27-3.29. * Enabled --output-on-failure in GitHub runner config of ctest. * Removed proprietary Testing.cmake. * Updated the cmake package information by replacing the find module with proper cmake config and version files. * Removed all cmake find modules of third party dependencies. * Replaced proprietary FindCheck.cmake with standard usage of PkgConfig. * Removed assert in function wbxml_tree_clb_xml_end_element of wbxml_tree_clb_xml.c. The function had already the correct error handling implemented. The library no longer crashes but returns an error. * Fixed SIGSEGV during parsing of malformed WV document in wbxml_parser.c. * Fixed the handling of a wrong Unicode character in the function parse_entity of wbxml_parser.c. The library no longer crashes but returns an error. Therefore, a new error was defined in wbxml_errors.h. The usage of assert.h was removed from wbxml_parser.c. * Added missing NULL pointer check in function decode_opaque_content of wbxml_parser.c * Added a directory for and with fuzz tests which crash(ed) the library. * Modify wbxml_getopt return opt type to int * Check for normalize_xml.pl failures in the tests (pull OBS-URL: https://build.opensuse.org/package/show/mobile:synchronization:FACTORY/wbxml2?expand=0&rev=30 --- .gitattributes | 23 +++ .gitignore | 1 + libwbxml-0.11.10.tar.gz | 3 + libwbxml-0.11.8.tar.gz | 3 + wbxml2.changes | 382 ++++++++++++++++++++++++++++++++++++++++ wbxml2.spec | 111 ++++++++++++ 6 files changed, 523 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 libwbxml-0.11.10.tar.gz create mode 100644 libwbxml-0.11.8.tar.gz create mode 100644 wbxml2.changes create mode 100644 wbxml2.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/libwbxml-0.11.10.tar.gz b/libwbxml-0.11.10.tar.gz new file mode 100644 index 0000000..075acd5 --- /dev/null +++ b/libwbxml-0.11.10.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:027b77ab7c06458b73cbcf1f06f9cf73b65acdbb2ac170b234c1d736069acae4 +size 320686 diff --git a/libwbxml-0.11.8.tar.gz b/libwbxml-0.11.8.tar.gz new file mode 100644 index 0000000..b59d7f4 --- /dev/null +++ b/libwbxml-0.11.8.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a6fe0e55369280c1a7698859a5c2bb37c8615c57a919b574cd8c16458279db66 +size 362833 diff --git a/wbxml2.changes b/wbxml2.changes new file mode 100644 index 0000000..133b6df --- /dev/null +++ b/wbxml2.changes @@ -0,0 +1,382 @@ +------------------------------------------------------------------- +Tue Sep 10 13:17:45 UTC 2024 - Dirk Müller + +- update to 0.11.10: + * Removed a few unused variables which gcc reported during + building with -Wall compiler option. A notable case was in + function decode_wv_datetime where a memory allocation + failure was ignored + * Added workaround for buggy FindEXPAT in cmake 3.27-3.29. + * Enabled --output-on-failure in GitHub runner config of ctest. + * Removed proprietary Testing.cmake. + * Updated the cmake package information by replacing the find + module with proper cmake config and version files. + * Removed all cmake find modules of third party dependencies. + * Replaced proprietary FindCheck.cmake with standard usage of + PkgConfig. + * Removed assert in function wbxml_tree_clb_xml_end_element of + wbxml_tree_clb_xml.c. The function had already the + correct error handling implemented. The library no longer + crashes but returns an error. + * Fixed SIGSEGV during parsing of malformed WV document in + wbxml_parser.c. + * Fixed the handling of a wrong Unicode character in the + function parse_entity of wbxml_parser.c. The library no longer + crashes but returns an error. Therefore, a new error was + defined in wbxml_errors.h. The usage of assert.h was removed + from wbxml_parser.c. + * Added missing NULL pointer check in function + decode_opaque_content of wbxml_parser.c + * Added a directory for and with fuzz tests which crash(ed) the + library. + * Modify wbxml_getopt return opt type to int + * Check for normalize_xml.pl failures in the tests (pull + request #84). + +------------------------------------------------------------------- +Tue Dec 6 14:42:37 UTC 2022 - Dirk Müller + +- update to 0.11.8: + * Changed location of releases to GitHub only in README. + * Change the default internal namespace separator from the colon to the pipe + This solves compatibility with libexpat >= 2.4.5 after fix the security + problem CVE-2022-25236. + * Removed copy of Expat in macosx directory (issue #77). + * Migrated from Travis CI to GitHub actions for testing. + +------------------------------------------------------------------- +Sun Apr 11 11:38:20 UTC 2021 - Bo Simonsen + +- fixed spec file syntax +- updated to version 0.11.7 + * Added WBXML_INSTALL_FULL_HEADERS cmake flag to expose internal + API headers; changes library version for compatibility (e.g. + 2.6.1 -> 20601.0.0) + (pull request #67 from David Llewellyn-Jones) + * Link to libexpat correctly (private). Therefore the tools + wbxml2xml and xml2wbxml do no longer link directly to libexpat. + (pull request #65 from Peter Keresztes Schmidt) + * Fixed several memory leaks and leak-sanitizer issues. + (pull requests #61, #62, #63 and #64 from Gaurav Gupta) + * During build use headers which come with source code and not + the installed headers. + (pull request #66 from David Llewellyn-Jones) + +------------------------------------------------------------------- +Sat Apr 13 13:55:16 UTC 2019 - bosim@opensuse.org + +- updated to version 0.11.6 + * Fixed/changed the encoding of element Content in CodePage + AirSyncBase (0x11) to WBXML_BINARY_OPTION for Microsoft + ActiveSync. + This element is used when the clients send a request to save a + draft email. + An example can be found in: + http://interoperability.blob.core.windows.net/files/MS-ASEMAIL/[MS-ASEMAIL].pdf + (4.4 Adding a Draft Email with Attachments). + Reference: + https://msdn.microsoft.com/en-us/library/mt563406%28v=exchg.80%29.aspx + (issue #58 from Thomas Führer) + * Added a testcase for Microsoft ActiveSync EAS Provisioning + (clarifies issue #56). + +------------------------------------------------------------------- +Wed Mar 15 12:22:18 UTC 2017 - jengelh@inai.de + +- Trim descriptions +- Replace unnecessary uses of %__ indirections in macros, + remove redundant %clean section, do parallel build with %_smp_mflags. + +------------------------------------------------------------------- +Sun Feb 19 14:27:59 UTC 2017 - bosim@opensuse.org + +- updated to version 0.11.5 + * Fixed ActiveSync element data of code pages ResolveRecipients and + GAL (issue #52 from Thomas Führer, fixed in pull request #53). + * Added definitions of ActiveSync protocoll v16.0 (pull request #32 from Gil Hartmann). + * Added support to build a static library (issue #22 and pull requests #23, #24, #25, + #26 and #27 from Gaurav Gupta). + * Added support for MacOS X to Travis CI environment. + * Added support for ccache (pull request #44 from Gaurav Gupta). + * Fixed some memory leaks (pull requests #43 and #45 from Renu Tyagi). + * Avoid malloc typecasts (pull requests #31, #33, #34, #35, #36, #37, #38, #39 and #40 from Gaurav Gupta). + * Added support for automated testing with travis-ci.org + * Fixed memory leak in function wbxml_strtbl_collect_words of wbxml_encoder (pull request #21 from Gaurav Gupta). + * Fixed memory leak in function wbxml_strtbl_check_references of wbxml_encoder (pull request #20 from Gaurav Gupta). + * If pkg-config is used then use the provided ldflags (pull request #19 from Jeroen Dekkers). + +------------------------------------------------------------------- +Mon Jan 31 11:43:23 CET 2011 - cstender@suse.de + +- updated to version 0.10.9 + * Added correct default behaviour to parse_charset. If no character + set is specified in a WBXML document then UTF-8 is assumed until + there is another specification in the transport meta-information. + (ticket #52) + * Added several tokens for Microsoft ActiveSync v14.0 revision 8.0 + (ticket #53). The patch was supplied by Amnon Aaronsohn. + * Fixed iconv support (ticket #52) + * Fixed wrong WBXML table token for OMA DM DDF (ticket #51) + * Fixed locations of variable definitions and replaced strtoull by + strtoul (changes from ticket #42 and #50). + This fixes some compiler errors from MS VisualStudio 2008 and 9.0. + * Fixed integer overflow in opaque data parsing (ticket #54). + The patch was supplied by Amnon Aaronsohn. + * Fixed unsigned integer overflow (patch from ticket #41) + The overflow causes crashs or wrong wbxml messages. + * Added support for recursion in wbxml_tree_node_elt_get_from_name + (ticket #46) + +------------------------------------------------------------------- +Tue Apr 20 13:57:54 CEST 2010 - cstender@suse.de + +- updated to version 0.10.8 + * Added a fix for the broken vFormat handling in the SyncML + specification. All LFs are replaced by CRLFs in every vFormat + object inside a SyncML message (ticket #38). + * Added Nokia ConML support (ticket #35). + There is no public documentation available from Nokia. The + transformation tables were created from sniffed WBXML documents. + The patch was supplied by Anton D. Kachalov. + * Removed OMA DM tests because the OMA did not grant a permission + for the inclusion (ticket #36). + +------------------------------------------------------------------- +Mon Aug 3 08:42:34 UTC 2009 - cstender@novell.com + +- removed ddf testcases (bnc#515194) + +------------------------------------------------------------------- +Wed May 13 17:52:02 CEST 2009 - cstender@suse.de + +- updated to version 0.10.7 + * If the operating system environment has a built-in getopt + implementation then the cmake environment disables the internal + implementation of libwbxml and uses the getopt function of the + operating system. This avoids clashes with variables which are + declared extern and explicit but already exists in the default + POSIX header files (e.g. optopt). + +------------------------------------------------------------------- +Fri Apr 24 18:54:47 CEST 2009 - cstender@suse.de + +- updated to version 0.10.6 + * Extended (updated) tables for Microsoft AirSync + (The patch was supplied by Ossi Jormakka from Ixonos Plc.) + * Expat splits <html> into three separate text nodes. + Therefore it is necessary to scan for splitted text nodes and + merge them into a single consistent text node. + * Fixed race condition in WV datetime opaque encoding + +------------------------------------------------------------------- +Mon Mar 30 15:56:01 CEST 2009 - cstender@suse.de + +- updated to version 0.10.5 + * Fixed library installation path for win32 (ticket #31) + (The patch was supplied by Jeremy Laine.) + +------------------------------------------------------------------- +Thu Mar 12 12:36:07 CET 2009 - cstender@suse.de + +- updated to version 0.10.4 + * Fixed the byte order of the WV datetime opaque encoding (the bytes + were written in the reversed order) + * Fixed the time zone byte handling in the WV datetime opaque encoding + (e.g. A means UTC+1, Z must be 0x5a) (ticket #30) + * Added correct timezone handling for WV datetime opaque parser + * Added support for WV datetime inline encoding. All timestamps which + use the full ISO style like 2001-09-12T13:09:12+02:00 are encoded + as inline strings. This style is strongly recommended because time + zones like UTC+09:30 of Darwin in Australia are supported too. + (ticket #30) + + * Added support for an EXPECTED value to the XML normalization script + +------------------------------------------------------------------- +Mon Feb 23 16:32:53 CET 2009 - cstender@suse.de + +- updated to version 0.10.3 + * Added support for SourceParent in SyncML 1.1. + This is a proprietary extension to support things like the SMS and + bookmark synchronization of Nokia. + +------------------------------------------------------------------- +Fri Feb 13 13:04:07 CET 2009 - cstender@suse.de + +- updated to version 0.10.2 + * Added support for OMA DM DDF 1.2 (ticket #7). + * DRMREL 1.0 test cases were disabled because of the poor + specification (e.g. hard coded names for XML namespaces and + definition of such namespaces as (WB)XML attributes). + * The generated XML documents of the most tests (conversion from XML + to WBXML back to XML) are compared with the original documents. + Only special tests are not covered (e.g. hexadecimal number + conversion, SyncML CDATA usage). + + * If there is no PUBLIC ID then DOCTYPE must include PUBLIC "" or + SYSTEM. libwbxml always adds SYSTEM in this case. + * Fixed datetime support for Wireless Village (ticket #27). + * Extension tokens must not be replaced within normal text data + (ticket #26). + * Ticket #13 was rejected because the mentioned specification is only + a today outdated OMA change request. Perhaps a new specification + must be implemented in case of a new request. + + * Created a script to normalize XML documents. + * The getopt implementation was replaced because of a potential + license issue. This fixed a Solaris build issue too (ticket #25). + +------------------------------------------------------------------- +Fri Jan 9 11:28:58 CET 2009 - cstender@suse.de + +- updated to version 0.10.1 + * LIBDATA_INSTALL_DIR was introduced (used by pkgconfig). + * The installation of the documentation can be disabled. + * All tests are executed as standalone tests to get more + detailed informations if a test fails. + * Removed a useless buffer which only creates a memory leak. + +------------------------------------------------------------------- +Tue Dec 16 13:53:17 CET 2008 - cstender@suse.de + +- updated to libwbxml 0.10.0 + * libwbxml is now maintained by the OpenSync project + * the new homepage is http://libwbxml.opensync.org + * Build system switched to cmake from GNU autotools. + * Tests were integrated and can be used via make test. + * Fixed a couple of issues with SyncML + + * Fixed segfault in wbxml_encoder.c - Thanks Stijn van Drongelen + * Size changed to MaxSize in OMA DS 1.2 DevInf + * Fixed ticket #14 with patch from ticket (hexadecimal integer support + for Wireless-Village) + * Added datetime encoding support for Wireless-Village. (The encoder + can tolerate missing seconds like in the tests.) + * Added Sax like entity parsing + * Namespaces support + * Miscellaneous build fixes and anonymous document support + * Fixed for wrong doctype detection + * The inclusion of expat and iconv header files were moved to an + internal header file. + * The configuration parameters which are relevant for users are placed + in wbxml_config.h. + * Fixed SO naming + +- changed build env to cmake +- added wbxml2-tools subpackage +- updated license to LGPL v2.1 or later +- dropped patches (all included in libwbxml 0.10.0) + +------------------------------------------------------------------- +Tue Nov 18 18:00:35 CET 2008 - cstender@suse.de + +- added patch (09-devinf-doctype.patch) from Michael Bell + - The embedded DevInf document is now prefixed with correct doctype + during internal XML to WBXML conversion. This leeds to correct + DevInf 1.0, 1.1 and 1.2 embedded WBXML. The old code always + embeds a SyncML 1.2 DevInf (e.g. in a SyncML 1.1 message). + +------------------------------------------------------------------- +Fri Nov 7 17:11:19 CET 2008 - cstender@suse.de + +- fixed syncml-fix.diff which leads to broken libsyncml testcases + +------------------------------------------------------------------- +Thu Sep 4 16:59:38 CEST 2008 - cstender@suse.de + +- Size tag was changed to MaxSize in OMA DS 1.2 Device +Information + +------------------------------------------------------------------- +Mon Aug 18 16:39:59 CEST 2008 - cstender@suse.de + +- updated to 0.9.2_SVN59 + * fixed segfault +- updated patches +- added new patch (syncml-fix.diff) from Michael Bell + +------------------------------------------------------------------- +Sat Jan 12 22:32:26 CET 2008 - crrodriguez@suse.de + +- remove wrong hardcoded require on libexpat0 >= 1.95.4 +- fix -devel package dependencies. +- pkgconfig script wrongly injected uneeded dependencies. +- fix library-without-ldconfig-* errors + +------------------------------------------------------------------- +Thu May 3 13:46:30 CEST 2007 - dgollub@suse.de + +- splitted wbxml2 to libwxbml2-0, libwbxml2-devel and wbxml2-tools +- updated to 0.9.2_SVN48: + * several SyncML fixes +- removed .*a files +- updated project URL + +------------------------------------------------------------------- +Thu May 3 06:31:27 CEST 2007 - lrupp@suse.de + +- require libexpat0 instead + +------------------------------------------------------------------- +Wed May 2 19:31:21 CEST 2007 - dgollub@suse.de + +- Fixed invalid Requires (#270547) + +------------------------------------------------------------------- +Fri Apr 27 18:57:02 CEST 2007 - aj@suse.de + +- Add libexpat-devel to BuildRequires. + +------------------------------------------------------------------- +Sat Jan 20 18:55:28 CET 2007 - dgollub@suse.de + +- updated to wbxml2 0.9.2: + * Added SyncML 1.2 support + * Added Microsoft AirSync support + * Some more cleanup and bug fixes +- added patch for Makefile template to handle CFLAGS +- bumped up version to 0.9.2 in configure template + +------------------------------------------------------------------- +Sat Nov 11 12:01:04 CET 2006 - ro@suse.de + +- cleanup specfile +- fix docu permissions + +------------------------------------------------------------------- +Wed Oct 4 19:48:32 CEST 2006 - dgollub@suse.de + +- added missing NumberOfChanged patch which avoid problems in the + SyncML implementation of wbxml2. + +------------------------------------------------------------------- +Thu Aug 10 15:33:51 CEST 2006 - kkaempf@suse.de + +- Remove self-provides without version. + +------------------------------------------------------------------- +Wed Jan 25 21:42:46 CET 2006 - mls@suse.de + +- converted neededforbuild to BuildRequires + +------------------------------------------------------------------- +Mon Dec 19 16:47:15 CET 2005 - dgollub@suse.de + +- fixed spec file for 64bit architecures (--libdir=%{_libdir}) + +------------------------------------------------------------------- +Thu Oct 28 10:49:04 CEST 2004 - behlert@suse.de + +- added patch from multisync-developers needed to handle syncml + correct (Nokia 6600 bug) [#447779] + +------------------------------------------------------------------- +Thu May 6 10:21:56 CEST 2004 - behlert@suse.de + +- updated to v0.9, which is now under GPL instead of LGPL + +------------------------------------------------------------------- +Mon Mar 8 14:32:27 CET 2004 - behlert@suse.de + +- initial version + diff --git a/wbxml2.spec b/wbxml2.spec new file mode 100644 index 0000000..e819582 --- /dev/null +++ b/wbxml2.spec @@ -0,0 +1,111 @@ +# +# spec file for package wbxml2 +# +# Copyright (c) 2024 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +# set libname +%define libname libwbxml2-1 +Name: wbxml2 +Version: 0.11.10 +Release: 0 +Summary: WBXML parser and compiler library +License: LGPL-2.1-or-later +Group: Development/Libraries/C and C++ +URL: https://github.com/libwbxml/libwbxml +Source: https://github.com/libwbxml/libwbxml/archive/refs/tags/libwbxml-%{version}.tar.gz +BuildRequires: cmake +BuildRequires: gcc-c++ +BuildRequires: libexpat-devel +BuildRequires: pkgconfig +BuildRequires: popt-devel +BuildRequires: zlib-devel + +%description +wbxml2 is a library that includes a WBXML (Wireless Binary XML) +parser and a WBXML compiler. Unlike wbxml, it uses expat instead of +libxml2. WBXML contains a library and its associated tools to parse, +ecode and handle WBXML documents. + +%package -n %{libname} +Summary: WBXML parser and compiler library +License: LGPL-2.1-or-later +Group: System/Libraries + +%description -n %{libname} +wbxml2 is a library that includes a WBXML (Wireless Binary XML) +parser and a WBXML compiler. Unlike wbxml, it uses expat instead of +libxml2. WBXML contains a library and its associated tools to parse, +ecode and handle WBXML documents. The WBXML format is a binary +representation of XML defined by the Wap Forum. + +%package -n wbxml2-tools +Summary: Tools for libwbxml2 +License: GPL-2.0-or-later +Group: Productivity/Other +Requires: %{libname} = %{version} +# package was called wbxml2 in openSUSE < 11.2 +Provides: wbxml2 = %{version} +Obsoletes: wbxml2 < %{version} + +%description -n wbxml2-tools +wbxml2 is a library that includes a WBXML (Wireless Binary XML) +parser and a WBXML compiler. Unlike wbxml, it uses expat instead of +libxml2. WBXML contains a library and its associated tools to parse, +ecode and handle WBXML documents. + +%package -n libwbxml2-devel +Summary: WBXML parser and compiler library +License: LGPL-2.1-or-later +Group: Development/Libraries/C and C++ +Requires: %{libname} = %{version} +Requires: glibc-devel +Requires: libexpat-devel + +%description -n libwbxml2-devel +wbxml2 is a library that includes a WBXML (Wireless Binary XML) +parser and a WBXML compiler. Unlike wbxml, it uses expat instead of +libxml2. WBXML contains a library and its associated tools to parse, +ecode and handle WBXML documents. + +%prep +%setup -q -n libwbxml-libwbxml-%{version} + +%build +%cmake -DENABLE_INSTALL_DOC:BOOL=OFF +%cmake_build + +%install +%cmake_install + +%post -n %{libname} -p /sbin/ldconfig +%postun -n %{libname} -p /sbin/ldconfig + +%files -n %{libname} +%license COPYING +%doc BUGS ChangeLog GNU-LGPL INSTALL README RELEASE References THANKS TODO +%{_libdir}/libwbxml2.so.1* + +%files -n libwbxml2-devel +%{_libdir}/cmake/libwbxml2/ +%{_libdir}/pkgconfig/libwbxml2.pc +%{_libdir}/libwbxml2.so +%{_includedir}/libwbxml* + +%files -n wbxml2-tools +%{_bindir}/wbxml2xml +%{_bindir}/xml2wbxml + +%changelog