2007-01-16 00:22:18 +01:00
|
|
|
#
|
2011-07-29 18:02:18 +02:00
|
|
|
# spec file for package libksba
|
2007-01-16 00:22:18 +01:00
|
|
|
#
|
2021-04-12 11:02:58 +02:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2007-01-16 00:22:18 +01:00
|
|
|
#
|
2008-09-26 14:58:25 +02:00
|
|
|
# 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.
|
|
|
|
|
2020-05-21 13:02:54 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2007-01-16 00:22:18 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2014-11-25 22:45:44 +01:00
|
|
|
%define soname 8
|
2007-01-16 00:22:18 +01:00
|
|
|
Name: libksba
|
2021-04-12 11:02:58 +02:00
|
|
|
Version: 1.5.1
|
2012-09-28 10:59:40 +02:00
|
|
|
Release: 0
|
2007-01-16 00:22:18 +01:00
|
|
|
Summary: A X.509 Library
|
2021-04-12 11:02:58 +02:00
|
|
|
License: (GPL-2.0-or-later OR LGPL-3.0-or-later) AND GPL-3.0-or-later AND MIT
|
2010-12-03 13:01:36 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2020-05-21 13:02:54 +02:00
|
|
|
URL: https://www.gnupg.org
|
2020-11-26 10:59:18 +01:00
|
|
|
Source: https://www.gnupg.org/ftp/gcrypt/libksba/%{name}-%{version}.tar.bz2
|
|
|
|
Source2: https://www.gnupg.org/ftp/gcrypt/libksba/%{name}-%{version}.tar.bz2.sig
|
|
|
|
# https://www.gnupg.org/signature_key.html
|
|
|
|
Source3: %{name}.keyring
|
2016-05-12 09:44:55 +02:00
|
|
|
Source4: libksba.changes
|
2020-05-21 13:02:54 +02:00
|
|
|
BuildRequires: pkgconfig
|
2020-11-26 10:59:18 +01:00
|
|
|
BuildRequires: pkgconfig(gpg-error) >= 1.8
|
2007-01-16 00:22:18 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
KSBA is a library to simplify the task of working with X.509
|
|
|
|
certificates, CMS data, and related data.
|
|
|
|
|
2012-09-28 10:59:40 +02:00
|
|
|
%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.
|
|
|
|
|
2007-01-16 00:22:18 +01:00
|
|
|
%package devel
|
|
|
|
Summary: A X.509 Library
|
|
|
|
Group: Development/Libraries/C and C++
|
2010-12-03 13:01:36 +01:00
|
|
|
Requires: libgpg-error-devel
|
|
|
|
Requires: libksba = %{version}
|
2014-11-25 22:45:44 +01:00
|
|
|
Provides: libksba:%{_includedir}/ksba.h
|
2007-01-16 00:22:18 +01:00
|
|
|
|
|
|
|
%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
|
2007-08-02 22:35:06 +02:00
|
|
|
%setup -q -n libksba-%{version}
|
2007-01-16 00:22:18 +01:00
|
|
|
|
|
|
|
%build
|
2016-05-12 09:44:55 +02:00
|
|
|
build_timestamp=$(date -u +%{Y}-%{m}-%{dT}%{H}:%{M}+0000 -r %{SOURCE4})
|
|
|
|
%configure \
|
|
|
|
--disable-static \
|
|
|
|
--with-pic \
|
|
|
|
--enable-build-timestamp="${build_timestamp}"
|
|
|
|
|
2020-11-26 10:59:18 +01:00
|
|
|
%make_build
|
2007-01-16 00:22:18 +01:00
|
|
|
|
2008-01-12 02:54:42 +01:00
|
|
|
%check
|
2020-11-26 10:59:18 +01:00
|
|
|
%make_build check
|
2008-01-12 02:54:42 +01:00
|
|
|
|
2007-01-16 00:22:18 +01:00
|
|
|
%install
|
2020-11-26 10:59:18 +01:00
|
|
|
%make_install
|
2014-11-25 22:45:44 +01:00
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
2007-01-16 00:22:18 +01:00
|
|
|
|
2012-09-28 10:59:40 +02:00
|
|
|
%post -n %{name}%{soname} -p /sbin/ldconfig
|
|
|
|
%postun -n %{name}%{soname} -p /sbin/ldconfig
|
2007-01-16 00:22:18 +01:00
|
|
|
|
2012-09-28 10:59:40 +02:00
|
|
|
%files -n %{name}%{soname}
|
2020-11-26 10:59:18 +01:00
|
|
|
%license COPYING*
|
2018-02-26 10:33:56 +01:00
|
|
|
%doc README AUTHORS ChangeLog NEWS THANKS TODO
|
2010-12-03 13:01:36 +01:00
|
|
|
%{_libdir}/libksba*.so.*
|
2007-01-16 00:22:18 +01:00
|
|
|
|
|
|
|
%files devel
|
2020-11-26 10:59:18 +01:00
|
|
|
%license COPYING*
|
2020-05-21 13:02:54 +02:00
|
|
|
%{_bindir}/ksba-config
|
2010-12-03 13:01:36 +01:00
|
|
|
%{_libdir}/libksba*.so
|
2020-05-21 13:02:54 +02:00
|
|
|
%{_libdir}/pkgconfig/ksba.pc
|
|
|
|
%{_includedir}/ksba.h
|
|
|
|
%{_datadir}/aclocal/ksba.m4
|
2020-11-26 10:59:18 +01:00
|
|
|
%{_infodir}/ksba.info%{?ext_info}
|
2007-01-16 00:22:18 +01:00
|
|
|
|
2007-08-02 22:35:06 +02:00
|
|
|
%changelog
|