Sync from SUSE:SLFO:Main libkmip revision 94b67e2f76214da289b101659e2400cb

This commit is contained in:
Adrian Schröter 2024-10-01 08:45:39 +02:00
commit 863714034d
4 changed files with 156 additions and 0 deletions

23
.gitattributes vendored Normal file
View 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

11
libkmip.changes Normal file
View File

@ -0,0 +1,11 @@
-------------------------------------------------------------------
Wed Jun 23 11:04:58 UTC 2021 - Jan Engelhardt <jengelh@inai.de>
- Trim old specfile constructs; use new macros.
- Wrap and trim description.
-------------------------------------------------------------------
Wed Jun 23 09:23:21 UTC 2021 - Marcus Meissner <meissner@suse.com>
- add a libkmip package, with KMIP key management library and tools.
(jsc#SLE-18267)

119
libkmip.spec Normal file
View File

@ -0,0 +1,119 @@
#
# spec file for package libkmip
#
# Copyright (c) 2021 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: libkmip
Version: 0.2.0
Release: 0
Summary: ISO C11 implementation of the Key Management Interoperability Protocol
License: Apache-2.0 OR BSD-3-Clause
Group: Productivity/Security
URL: https://github.com/OpenKMIP/libkmip
Source: https://github.com/OpenKMIP/libkmip/archive/refs/tags/v%{version}.tar.gz
BuildRequires: libopenssl-devel
%description
libkmip is an ISO C11 implementation of the Key Management
Interoperability Protocol (KMIP), an OASIS communication standard
for the management of objects stored and maintained by key
management systems.
%package -n libkmip0
Summary: ISO C11 implementation of the Key Management Interoperability Protocol
Group: System/Libraries
%description -n libkmip0
libkmip is an ISO C11 implementation of the Key Management
Interoperability Protocol (KMIP), an OASIS communication standard
for the management of objects stored and maintained by key
management systems. KMIP defines how key management operations
and operation data should be encoded and communicated, between
client and server applications. Supported operations include
creating, retrieving, and destroying keys. Supported object types
include symmetric and asymmetric encryption keys.
For more information on KMIP, check out the OASIS KMIP Technical
Committee and the OASIS KMIP Documentation.
This package contains the shared library.
%package devel
Summary: Header files for the Key Management Interoperability Protocol library
Group: Development/Languages/C and C++
Requires: libkmip0 = %{version}
%description devel
libkmip is an ISO C11 implementation of the Key Management
Interoperability Protocol (KMIP), an OASIS communication standard
for the management of objects stored and maintained by key
management systems.
This package contains the development headers and libraries.
%package tools
Summary: Tools for the Key Management Interoperability Protocol
Group: Development/Languages/C and C++
%description tools
libkmip is an ISO C11 implementation of the Key Management
Interoperability Protocol (KMIP), an OASIS communication standard
for the management of objects stored and maintained by key
management systems. KMIP defines how key management operations
and operation data should be encoded and communicated, between
client and server applications. Supported operations include
creating, retrieving, and destroying keys. Supported object types
include symmetric and asymmetric encryption keys.
This package contains various tools.
%prep
%autosetup -p1
%build
%make_build CFLAGS="%{optflags} -std=c11"
%install
%make_install PREFIX="%{_prefix}"
if [ "lib" != "%_lib" ];
then
mv %{buildroot}/%{_prefix}/lib %{buildroot}/%{_libdir}
fi
rm %{buildroot}/%{_libdir}/libkmip.a
mv %{buildroot}/%{_bindir}/kmip %{buildroot}/%{_libdir}/kmip/
rm -rf %{buildroot}/%{_prefix}/src
%post -n libkmip0 -p /sbin/ldconfig
%postun -n libkmip0 -p /sbin/ldconfig
%files -n libkmip0
%license LICENSE LICENSE.APACHE LICENSE.BSD
%{_libdir}/libkmip.so.0*
%files devel
%license LICENSE LICENSE.APACHE LICENSE.BSD
%dir %{_includedir}/kmip
%{_includedir}/kmip/*
%{_libdir}/libkmip.so
%files tools
%license LICENSE LICENSE.APACHE LICENSE.BSD
%dir /%{_libdir}/kmip
%{_libdir}/kmip/*
%doc %{_datadir}/doc/kmip
%changelog

BIN
v0.2.0.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.