libksba/libksba.spec
Dirk Mueller 0e809cc387 Accepting request 807540 from home:pmonrealgonzalez:branches:Base:System
- libksba 1.4.0:
 * Supports ECDSA and EdDSA certificate creation and parsing.
 * Supports ECDH enveloped data.
 * Supports ECDSA and EdDSA signed data.
 * Supports rsaPSS signature verification.
 * Supports standard file descriptors in ksba_reader_read.
 * Allows for optional elements in keyinfo objects.
 * Fixes error detection in the CMS parser.
 * Fixes memory leak in ksba_cms_identify.
 * New constants KSBA_VERSION and KSBA_VERSION_NUMBER.
 * New API to make creation of DER objects easy.
 * Interface changes relative to the 1.3.5 release:
   KSBA_VERSION                     NEW.
   KSBA_VERSION_NUMBER              NEW.
   KSBA_CT_SPC_IND_DATA_CTX         NEW.
   KSBA_CLASS_*                     NEW.
   KSBA_TYPE_*                      NEW.
   ksba_der_t                       NEW.
   ksba_der_release                 NEW.
   ksba_der_builder_new             NEW.
   ksba_der_builder_reset           NEW.
   ksba_der_add_ptr                 NEW.
   ksba_der_add_val                 NEW.
   ksba_der_add_int                 NEW.
   ksba_der_add_oid                 NEW.
   ksba_der_add_bts                 NEW.
   ksba_der_add_der                 NEW.
   ksba_der_add_tag                 NEW.
   ksba_der_add_end                 NEW.
   ksba_der_builder_get             NEW.

OBS-URL: https://build.opensuse.org/request/show/807540
OBS-URL: https://build.opensuse.org/package/show/Base:System/libksba?expand=0&rev=40
2020-05-21 11:02:54 +00:00

109 lines
3.2 KiB
RPMSpec

#
# spec file for package libksba
#
# Copyright (c) 2020 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 soname 8
Name: libksba
Version: 1.4.0
Release: 0
Summary: A X.509 Library
License: (LGPL-3.0-or-later OR GPL-2.0-or-later) AND GPL-3.0-or-later AND MIT
Group: Development/Libraries/C and C++
URL: https://www.gnupg.org
Source: ftp://ftp.gnupg.org/gcrypt/libksba/%{name}-%{version}.tar.bz2
Source2: ftp://ftp.gnupg.org/gcrypt/libksba/%{name}-%{version}.tar.bz2.sig
Source3: libksba.keyring
Source4: libksba.changes
BuildRequires: libgpg-error-devel >= 1.8
BuildRequires: pkgconfig
# FIXME: use proper Requires(pre/post/preun/...)
PreReq: %{install_info_prereq}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
KSBA is a library to simplify the task of working with X.509
certificates, CMS data, and related data.
%package -n %{name}%{soname}
Summary: A X.509 Library
Group: Development/Libraries/C and C++
Provides: %{name} = %{version}
Obsoletes: %{name} < %{version}
%description -n %{name}%{soname}
KSBA is a library to simplify the task of working with X.509
certificates, CMS data, and related data.
%package devel
Summary: A X.509 Library
Group: Development/Libraries/C and C++
Requires: libgpg-error-devel
Requires: libksba = %{version}
Provides: libksba:%{_includedir}/ksba.h
%description devel
KSBA is a library to simplify the task of working with X.509
certificates, CMS data, and related data.
This package contains the needed files to compile and link against the
libksba.
%prep
%setup -q -n libksba-%{version}
%build
build_timestamp=$(date -u +%{Y}-%{m}-%{dT}%{H}:%{M}+0000 -r %{SOURCE4})
%configure \
--disable-static \
--with-pic \
--enable-build-timestamp="${build_timestamp}"
make %{?_smp_mflags}
%check
make %{?_smp_mflags} check
%install
make %{?_smp_mflags} DESTDIR=%{buildroot} install
find %{buildroot} -type f -name "*.la" -delete -print
%post -n %{name}%{soname} -p /sbin/ldconfig
%postun -n %{name}%{soname} -p /sbin/ldconfig
%files -n %{name}%{soname}
%defattr(-,root,root)
%license COPYING
%doc README AUTHORS ChangeLog NEWS THANKS TODO
%{_libdir}/libksba*.so.*
%post devel
%install_info --info-dir=%{_infodir} %{_infodir}/ksba.info.gz
%postun devel
%install_info_delete --info-dir=%{_infodir} %{_infodir}/ksba.info.gz
%files devel
%defattr(-,root,root)
%{_bindir}/ksba-config
%{_libdir}/libksba*.so
%{_libdir}/pkgconfig/ksba.pc
%{_includedir}/ksba.h
%{_datadir}/aclocal/ksba.m4
%{_infodir}/ksba.info*
%changelog