commit fdaef94be8e3082f768088098a11e6cd5de86e511fcedfbed27820771df8212a Author: Jan Engelhardt Date: Thu Jun 27 07:46:18 2024 +0000 [info=17ae7de9278e83541c3170b11f084138876f1fb9009c244b33eeda358425b3f7] OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libHX?expand=0&rev=132 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/_scmsync.obsinfo b/_scmsync.obsinfo new file mode 100644 index 0000000..ebc4abc --- /dev/null +++ b/_scmsync.obsinfo @@ -0,0 +1,4 @@ +mtime: 1708702899 +commit: 17ae7de9278e83541c3170b11f084138876f1fb9009c244b33eeda358425b3f7 +url: https://src.opensuse.org/pool/libHX +revision: factory diff --git a/build.specials.obscpio b/build.specials.obscpio new file mode 100644 index 0000000..1937945 --- /dev/null +++ b/build.specials.obscpio @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fffe6472f4f008a2f01cb7f018d8494a81df5f7a33cc6d390ac2eea22cab3fb5 +size 256 diff --git a/libHX-4.23.tar.asc b/libHX-4.23.tar.asc new file mode 100644 index 0000000..18ee7c4 --- /dev/null +++ b/libHX-4.23.tar.asc @@ -0,0 +1,7 @@ +-----BEGIN PGP SIGNATURE----- + +iHUEABYKAB0WIQS8oMXDCcrFaedKkhz3bv5dDCI6jwUCZc48NAAKCRD3bv5dDCI6 +jy0fAP472IkTWPVGD3AQuC3i7xqPS8vb4zOy6Itb6RSbeSRwUgD/RavKq2bQfgWa +RDSkbxROtQu8yWbE4T9SRwLXuFmcqgc= +=QeLi +-----END PGP SIGNATURE----- diff --git a/libHX-4.23.tar.xz b/libHX-4.23.tar.xz new file mode 100644 index 0000000..e6da736 --- /dev/null +++ b/libHX-4.23.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:048cd43a71b79753820f36b18d44d8bbdbfde6d38d45348f49b9303c4d9758e8 +size 359608 diff --git a/libHX.changes b/libHX.changes new file mode 100644 index 0000000..3285dae --- /dev/null +++ b/libHX.changes @@ -0,0 +1,552 @@ +------------------------------------------------------------------- +Thu Feb 15 16:11:39 UTC 2024 - Jan Engelhardt + +- Update to release 4.23 + * io: use smaller chunks with sendfile(2) to work around + unusual API behavior + * io: make HX_copy_file() utilize copy_file_range when available + +------------------------------------------------------------------- +Wed Dec 20 13:23:27 UTC 2023 - Jan Engelhardt + +- Update to release 4.21 + * Resolve compile error when signed_cast macro is used. + +------------------------------------------------------------------- +Thu Nov 30 23:09:57 UTC 2023 - Jan Engelhardt + +- Update to release 4.19 + * string: fixed HX_strtoull_unit with negative fractions + producing 0 sometimes + * opt: fix HX_getopt losing argv on HXOPT_KEEP_ARGV +- Delete 0001-string-resolve-testsuite-failure-with-aarch64.patch + (merged) + +------------------------------------------------------------------- +Mon Nov 27 11:25:47 UTC 2023 - Jan Engelhardt + +- Update to release 4.18 + * opt: new HX_getopt5 API for the parser with untangled in and + out variables + * string: HX_strtoull_units handles negative values now (like + strtoull) + * string: HX_strtoull_units & HX_strtoull_(n)sec now set + errno=ERANGE for nonrepresentable results + * string: HX_strtoull_sec rejects unitless numbers now +- Add 0001-string-resolve-testsuite-failure-with-aarch64.patch + +------------------------------------------------------------------- +Sun Nov 12 11:09:23 UTC 2023 - Jan Engelhardt + +- Update to release 4.17 + * socket: set SOCK_CLOEXEC on all sockets + +------------------------------------------------------------------- +Thu Nov 2 08:52:49 UTC 2023 - Jan Engelhardt + +- Update to release 4.16 + * Add HX_strtoull_nsec to parse time period and emit nanoseconds + * doc: specify return value and semantics for HXio_fullread, + HXio_fullwrite, HX_sendfile + +------------------------------------------------------------------- +Sun Sep 24 05:13:29 UTC 2023 - Jan Engelhardt + +- Update to release 4.15 + * Add functions to compute Least Positive Residue (HX_flpr, HX_flprf) + * Make HX_strrtrim work on strings longer than INT_MAX + +------------------------------------------------------------------- +Fri Jul 14 13:04:16 UTC 2023 - Jan Engelhardt + +- Update to release 4.14 + * socket: make HX_addrport_split work on portless bracketed hostspec + +------------------------------------------------------------------- +Wed Jun 21 08:17:08 UTC 2023 - Jan Engelhardt + +- Update to release 4.13 + * io: do not fail HX_mkdir when a component is a symlink to a + directory + * xml_helper: fix infinite recursion in xml_getnsprop + +------------------------------------------------------------------- +Mon Feb 27 13:57:50 UTC 2023 - Jan Engelhardt + +- Update to release 4.12 + * Plug a memory leak in HX_inet_listen + +------------------------------------------------------------------- +Mon Feb 27 09:30:07 UTC 2023 - Jan Engelhardt + +- Update to release 4.11 + * Four new socket utility functions + +------------------------------------------------------------------- +Sun Jan 29 13:30:38 UTC 2023 - Jan Engelhardt + +- Update to release 4.10 + * Plug a memory leak in the formatter + +------------------------------------------------------------------- +Mon Jan 23 00:39:52 UTC 2023 - Jan Engelhardt + +- Update to release 4.9 + * socket: add sockaddr_is_local, ipaddr_is_local functions + * format: avoid return value truncation from HXformat_aprintf, + HXformat_sprintf + +------------------------------------------------------------------- +Sat Dec 3 11:24:21 UTC 2022 - Jan Engelhardt + +- Update to release 4.8 + * io: call posix_fadvise when slurping files + * io: fix garbling of slurped data when read from an + unknown-size source + +------------------------------------------------------------------- +Sun Oct 23 12:12:50 UTC 2022 - Jan Engelhardt + +- Update to release 4.7 + * string: new quoting modes HXQUOTE_BASE64URL & HXQUOTE_BASE64IMAP + +------------------------------------------------------------------- +Mon Jun 27 16:48:54 UTC 2022 - Jan Engelhardt + +- Update to release 4.6 + * HX_slurp_fd/HX_slurp_file now supports reading from files + reporting their own size as 0 (e.g. ttys, /proc special + files). + +------------------------------------------------------------------- +Sun Apr 10 12:49:56 UTC 2022 - Jan Engelhardt + +- Update to release 4.5 + * Resolve a few warnings reported by cov-scan. + +------------------------------------------------------------------- +Tue Mar 15 13:10:55 UTC 2022 - Jan Engelhardt + +- Update to release 4.4 + * Build fixes for mingw environments. + +------------------------------------------------------------------- +Mon Mar 14 17:16:20 UTC 2022 - Jan Engelhardt + +- Update to release 4.3 + * string: New functions ``HX_strtoull_sec``, + ``HX_unit_seconds`` for converting between second-based time + durations and human-readable durations like 129600 <-> 1d12h. + * io: New function ``HX_sendfile``. + +------------------------------------------------------------------- +Sun Oct 17 16:55:45 UTC 2021 - Jan Engelhardt + +- Update to release 4.2 + * string: New functions ``HX_strtod_unit``, ``HX_strtoull_unit``, + ``HX_unit_size``, ``HX_unit_size_cu`` for converting between + sizes and human-readable sizes like 1457664 <-> "1.45M"/"1.39M". + +------------------------------------------------------------------- +Wed Oct 13 12:59:26 UTC 2021 - Jan Engelhardt + +- Update to release 4.1 + * io: fix a use-after-free in conjunction with HX_realpath + +------------------------------------------------------------------- +Sun Oct 3 00:28:41 UTC 2021 - Jan Engelhardt + +- Update to release 4.0.1 + * lib: add ``HX_slurp_fd``, ``HX_slurp_file`` + * proc: add ``HXproc_switch_user`` + * proc: add ``HXproc_top_fd`` + * socket: add ``HX_socket_from_env`` + * opt: add ``HXOPT_KEEP_ARGV`` flag + +------------------------------------------------------------------- +Tue Aug 3 22:23:47 UTC 2021 - Jan Engelhardt + +- Update to release 3.26 + * io: cure a potential infinite loop on EOF with HXio_fullread() + * io: HXio_fullread() now returns actual bytes read rather than + bytes requested + * time: rectified HX_timeval_sub producing wrong results + +------------------------------------------------------------------- +Thu May 14 11:10:45 UTC 2020 - Jan Engelhardt + +- Update to release 3.25 + * fix out-of-bounds access when calling HX_strlcpy(x,y,0) + * HX_split4 renamed to HX_split_inplace + * HX_split5 renamed to HX_split_fixed + * remove excess header inclusion + +------------------------------------------------------------------- +Wed Oct 17 19:25:05 UTC 2018 - Jan Engelhardt + +- Update to new upstream release 3.24 + * Make "HXOPT_AUTOHELP" behave the same in C++ as C + * Avoid compiler warning when using HX_list_for_each in C++ + +------------------------------------------------------------------- +Tue Aug 28 08:19:43 UTC 2018 - jengelh@inai.de + +- Update to new upstream release 3.23 + * opt parser: Support long option abbreviations. + * io: Deprecate use of readdir_, use readdir. + +------------------------------------------------------------------- +Mon Dec 15 00:44:16 UTC 2014 - jengelh@inai.de + +- Switch to an out-of-tree build. Drop /pkg from include path. + +------------------------------------------------------------------- +Mon Aug 25 15:20:02 UTC 2014 - jengelh@inai.de + +- Update to new upstream release 3.22 +* HX_strquote() now supports the HXQUOTE_SQLBQUOTE mechanism + +------------------------------------------------------------------- +Mon Jun 2 01:14:48 UTC 2014 - jengelh@inai.de + +- Update to new upstream release 3.21 +* HXformat_add() now supports HXTYPE_MCSTR objects (with and without + HXTYPE_IMMED) +* libxml_helper: New xml_getnsprop() function that gets the value of a + property (element attribute) by namespace prefix + +------------------------------------------------------------------- +Fri Apr 18 16:29:13 UTC 2014 - jengelh@inai.de + +- Update to new upstream release 3.20 +* Build fixes for the Solaris platform + +------------------------------------------------------------------- +Fri Feb 21 19:13:11 UTC 2014 - jengelh@inai.de + +- Update to new upstream release 3.19 +* string: add the HXQUOTE_SQLSQUOTE quoting variant + +------------------------------------------------------------------- +Mon Feb 10 17:12:56 UTC 2014 - jengelh@inai.de + +- Do an out-of-srcdir build + +------------------------------------------------------------------- +Fri Jan 3 09:24:44 UTC 2014 - jengelh@inai.de + +- Update to new upstream release 3.18 +* Incorrect behavior in HX_strltrim has been fixed +* Added a HX_stpltrim function + +------------------------------------------------------------------- +Sat Nov 16 04:08:25 UTC 2013 - jengelh@inai.de + +- Update to new upstream release 3.17 +* Build fixes and improvements for compiling under Windows + +------------------------------------------------------------------- +Sun Sep 29 20:00:58 UTC 2013 - jengelh@inai.de + +- Update to new upstream release 3.16 +* remove 256-char format key length limit in HXformat_* + +------------------------------------------------------------------- +Thu Mar 7 20:29:53 UTC 2013 - jengelh@inai.de + +- Update to new upstream release 3.15 +* string: add HX_strchr2 +* string: add HXQUOTE_URIENC mechanism for HX_strquote +* defs: HXsizeof_member becomes FIELD_SIZEOF + +------------------------------------------------------------------- +Mon Dec 31 08:55:30 UTC 2012 - jengelh@inai.de + +- Update to new upstream release 3.14.1 (bugfix release) +* restore forward ordering of ordered maps + +------------------------------------------------------------------- +Wed Nov 28 18:31:15 CET 2012 - sbrabec@suse.cz + +- Verify GPG signature + +------------------------------------------------------------------- +Wed Nov 14 12:48:20 UTC 2012 - jengelh@inai.de + +- Update to new upstream release 3.14 +* rand: avoid division by zero when calling HX_irand with lo==hi + +------------------------------------------------------------------- +Sat Jul 28 11:16:25 UTC 2012 - jengelh@inai.de + +- Update to new upstream release 3.13 +* io: remove HX_REALPATH_SYMLINK +* option: new HXOPT_RQ_ORDER flag, allows unconditional POSIX-style + parsing (parsing terminates at first non-option encountered) +* option: add HXTYPE_SIZE_T +* time: add functions and macros for arithmetic and handling of + timespec with support for negative time values + +------------------------------------------------------------------- +Sat Feb 11 00:12:21 UTC 2012 - jengelh@inai.de + +- Update autotools BuildRequires (add libtool) for Factory/12.2, + remove unnecessary regeneration stage + +------------------------------------------------------------------- +Thu Dec 15 11:27:02 UTC 2011 - jengelh@medozas.de + +- Update to new upstream release 3.12.1 +* string: make HX_strdup(NULL) valid again +* build: fix build when -Wl,--no-undefined is used + +------------------------------------------------------------------- +Wed Dec 7 13:03:09 UTC 2011 - cfarrell@suse.com + +- license update: LGPL-2.1 or LGPL-3.0 + libHX has a dual choice of LGPL-2.1 or LGPL-3.0. Use SPDX format + +------------------------------------------------------------------- +Sat Dec 3 20:05:01 UTC 2011 - jengelh@medozas.de + +- Update to new upstream release 3.12 +* Clang support +* Fixes to the option parser's passthrough mode, + which did not correctly copy arguments over +* POSIXLY_CORRECT support for the option parser +* Size reduction of data structures by eliminating + seldomly-used fields + +------------------------------------------------------------------- +Thu Dec 1 10:24:53 UTC 2011 - coolo@suse.com + +- add automake as buildrequire to avoid implicit dependency + +------------------------------------------------------------------- +Wed Aug 10 10:26:37 UTC 2011 - jengelh@medozas.de + +- Remove pkgincludedir.diff and instead just use --includedir + to %configure + +------------------------------------------------------------------- +Mon Jul 25 12:11:22 UTC 2011 - jengelh@medozas.de + +- Update to new upstream release 3.11 +* string: add a HXQUOTE_BASE64 to HX_strquote +* debug: new LD_PRELOAD-able library that does additional checks + to the runtime +- Provide libHX-devel-32bit + +------------------------------------------------------------------- +Mon Jun 6 10:19:21 UTC 2011 - jengelh@medozas.de + +- Put the libHX directory into a versioned directory to detect + unwanted omission of libHX_CFLAGS in dependent projects + +------------------------------------------------------------------- +Wed Apr 6 17:34:49 UTC 2011 - jengelh@medozas.de + +- Update to new upstream release 3.10.1 +* defs: BUILD_BUG_ON_EXPR had erroneously returned 1 +- Add BuildRequires: pkg-config as per rpmlint suggestion + +------------------------------------------------------------------- +Tue Apr 5 18:46:20 UTC 2011 - jengelh@medozas.de + +- Update to new upstream release 3.10 +* format: do not split arguments in %(lower) and %(upper) +* defs: add array type checking in ARRAY_SIZE +* opt: use non-zero sentinel marker +* defs: add BUILD_BUG_ON_EXPR +* format: provide a %(substr) function +* io: add HX_readlink (zero-terminating mc-output readlink) +* io: add HX_realpath (supports relative-path output) + +------------------------------------------------------------------- +Mon Jan 17 00:31:26 UTC 2011 - jengelh@medozas.de + +- Update to new upstream release 3.9.1 +* Package missing header file + +------------------------------------------------------------------- +Sat Jan 15 02:47:46 UTC 2011 - jengelh@medozas.de + +- Update to new upstream release 3.9 +* Add missing includes and guard to public include files +* For filesystem/filehandle-related functions, io.h should now be + included in userspace programs instead of misc.h +* hxdirstamp: new development helper program for library users +* io: new functions HXio_full{read,write} + +------------------------------------------------------------------- +Wed Dec 1 20:48:36 UTC 2010 - jengelh@medozas.de + +- Update to new upstream release 3.8 +* HXdir_{open,read,close} now work with struct HXdir * + instead of void * +* xml_newnode prototype changed to accomodate subtext +- Run hxtools's spec-beautifier on specfile + +------------------------------------------------------------------- +Wed Aug 25 21:44:17 UTC 2010 - jengelh@medozas.de + +- update to new upstream version 3.6 +* Fixes in 3.6: +* bitmap: set/clear/test had no effect due to wrong type selection +* bitmap: avoid left-shift larger than type on 64-bit +* string: fixed buffer overflow in HX_split when too few fields were present + in the input (CVE-2010-2947) +* Fixes in 3.5: +* format2: failure to skip escaped char in "%(echo foo\ bar)" was corrected +* proc: properly check for HXPROC_STDx--HXPROC_STDx_NULL overlap +* strquote: do not cause allocation with invalid format numbers +* Enhancements: +* new format2 expandable functions like %(exec) and %(shell) +* LDAP search filter and RDN quoting support +* Old formatter was removed + +------------------------------------------------------------------- +Wed Apr 7 02:40:35 UTC 2010 - jengelh@medozas.de + +- update to upstream version 3.4 + * explicit library initializer function + +------------------------------------------------------------------- +Thu Jan 21 22:36:38 CET 2010 - jengelh@medozas.de + +- update to upstream version 3.3 + * fixes to the quote processing of the format1 and shconfig parsers + * introduces a new string formatter + +------------------------------------------------------------------- +Wed Dec 9 21:34:17 CET 2009 - jengelh@medozas.de + +- update descriptions in specfile +- do not pass --with-pkgconfigdir to configure; + build already does it right +- update to upstream version 3.2 + * defs: add HXsizeof_member and HXtypeof_member + * map: new map API, with hash-based maps and classic + rbtree-based maps + * arbtree: HXbtree was removed in favor of the new HXmap + * clist: clist.h moved into list.h + * format: HXformat_* now uses struct HXformat_map + * rand: use faster modulo-based variant for numbers within + RAND_MAX range + * rand: use libc rand() almost exclusively, only use + /dev/urandom for seed + * time: add time delta functions + * added HXbitmap_* functions +- add baselibs.conf as a Source, so that it is available on local + builds too + +------------------------------------------------------------------- +Mon Jul 27 11:10:51 CEST 2009 - mc@novell.com + +- Version 2.9 + - string: fixed number of fields and trailing NULL in HX_split4 + - string: add HX_basename_exact + - HXproc now knows about HXPROC_NULL_*, which can be used to discard I/O + - HXproc: expressly prohibit HXPROC_STD* for HXproc_run_sync + +------------------------------------------------------------------- +Mon May 11 11:18:17 CEST 2009 - mc@suse.de + +- update to version 2.7 + - update ducumentation + - arbtree: add "flat view" operation + - misc: added HX_fls + - misc: make HX_time_compare otime-capable + - add wx_helper.hpp + +------------------------------------------------------------------- +Wed Feb 18 12:22:28 CET 2009 - mc@suse.de + +- update to version 2.5 + * a lot of new features and fixes + see /usr/share/doc/packages/libHX/changelog.txt for details + * move lib back to /usr/lib/ + +------------------------------------------------------------------- +Thu Jan 29 15:38:19 CET 2009 - crrodriguez@suse.de + +- move .so symlinks to %%{_libdir} +- fix -devel package dependencies + +------------------------------------------------------------------- +Wed Oct 22 16:17:19 CEST 2008 - mrueckert@suse.de + +- fix debug_packages_requires define + +------------------------------------------------------------------- +Thu Sep 25 14:54:25 CEST 2008 - mc@suse.de + +- pointer was not automatically updated after hmc_trunc() +- make code resistant to memory allocation failure + +------------------------------------------------------------------- +Fri Sep 5 09:56:48 CEST 2008 - mc@suse.de + +- update to version 1.23 + - code cleanup: misc.h has been split off libHX.h + - add defs.h +- move libs to /lib[64] (required for pam_mount) + +------------------------------------------------------------------- +Thu Aug 14 17:57:13 CEST 2008 - mc@suse.de + +- update to version 1.22 + * need to use lstat() on directory operations such as mkdir and rmdir + * use RTLD_LAZY when opening dynamic libraries + * add libxml_helper + +------------------------------------------------------------------- +Fri Aug 1 17:32:12 CEST 2008 - ro@suse.de + +- fix requires for debuginfo package + +------------------------------------------------------------------- +Mon Jun 23 12:56:42 CEST 2008 - mc@suse.de + +- package rename to libHX13, libHX-devel +- version 1.18 + - implement reverse iterating through HXlist + - remove deprecated HXlist_init_head() and HXclist_init_head() + [replaced by HXlist_init() and HXclist_init()] + - added HX_ffs() + - HXlist: added HXlist_for_each_safe, HXlist_for_each_entry_safe + - HXclist: added HXclist_del + +------------------------------------------------------------------- +Thu Apr 10 12:54:45 CEST 2008 - ro@suse.de + +- added baselibs.conf file to build xxbit packages + for multilib support + +------------------------------------------------------------------- +Mon Apr 7 11:39:23 CEST 2008 - mc@suse.de + +- version 1.15 + - HXformat: add %(ifempty) and %(ifnempty) tags + - libHX.h: split into {arbtree,deque,option,string}.h (and libHX.h) + - Add inline-doubly-linked-list data structures + +------------------------------------------------------------------- +Wed Apr 2 18:06:43 CEST 2008 - mc@suse.de + +- version 1.10.2 + * bugfixes + +------------------------------------------------------------------- +Mon Oct 8 15:03:07 CEST 2007 - mc@suse.de + +- version 1.10.1 + * Fix output of line-wrapped help text + * fix tarball +- package pkgconfig file + +------------------------------------------------------------------- +Thu Jul 12 11:27:47 CEST 2007 - mc@suse.de + +- initial release 1.10.0 + diff --git a/libHX.keyring b/libHX.keyring new file mode 100644 index 0000000..5a8de51 --- /dev/null +++ b/libHX.keyring @@ -0,0 +1,25 @@ +-----BEGIN PGP PUBLIC KEY BLOCK----- + +mDMEYdM5whYJKwYBBAHaRw8BAQdADytr1kM/qc54vO40yIHht0XeDD7sMe1rw8Xo +Nq/LtMO0IEphbiBFbmdlbGhhcmR0IDxqZW5nZWxoQGluYWkuZGU+iJUEExYKAD0W +IQS8oMXDCcrFaedKkhz3bv5dDCI6jwUCYdM5wgIbAwUJCWYBgAQLCQgHBRUKCQgL +BRYCAwEAAh4FAheAAAoJEPdu/l0MIjqPriUBAPLcct0ekiHZHS/mPDaS0I0mh5zy +zaZFuB5FaMpQQgQ5AP45H+SqGxP7BRlsEDajDmcEyM+IPvn22lOGKyR5OKQxDokC +MwQQAQoAHRYhBCNobBCkVpG+ekJRCdY4gYHzWgk4BQJh0zqPAAoJENY4gYHzWgk4 +F7EP/3ZG6rs4l24k/GOvO1CNPM0rHaOccbB3E8BXzTJ6BsKIG1T3X4cokLHAkhmO +8ffw9NYV/HJ1AJyirvHfYFd6nn55aMakbyjo7RmDpmMmpJH5UpbhtqlJkeRQdMni +3bx+9i9E8QFJG6eFaGz8UhCCyzQvuLhawNcA6mPDumQkIri73NnA9vegw8yyDqpr +14fm4Eh+uERzXQ6JkNTqaZuKfyryb4MSluJ6LEUqNv1vqJeCHoE5iQc0WaDPamiP +Dnd3G/k2KHIFTlYdFVKnow0MYo+kyRKxUUL38x/tZ/WEhSv9oiNUOqTZJhkPOHOv +VaHfRdxOGV3845bWngegkXD6KGQvWT1vlfGa9XbNqxWQFqi59malm/jShnd8XJAK +gZuU9pB70lFwCglc+NQLPPrY16cYwFv1L2xU3owhtdiMydTI38Cw7hPteYPkASpa +/1EHf0pPxRhv01RtrPEsGhroXennooFTHe6U0Ay3Z0yBZbRJhoDv8PvBZ4RatdNR +p05qu2SBUWC+neecIHvbguI9x5G8egJ8WsGgDAuMcvWsW95H9oj/aONAgtL6LcsT +KHaPI9senfBTYI+ak+E9sHi/kaQIl5umvf8+B2CAh4QPhmkYvGtINH+HCZI6WdyE +tIsg+JklBgFwSBus9zHHUwwBfio2PgIlocRL6SL5Q2amcALPuDgEYdM5whIKKwYB +BAGXVQEFAQEHQKpjexO72fM4FUcrTh2r6MCyxmAF0CBUpnTQeIk5nVZ2AwEIB4h+ +BBgWCgAmFiEEvKDFwwnKxWnnSpIc927+XQwiOo8FAmHTOcICGwwFCQlmAYAACgkQ +927+XQwiOo/sOgD9GOjmj2blZGtR5attfY46/9B9bBkb8kDW7LACK007YZUBAJr8 +JCfIUFBfm5b/ev80rscAUSp4uTn4Z/W6ywR5STIH +=NTtt +-----END PGP PUBLIC KEY BLOCK----- diff --git a/libHX.spec b/libHX.spec new file mode 100644 index 0000000..42f66bb --- /dev/null +++ b/libHX.spec @@ -0,0 +1,98 @@ +# +# spec file for package libHX +# +# 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/ +# + + +Name: libHX +%define lname libHX32 +Version: 4.23 +Release: 0 +Summary: Collection of routines for C and C++ programming +License: LGPL-2.1-or-later +Group: Development/Libraries/C and C++ +URL: https://inai.de/projects/libhx/ + +Source: https://inai.de/files/libhx/libHX-%version.tar.xz +Source2: https://inai.de/files/libhx/libHX-%version.tar.asc +Source4: %name.keyring +BuildRequires: gcc-c++ +BuildRequires: pkg-config +BuildRequires: xz + +%description +libHX is a C library (with some C++ bindings available) that provides +data structures and functions commonly needed, such as maps, deques, +linked lists, string formatting and autoresizing, option and config +file parsing, type checking casts and more. + +%package -n %lname +Summary: Collection of routines for C and C++ programming +Group: System/Libraries + +%description -n %lname +libHX is a C library (with some C++ bindings available) that provides +data structures and functions commonly needed, such as maps, deques, +linked lists, string formatting and autoresizing, option and config +file parsing, type checking casts and more. + +%package devel +Summary: Development for libHX, a routines collection for C and C++ programming +Group: Development/Libraries/C and C++ +Requires: %lname = %version + +%description devel +libHX is a C library (with some C++ bindings available) that provides +data structures and functions commonly needed, such as maps, deques, +linked lists, string formatting and autoresizing, option and config +file parsing, type checking casts and more. + +This subpackage contains the header files. + +%prep +%autosetup -p1 + +%build +mkdir obj +pushd obj/ +%define _configure ../configure +%configure --includedir="%_includedir/%name" --docdir="%_docdir/%name" +%make_build +popd + +%install +b="%buildroot" +%make_install -C obj +mkdir -p "$b/%_docdir/%name" +install -pm0644 doc/* "$b/%_docdir/%name" +rm -f "$b/%_docdir/%name"/Makefile* +find "$b/%_libdir" -type f -name "*.la" -delete + +%check +%make_build -C obj check + +%post -n %lname -p /sbin/ldconfig +%postun -n %lname -p /sbin/ldconfig + +%files -n %lname +%_libdir/libHX*.so.32* + +%files devel +%_docdir/%name/ +%_includedir/%name/ +%_libdir/libHX*.so +%_libdir/pkgconfig/libHX.pc + +%changelog