File mingw64-libksba.spec of Package mingw64-libksba
#
# spec file for package mingw64-libksba
#
# 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/
#
Name: mingw64-libksba
Version: 1.6.0
Release: 0
Summary: A X.509 Library
License: GPL-2.0-or-later AND MIT
Group: Development/Libraries/C and C++
Url: http://www.gnupg.org/aegypten/
Source0: ftp://ftp.gnupg.org/gcrypt/libksba/libksba-%{version}.tar.bz2
Patch0: libksba-1.3.0-deffile.patch
#!BuildIgnore: post-build-checks
BuildRequires: mingw64-cross-binutils
BuildRequires: mingw64-cross-gcc
BuildRequires: mingw64-cross-pkg-config
BuildRequires: mingw64-filesystem >= 23
BuildRequires: mingw64-libgpg-error-devel
%_mingw64_package_header_debug
BuildArch: noarch
%description
KSBA is a library to simplify the task of working with X.509
certificates, CMS data, and related data.
%package -n mingw64-libksba8
Summary: A X.509 Library
Group: System/Libraries
Obsoletes: %{name}
Provides: %{name}
%description -n mingw64-libksba8
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 (development tools)
Group: Development/Libraries/C and C++
%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.
%_mingw64_debug_package
%prep
%setup -q -n libksba-%{version}
%patch -P 0 -p1 -b .deffile
%build
echo "lt_cv_deplibs_check_method='pass_all'" >>%{_mingw64_cache}
PATH="%{_mingw64_bindir}:$PATH" %{_mingw64_configure} \
--enable-shared --disable-static
%{_mingw64_make} RC=%{_mingw64_windres} %{?_smp_mflags} || %{_mingw64_make} RC=%{_mingw64_windres}
%install
make DESTDIR=%{buildroot} install
%files -n mingw64-libksba8
%defattr(-,root,root)
%{_mingw64_bindir}/libksba-8.dll
%files devel
%defattr(-,root,root)
%{_mingw64_bindir}/ksba-config
%{_mingw64_libdir}/libksba.dll.a
%{_mingw64_libdir}/libksba.def
%{_mingw64_libdir}/pkgconfig/ksba.pc
%{_mingw64_datadir}/aclocal/ksba.m4
%{_mingw64_infodir}/ksba.info*
%{_mingw64_includedir}/ksba.h
%changelog