- The doc fails to build with an assert in sphinx in 15sp6 also.
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libcbor?expand=0&rev=26
This commit is contained in:
commit
f514a7aaac
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -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
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
3
_multibuild
Normal file
3
_multibuild
Normal file
@ -0,0 +1,3 @@
|
||||
<multibuild>
|
||||
<package>doc</package>
|
||||
</multibuild>
|
117
libcbor.changes
Normal file
117
libcbor.changes
Normal file
@ -0,0 +1,117 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Sep 16 09:29:46 UTC 2024 - Eric Schirra <ecsos@opensuse.org>
|
||||
|
||||
- The doc fails to build with an assert in sphinx in 15sp6 also.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Apr 2 14:35:56 UTC 2024 - pgajdos@suse.com
|
||||
|
||||
- version update to 0.11.0
|
||||
* Updated documentation to refer to RFC 8949
|
||||
* Improvements to cbor_describe
|
||||
Bytestring data will now be printed as well by akallabeth
|
||||
Formatting consistency and clarity improvements
|
||||
* Fix cbor_string_set_handle not setting the codepoint count
|
||||
* BREAKING: cbor_load will no longer fail on input strings that are
|
||||
well-formed but not valid UTF-8
|
||||
If you were relying on the validation, please check the result
|
||||
using cbor_string_codepoint_count instead
|
||||
* BREAKING: All decoders like cbor_load and cbor_stream_decode will
|
||||
accept all well-formed tag values (bug discovered by dskern-github)
|
||||
Previously, decoding of certain values would fail with
|
||||
CBOR_ERR_MALFORMATED or CBOR_DECODER_ERROR
|
||||
This also makes decoding symmetrical with serialization, which
|
||||
already accepts all values
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Feb 27 10:43:10 UTC 2023 - Paolo Stivanin <info@paolostivanin.com>
|
||||
|
||||
- Update to 0.10.2:
|
||||
* Fixed minor test bug causing failures for x86 Linux
|
||||
* Made tests platform-independent
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Feb 22 09:27:59 UTC 2023 - Antonio Larrosa <alarrosa@suse.com>
|
||||
|
||||
- Merge change from SLE15 SP4 made by pgajdos@suse.com on
|
||||
Tue Apr 5 14:36:56 UTC 2022:
|
||||
- do not build manual page for 15sp4, it does not succeed
|
||||
[bsc#1197743]
|
||||
- added sources
|
||||
+ libcbor.3
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jan 16 15:32:07 UTC 2023 - Paolo Stivanin <info@paolostivanin.com>
|
||||
|
||||
- Update to 0.10.1:
|
||||
* BREAKING: Fix cbor_copy leaking memory and creating invalid items when the allocator fails.
|
||||
* BREAKING: Improved half-float encoding for denormalized numbers. [#208]
|
||||
* Make the buffer_size optional in cbor_serialize_alloc [#205]
|
||||
* Fix a potential memory leak when the allocator fails during array or map decoding [#224]
|
||||
* Fix a memory leak when the allocator fails when adding chunks to indefinite bytestrings.
|
||||
* Fix a memory leak when the allocator fails when adding chunks to indefinite strings
|
||||
* Fix cbor_build_tag illegal memory behavior when the allocator fails
|
||||
* Add a new cbor_serialized_size API
|
||||
* Reworked cbor_serialize_alloc to allocate the exact amount of memory necessary upfront
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Aug 26 05:23:10 UTC 2022 - Thorsten Kukuk <kukuk@suse.com>
|
||||
|
||||
- Install manual page in the correct man section
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Dec 7 15:27:11 UTC 2021 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- fix duplicate src package name issue on multibuild
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Dec 5 09:42:57 UTC 2021 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- update to 0.9.0:
|
||||
* Improved pkg-config paths handling
|
||||
* Use explicit math.h linkage
|
||||
* BREAKING: Fixed handling of items that exceed the host size_t range
|
||||
* cbor_decode explicitly checks size to avoid overflows (previously broken,
|
||||
potentially resulting in erroneous decoding on affected systems)
|
||||
- split docs into multibuild flavor to avoid build cycle via openssh<->
|
||||
python-pyOpenSSL <-> python-cryptography
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Sep 22 11:42:03 UTC 2020 - Ismail Dönmez <idonmez@suse.com>
|
||||
|
||||
- Update to version 0.8.0
|
||||
* BREAKING: Fix cbor_tag_item not increasing the reference count
|
||||
on the tagged item reference it returns
|
||||
* BREAKING: CBOR_DECODER_EBUFFER removed from cbor_decoder_status
|
||||
+ cbor_stream_decode will set CBOR_DECODER_NEDATA instead if the
|
||||
input buffer is empty
|
||||
* Fix cbor_stream_decode to set cbor_decoder_result.required to
|
||||
the minimum number of input bytes necessary to receive the next
|
||||
callback (as long as at least one byte was passed)
|
||||
* Fixed several minor manpage issue
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon May 25 08:15:42 UTC 2020 - Ismail Dönmez <idonmez@suse.com>
|
||||
|
||||
- Update to version 0.7.0
|
||||
* Too many changes to list, see included CHANGELOG.md file
|
||||
- 0.6.0 includes patch by bwiedemann@suse.com to not build shared
|
||||
lib twice and make package build reproducible (boo#1102408,
|
||||
gh#PJK/libcbor#72)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jan 2 22:06:08 UTC 2020 - Torsten Gruner <t.gruner@katodev.de>
|
||||
|
||||
- remove documentation build with doxygen
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Sep 28 18:57:09 UTC 2018 - Jan Engelhardt <jengelh@inai.de>
|
||||
|
||||
- Rename %SONAME to %sover to better reflect its use.
|
||||
- Expand summary, compact and trim bias from description.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Apr 26 08:55:27 UTC 2018 - t.gruner@katodev.de
|
||||
|
||||
- Initial release 0.5.0
|
||||
|
144
libcbor.spec
Normal file
144
libcbor.spec
Normal file
@ -0,0 +1,144 @@
|
||||
#
|
||||
# spec file for package libcbor
|
||||
#
|
||||
# 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/
|
||||
#
|
||||
|
||||
|
||||
%define socurrent 0
|
||||
%define sorevision 11
|
||||
%define soage 0
|
||||
%define lname libcbor%{socurrent}_%{sorevision}
|
||||
%global flavor @BUILD_FLAVOR@%{nil}
|
||||
|
||||
%if "%{flavor}" == "doc"
|
||||
# in 15sp4/sp5/sp6, the doc fails to build with an assert in sphinx
|
||||
%if 0%{?sle_version} >= 150400 && 0%{?sle_version} <= 150600
|
||||
%define build_man 0
|
||||
%else
|
||||
%define build_man 1
|
||||
%endif
|
||||
%else
|
||||
%define build_man 0
|
||||
%endif
|
||||
|
||||
%if "%{flavor}" == "doc"
|
||||
Name: libcbor-doc
|
||||
%else
|
||||
Name: libcbor
|
||||
%endif
|
||||
Version: 0.11.0
|
||||
Release: 0
|
||||
Summary: Library for parsing Concise Binary Object Representation (CBOR)
|
||||
License: MIT
|
||||
Group: Development/Libraries/C and C++
|
||||
URL: https://github.com/PJK/libcbor
|
||||
Source0: https://github.com/PJK/libcbor/archive/v%{version}.tar.gz
|
||||
Source1: libcbor.3
|
||||
%if %{build_man}
|
||||
BuildRequires: doxygen
|
||||
BuildRequires: python3-Sphinx
|
||||
BuildRequires: python3-breathe
|
||||
%else
|
||||
BuildRequires: cmake
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: libcmocka-devel
|
||||
BuildRequires: ninja
|
||||
%endif
|
||||
|
||||
%description
|
||||
libcbor is a C99 library for parsing and generating CBOR (RFC 7049),
|
||||
a general-purpose schema-less binary data format.
|
||||
|
||||
It supports flexible memory management, UTF-8, streams & incremental
|
||||
processing, and has a layered architecture.
|
||||
|
||||
%package -n %{lname}
|
||||
Summary: Library for parsing Concise Binary Object Representation (CBOR)
|
||||
Group: System/Libraries
|
||||
|
||||
%description -n %{lname}
|
||||
libcbor is a C99 library for parsing and generating CBOR (RFC 7049),
|
||||
a general-purpose schema-less binary data format.
|
||||
|
||||
It supports flexible memory management, UTF-8, streams & incremental
|
||||
processing, and has a layered architecture.
|
||||
|
||||
%package devel
|
||||
Summary: Development files for libcbor
|
||||
Group: Development/Libraries/C and C++
|
||||
Requires: %{lname} = %{version}
|
||||
|
||||
%description devel
|
||||
libcbor is a C library for parsing and generating CBOR.
|
||||
The libcbor-devel contains libraries and header files for libcbor.
|
||||
|
||||
%prep
|
||||
%autosetup -n libcbor-%{version}
|
||||
sed -i 's|${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}/pkgconfig|${CMAKE_INSTALL_LIBDIR}/pkgconfig|' src/CMakeLists.txt
|
||||
|
||||
%build
|
||||
export CFLAGS="%(echo %{optflags}) -Wno-return-type"
|
||||
export CXXFLAGS="$CFLAGS"
|
||||
%if %{build_man}
|
||||
%make_build -C doc man
|
||||
%else
|
||||
|
||||
%define __builder ninja
|
||||
%cmake .. -DCMAKE_BUILD_TYPE=Release -DWITH_TESTS=ON
|
||||
%cmake_build
|
||||
%endif
|
||||
|
||||
%install
|
||||
%if "%{flavor}" == "doc"
|
||||
|
||||
mkdir -p %{buildroot}%{_mandir}/man3
|
||||
%if %{build_man}
|
||||
cp doc/build/man/*.3 %{buildroot}%{_mandir}/man3
|
||||
%else
|
||||
cp %{SOURCE1} %{buildroot}%{_mandir}/man3
|
||||
%endif
|
||||
|
||||
%else
|
||||
|
||||
%cmake_install
|
||||
%endif
|
||||
|
||||
%post -n %{lname} -p /sbin/ldconfig
|
||||
%postun -n %{lname} -p /sbin/ldconfig
|
||||
|
||||
%if "%{flavor}" == "doc"
|
||||
%files
|
||||
%doc CHANGELOG.md README.md
|
||||
%{_mandir}/*/*
|
||||
|
||||
%else
|
||||
|
||||
%files -n %{lname}
|
||||
%license LICENSE.md
|
||||
%{_libdir}/libcbor.so.%{socurrent}.%{sorevision}
|
||||
%{_libdir}/libcbor.so.%{socurrent}.%{sorevision}.%{soage}
|
||||
|
||||
%files devel
|
||||
%{_includedir}/cbor.h
|
||||
%dir %{_includedir}/cbor
|
||||
%{_includedir}/cbor/*.h
|
||||
%dir %{_includedir}/cbor/internal
|
||||
%{_includedir}/cbor/internal/*.h
|
||||
%{_libdir}/libcbor.so
|
||||
%{_libdir}/pkgconfig/libcbor.pc
|
||||
%{_libdir}/cmake
|
||||
%endif
|
||||
|
||||
%changelog
|
3
v0.11.0.tar.gz
Normal file
3
v0.11.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:89e0a83d16993ce50651a7501355453f5250e8729dfc8d4a251a78ea23bb26d7
|
||||
size 293563
|
Loading…
x
Reference in New Issue
Block a user