Accepting request 639000 from home:kbabioch:branches:security
Moving this from security/libcbor to devel:libraries:c_c++, since it has nothing to do with security, and is a basic building block that could also be used by other packages. OBS-URL: https://build.opensuse.org/request/show/639000 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libcbor?expand=0&rev=1
This commit is contained in:
commit
32ac5a46f9
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
libcbor-0.5.0.tar.gz
Normal file
3
libcbor-0.5.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:9bbec94bb385bad3cd2f65482e5d343ddb97e9ffe261123ea0faa3bfea51d320
|
||||
size 719348
|
5
libcbor.changes
Normal file
5
libcbor.changes
Normal file
@ -0,0 +1,5 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Apr 26 08:55:27 UTC 2018 - t.gruner@katodev.de
|
||||
|
||||
- Initial release 0.5.0
|
||||
|
119
libcbor.spec
Normal file
119
libcbor.spec
Normal file
@ -0,0 +1,119 @@
|
||||
#
|
||||
# spec file for package libcbor
|
||||
#
|
||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# 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 http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
%define SONAME 0
|
||||
%define lname libcbor%{SONAME}
|
||||
Name: libcbor
|
||||
Version: 0.5.0
|
||||
Release: 0
|
||||
Summary: A CBOR parsing library
|
||||
License: MIT
|
||||
Group: Productivity/Other
|
||||
URL: http://libcbor.org
|
||||
Source0: https://github.com/PJK/libcbor/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
||||
BuildRequires: cmake
|
||||
BuildRequires: doxygen
|
||||
BuildRequires: libcmocka-devel
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: pkg-config
|
||||
BuildRequires: python3-breathe
|
||||
BuildRequires: python3-Sphinx
|
||||
BuildRequires: python3-Sphinx-doc
|
||||
BuildRequires: python3-sphinx_rtd_theme
|
||||
BuildRequires: python3-packaging
|
||||
BuildRequires: python3-ujson
|
||||
BuildRequires: valgrind
|
||||
|
||||
%description
|
||||
libcbor is a C library for parsing and generating CBOR, the general-purpose schema-less binary data format.
|
||||
|
||||
Main features:
|
||||
- Complete RFC conformance
|
||||
- Robust portable C99 implementation
|
||||
- Layered architecture offers both control and convenience
|
||||
- Flexible memory management
|
||||
- Proper handling of UTF-8
|
||||
- Full support for streams & incremental processing
|
||||
- Extensive documentation and test suite
|
||||
- No runtime dependencies, small footprint
|
||||
- Tested across architectures and operating systems
|
||||
|
||||
%package -n %{lname}
|
||||
Summary: A CBOR parsing library
|
||||
Group: System/Libraries
|
||||
|
||||
%description -n %{lname}
|
||||
libcbor is a C library for parsing and generating CBOR, the general-purpose schema-less binary data format.
|
||||
|
||||
Main features:
|
||||
- Complete RFC conformance
|
||||
- Robust portable C99 implementation
|
||||
- Layered architecture offers both control and convenience
|
||||
- Flexible memory management
|
||||
- Proper handling of UTF-8
|
||||
- Full support for streams & incremental processing
|
||||
- Extensive documentation and test suite
|
||||
- No runtime dependencies, small footprint
|
||||
- Tested across architectures and operating systems
|
||||
|
||||
|
||||
%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
|
||||
sed -i 's|${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}/pkgconfig|${CMAKE_INSTALL_LIBDIR}/pkgconfig|' src/CMakeLists.txt
|
||||
|
||||
%build
|
||||
mkdir -p doc/build/doxygen
|
||||
doxygen
|
||||
make %{?_smp_mflags} -C doc man
|
||||
%cmake .. -DCMAKE_BUILD_TYPE=Release -DWITH_TESTS=ON
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
%cmake_install
|
||||
mkdir -p %{buildroot}%{_mandir}/man1
|
||||
cp doc/build/man/* %{buildroot}%{_mandir}/man1
|
||||
|
||||
%post -n %{lname} -p /sbin/ldconfig
|
||||
|
||||
%postun -n %{lname} -p /sbin/ldconfig
|
||||
|
||||
%files -n %{lname}
|
||||
%doc README.md
|
||||
%{_mandir}/*/*
|
||||
%{_libdir}/libcbor.so.%{SONAME}
|
||||
%{_libdir}/libcbor.so.%{SONAME}.?.?
|
||||
|
||||
%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
|
||||
%license LICENSE.md
|
||||
|
||||
%changelog
|
Loading…
x
Reference in New Issue
Block a user