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
|
|
|
#
|
2020-05-21 13:02:54 +02:00
|
|
|
# Copyright (c) 2020 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
|
2020-05-21 13:02:54 +02:00
|
|
|
Version: 1.4.0
|
2012-09-28 10:59:40 +02:00
|
|
|
Release: 0
|
2007-01-16 00:22:18 +01:00
|
|
|
Summary: A X.509 Library
|
2020-05-21 13:02:54 +02:00
|
|
|
License: (LGPL-3.0-or-later OR GPL-2.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
|
2014-11-25 22:45:44 +01:00
|
|
|
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
|
2016-05-12 09:44:55 +02:00
|
|
|
Source4: libksba.changes
|
2010-12-03 13:01:36 +01:00
|
|
|
BuildRequires: libgpg-error-devel >= 1.8
|
2020-05-21 13:02:54 +02:00
|
|
|
BuildRequires: pkgconfig
|
2014-11-25 22:45:44 +01:00
|
|
|
# FIXME: use proper Requires(pre/post/preun/...)
|
|
|
|
PreReq: %{install_info_prereq}
|
2010-12-03 13:01:36 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
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}"
|
|
|
|
|
2010-12-03 13:01:36 +01:00
|
|
|
make %{?_smp_mflags}
|
2007-01-16 00:22:18 +01:00
|
|
|
|
2008-01-12 02:54:42 +01:00
|
|
|
%check
|
2014-11-25 22:45:44 +01:00
|
|
|
make %{?_smp_mflags} check
|
2008-01-12 02:54:42 +01:00
|
|
|
|
2007-01-16 00:22:18 +01:00
|
|
|
%install
|
2016-05-12 09:44:55 +02:00
|
|
|
make %{?_smp_mflags} DESTDIR=%{buildroot} 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}
|
2007-01-16 00:22:18 +01:00
|
|
|
%defattr(-,root,root)
|
2018-02-26 10:33:56 +01:00
|
|
|
%license COPYING
|
|
|
|
%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
|
|
|
|
2008-09-26 14:58:25 +02:00
|
|
|
%post devel
|
|
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/ksba.info.gz
|
|
|
|
|
|
|
|
%postun devel
|
|
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/ksba.info.gz
|
|
|
|
|
2007-01-16 00:22:18 +01:00
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
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
|
|
|
|
%{_infodir}/ksba.info*
|
2007-01-16 00:22:18 +01:00
|
|
|
|
2007-08-02 22:35:06 +02:00
|
|
|
%changelog
|