File mingw64-p11-kit.spec of Package mingw64-p11-kit
#
# spec file for package mingw64-p11-kit
#
# Copyright (c) 2014 SUSE LINUX Products 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/
#
%define pkidir_cfg %{_mingw64_sysconfdir}/pki
%define pkidir_static %{_mingw64_datadir}/pki
%define trustdir_cfg %{pkidir_cfg}/trust
%define trustdir_static %{pkidir_static}/trust
%define realname p11-kit
Name: mingw64-%{realname}
Version: 0.25.5
Release: 0
Summary: Library to work with PKCS#11 modules
License: BSD-3-Clause
Group: Development/Libraries/C and C++
URL: https://p11-glue.freedesktop.org/p11-kit.html
Source0: https://github.com/p11-glue/%{realname}/releases/download/%{version}/%{realname}-%{version}.tar.xz
Source1: https://github.com/p11-glue/%{realname}/releases/download/%{version}/p11-kit-%{version}.tar.xz.sig
Source98: https://p11-glue.github.io/p11-glue/%{realname}/%{realname}-release-keyring.gpg#/%{realname}.keyring
BuildRequires: mingw64-cross-meson
BuildRequires: mingw64-cross-gcc
BuildRequires: mingw64-cross-pkg-config
BuildRequires: mingw64-libffi-devel >= 3.0.0
BuildRequires: mingw64-libtasn1-devel >= 2.3
%if 0%{?suse_version} >= 1600
BuildRequires: libtasn1-tools
%endif
Requires: %{name}-lang = %{version}
%_mingw64_package_header_debug
BuildArch: noarch
#!BuildIgnore: post-build-checks
%description
p11-kit provides a way to load and enumerate PKCS#11 modules, as well
as a standard configuration setup for installing PKCS#11 modules in
such a way that they're discoverable.
%package -n mingw64-libp11-kit0
Summary: Library to work with PKCS#11 modules
Group: System/Libraries
%description -n mingw64-libp11-kit0
p11-kit provides a way to load and enumerate PKCS#11 modules, as well
as a standard configuration setup for installing PKCS#11 modules in
such a way that they're discoverable.
%package tools
Summary: Library to work with PKCS#11 modules -- Tools
Group: Development/Libraries/C and C++
%description tools
p11-kit provides a way to load and enumerate PKCS#11 modules, as well
as a standard configuration setup for installing PKCS#11 modules in
such a way that they're discoverable.
%package devel
Summary: Library to work with PKCS#11 modules -- Development Files
Group: Development/Libraries/C and C++
%description devel
p11-kit provides a way to load and enumerate PKCS#11 modules, as well
as a standard configuration setup for installing PKCS#11 modules in
such a way that they're discoverable.
%_mingw64_debug_package
%lang_package
%prep
%autosetup -n %{realname}-%{version}
%build
%{_mingw64_meson} -Dtrust_paths=%{trustdir_cfg}:%{trustdir_static} \
-Dsystemd=disabled \
-Dbash_completion=disabled \
-Dgtk_doc=false \
-Dman=false \
-Dtest=false
%{_mingw64_meson_build}
%install
%{_mingw64_meson_install}
##
install -d m 755 %{buildroot}%{trustdir_cfg}/{anchors,blacklist}
install -d m 755 %{buildroot}%{trustdir_static}/{anchors,blacklist}
## Create pkcs11 config directory
test ! -e %{buildroot}%{_mingw64_sysconfdir}/pkcs11/modules
install -d %{buildroot}%{_mingw64_sysconfdir}/pkcs11/modules
#
rm -v %{buildroot}%{_mingw64_libdir}/pkcs11/p11-kit-trust.dll.a
%find_lang p11-kit
%files
%dir %{_mingw64_libdir}/pkcs11
%dir %{_mingw64_datadir}/p11-kit
%dir %{_mingw64_datadir}/p11-kit/modules
%dir %{pkidir_cfg}
%dir %{trustdir_cfg}
%dir %{trustdir_cfg}/anchors
%dir %{trustdir_cfg}/blacklist
%dir %{pkidir_static}
%dir %{trustdir_static}
%dir %{trustdir_static}/anchors
%dir %{trustdir_static}/blacklist
%{_mingw64_datadir}/p11-kit/modules/p11-kit-trust.module
%{_mingw64_libdir}/pkcs11/p11-kit-trust.dll
#
%dir %{_mingw64_libexecdir}/p11-kit
%{_mingw64_libexecdir}/p11-kit/trust-extract-compat
%{_mingw64_libexecdir}/p11-kit/p11-kit-remote.exe
%{_mingw64_libexecdir}/p11-kit/p11-kit-server.exe
%files lang -f p11-kit.lang
%files -n mingw64-libp11-kit0
%{_mingw64_sysconfdir}/pkcs11/pkcs11.conf.example
%dir %{_mingw64_sysconfdir}/pkcs11
%dir %{_mingw64_sysconfdir}/pkcs11/modules/
%{_mingw64_bindir}/libp11-kit-0.dll
%files tools
%{_mingw64_bindir}/p11-kit.exe
%{_mingw64_bindir}/trust.exe
%files devel
%{_mingw64_includedir}/p11-kit-1/
%{_mingw64_libdir}/libp11-kit.dll.a
%{_mingw64_libdir}/pkgconfig/p11-kit-1.pc
%changelog