mirror of
https://github.com/YellowJacketLinux/LFS.git
synced 2025-02-02 23:07:14 +08:00
initial checkin
This commit is contained in:
parent
be33d7becb
commit
6ecbf20b07
24
SOURCES/p11-kit-0.24.1-trust.patch
Normal file
24
SOURCES/p11-kit-0.24.1-trust.patch
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
diff -ur p11-kit-0.24.1.orig/trust/trust-extract-compat p11-kit-0.24.1/trust/trust-extract-compat
|
||||||
|
--- p11-kit-0.24.1.orig/trust/trust-extract-compat 2021-07-22 08:43:53.000000000 -0700
|
||||||
|
+++ p11-kit-0.24.1/trust/trust-extract-compat 2023-05-01 03:37:14.743909005 -0700
|
||||||
|
@@ -17,16 +17,8 @@
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
-echo "trust: the placeholder extract-compat command has not been customized by your distribution." >&2
|
||||||
|
+# Copy existing anchor modifications to /etc/ssl/local
|
||||||
|
+/usr/libexec/make-ca/copy-trust-modifications
|
||||||
|
|
||||||
|
-# You can use commands like this to extract data from trust modules
|
||||||
|
-# into appropriate locations for your distribution.
|
||||||
|
-#
|
||||||
|
-# trust extract --format=openssl-bundle --filter=ca-anchors \
|
||||||
|
-# --overwrite /tmp/openssl-bundle.pem
|
||||||
|
-# trust extract --format=pem-bundle --filter=ca-anchors --overwrite \
|
||||||
|
-# --purpose server-auth /tmp/server-auth-bundle.pem
|
||||||
|
-# trust extract --format=java-cacerts --filter=ca-anchors --overwrite \
|
||||||
|
-# --purpose server-auth /tmp/cacerts
|
||||||
|
-
|
||||||
|
-exit 1
|
||||||
|
+# Update trust stores
|
||||||
|
+/usr/sbin/make-ca -r
|
124
SPECS/libtasn1.spec
Normal file
124
SPECS/libtasn1.spec
Normal file
@ -0,0 +1,124 @@
|
|||||||
|
%if 0%{!?insinfo:1} == 1
|
||||||
|
%global insinfo /sbin/install-info
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%if 0%{?repo:1} == 1
|
||||||
|
%if "%{repo}" == "1.core."
|
||||||
|
%global novalgrind foo
|
||||||
|
%endif
|
||||||
|
%endif
|
||||||
|
|
||||||
|
Name: libtasn1
|
||||||
|
Version: 4.19.0
|
||||||
|
Release: %{?repo}0.rc1%{?dist}
|
||||||
|
Summary: DER/BER data following an ASN.1 schema
|
||||||
|
|
||||||
|
Group: System Environment/Libraries
|
||||||
|
License: LGPL-2.1-or-later
|
||||||
|
URL: https://www.gnu.org/software/libtasn1/
|
||||||
|
Source0: https://ftp.gnu.org/gnu/libtasn1/libtasn1-%{version}.tar.gz
|
||||||
|
|
||||||
|
%if 0%{?runtests:1} == 1
|
||||||
|
%if 0%{!?novalgrind:1} == 1
|
||||||
|
BuildRequires: valgrind
|
||||||
|
%endif
|
||||||
|
%endif
|
||||||
|
#Requires:
|
||||||
|
|
||||||
|
%description
|
||||||
|
Libtasn1 is the ASN.1 library used by GnuTLS, p11-kit and some other
|
||||||
|
packages. It was originally written by Fabio Fiorina, and now
|
||||||
|
maintained as a GNU package.
|
||||||
|
|
||||||
|
The goal of this implementation is to be highly portable, and only
|
||||||
|
require an ANSI C99 platform.
|
||||||
|
|
||||||
|
%package devel
|
||||||
|
Group: Development/Libraries
|
||||||
|
Summary: Development files for %{name}
|
||||||
|
License: LGPL-2.1-or-later
|
||||||
|
Requires: %{name} = %{version}-%{release}
|
||||||
|
Requires(post): %{insinfo}
|
||||||
|
Requires(preun): %{insinfo}
|
||||||
|
|
||||||
|
%description devel
|
||||||
|
This package contains the developer files necessary to compile software
|
||||||
|
that links against the libtasn1 library.
|
||||||
|
|
||||||
|
%package utils
|
||||||
|
Group: System Environment/Utilities
|
||||||
|
Summary: Application utilities for libtasn
|
||||||
|
License: GPL-3.0-or-later
|
||||||
|
Requires: %{name} = %{version}-%{release}
|
||||||
|
|
||||||
|
%description utils
|
||||||
|
This package includes the asn1Coding, asn1Decoding, and asn1Parser
|
||||||
|
utilities.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q
|
||||||
|
|
||||||
|
|
||||||
|
%build
|
||||||
|
%configure --disable-static
|
||||||
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
|
%check
|
||||||
|
%if 0%{?runtests:1} == 1
|
||||||
|
make check > %{name}-make.check.log 2>&1
|
||||||
|
%else
|
||||||
|
echo "make check not run during package build" > %{name}-make.check.log
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%install
|
||||||
|
make install DESTDIR=%{buildroot}
|
||||||
|
make -C doc/reference install-data-local
|
||||||
|
|
||||||
|
cp -p doc/COPYING ./GPL-3.0.txt
|
||||||
|
|
||||||
|
%post -p /sbin/ldconfig
|
||||||
|
%postun -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%post devel
|
||||||
|
%{insinfo} %{_infodir}/libtasn1.info %{_infodir}/dir ||:
|
||||||
|
|
||||||
|
%preun devel
|
||||||
|
if [ $1 = 0 ]; then
|
||||||
|
%{insinfo} --delete %{_infodir}/libtasn1.info %{_infodir}/dir ||:
|
||||||
|
fi
|
||||||
|
|
||||||
|
%files
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%attr(0755,root,root) %{_libdir}/libtasn1.so.6.6.3
|
||||||
|
%{_libdir}/libtasn1.so.6
|
||||||
|
%license COPYING doc/COPYING.LESSER AUTHORS
|
||||||
|
%doc COPYING doc/COPYING.LESSER ChangeLog NEWS README.md THANKS
|
||||||
|
%doc %{name}-make.check.log
|
||||||
|
|
||||||
|
%files devel
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%attr(0644,root,root) %{_includedir}/libtasn1.h
|
||||||
|
%{_libdir}/libtasn1.so
|
||||||
|
%attr(0644,root,root) %{_libdir}/pkgconfig/libtasn1.pc
|
||||||
|
%exclude %{_infodir}/dir
|
||||||
|
%attr(0644,root,root) %{_infodir}/libtasn1.info*
|
||||||
|
%attr(0644,root,root) %{_mandir}/man3/*.3*
|
||||||
|
%license COPYING doc/COPYING.LESSER AUTHORS
|
||||||
|
%doc COPYING doc/COPYING.LESSER ChangeLog NEWS README.md THANKS
|
||||||
|
|
||||||
|
%files utils
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%attr(0755,root,root) %{_bindir}/asn1Coding
|
||||||
|
%attr(0755,root,root) %{_bindir}/asn1Decoding
|
||||||
|
%attr(0755,root,root) %{_bindir}/asn1Parser
|
||||||
|
%attr(0644,root,root) %{_mandir}/man1/asn1Coding.1*
|
||||||
|
%attr(0644,root,root) %{_mandir}/man1/asn1Decoding.1*
|
||||||
|
%attr(0644,root,root) %{_mandir}/man1/asn1Parser.1*
|
||||||
|
%license COPYING GPL-3.0.txt
|
||||||
|
%doc COPYING GPL-3.0.txt ChangeLog NEWS README.md THANKS
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Mon May 01 2023 Michael A. Peters <anymouseprophet@gmail.com> - 4.19.0-0.rc1
|
||||||
|
- Initial spec file for YJL (RPM bootstrapping LFS/BLFS 11.3)
|
119
SPECS/p11-kit.spec
Normal file
119
SPECS/p11-kit.spec
Normal file
@ -0,0 +1,119 @@
|
|||||||
|
# FIXME - bash-completion missing
|
||||||
|
|
||||||
|
Name: p11-kit
|
||||||
|
Version: 0.24.1
|
||||||
|
Release: 1%{?dist}
|
||||||
|
Summary: load and enumerate PKCS#11 modules
|
||||||
|
|
||||||
|
Group: System Environment/Utilities
|
||||||
|
License: BSD-3-Clause
|
||||||
|
URL: https://p11-glue.github.io/p11-glue/p11-kit.html
|
||||||
|
Source0: https://github.com/p11-glue/p11-kit/releases/download/%{version}/p11-kit-%{version}.tar.xz
|
||||||
|
Patch0: p11-kit-0.24.1-trust.patch
|
||||||
|
|
||||||
|
BuildRequires: libffi-devel
|
||||||
|
BuildRequires: libtasn1-devel
|
||||||
|
BuildRequires: libxslt-devel
|
||||||
|
BuildRequires: meson
|
||||||
|
BuildRequires: ninja
|
||||||
|
Requires: nss
|
||||||
|
Requires: make-ca
|
||||||
|
Requires: %{name}-libs = %{version}-%{release}
|
||||||
|
|
||||||
|
%description
|
||||||
|
p11-kit provides a way to load and enumerate PKCS#11 modules. It provides
|
||||||
|
a standard configuration setup for installing PKCS#11 modules in such
|
||||||
|
a way that they are discoverable.
|
||||||
|
|
||||||
|
%package libs
|
||||||
|
Group: System Environment/Libraries
|
||||||
|
Summary: %{name} shared libraries
|
||||||
|
|
||||||
|
%description libs
|
||||||
|
This package containst the %{name} shared libraries.
|
||||||
|
|
||||||
|
%package devel
|
||||||
|
Group: Development/Libraries
|
||||||
|
Summary: Development files for %{name}
|
||||||
|
Requires: %{name}-libs = %{version}-%{release}
|
||||||
|
|
||||||
|
%description devel
|
||||||
|
This package contains the developer files necessary to compile software
|
||||||
|
that links against the %{name} libraries.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q
|
||||||
|
%patch 0 -p1
|
||||||
|
|
||||||
|
|
||||||
|
%build
|
||||||
|
mkdir p11-build
|
||||||
|
cd p11-build
|
||||||
|
|
||||||
|
meson --prefix=%{_prefix} \
|
||||||
|
--buildtype=release \
|
||||||
|
-Dtrust_paths=/etc/pki/anchors
|
||||||
|
|
||||||
|
ninja
|
||||||
|
|
||||||
|
|
||||||
|
%check
|
||||||
|
cd p11-build
|
||||||
|
ninja test > %{name}-ninja.test.log 2>&1
|
||||||
|
|
||||||
|
|
||||||
|
%install
|
||||||
|
cd p11-build
|
||||||
|
DESTDIR=%{buildroot} ninja install
|
||||||
|
%find_lang %{name}
|
||||||
|
ln -sf ../libexec/p11-kit/trust-extract-compat \
|
||||||
|
%{buildroot}%{_bindir}/update-ca-certificates
|
||||||
|
|
||||||
|
ln -sf ./pkcs11/p11-kit-trust.so %{buildroot}%{_libdir}/libnssckbi.so
|
||||||
|
|
||||||
|
%post libs -p /sbin/ldconfig
|
||||||
|
%postun libs -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%files -f p11-build/%{name}.lang
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%dir %{_sysconfdir}/pkcs11
|
||||||
|
%attr(0644,root,root) %{_sysconfdir}/pkcs11/pkcs11.conf.example
|
||||||
|
%attr(0755,root,root) %{_bindir}/p11-kit
|
||||||
|
%attr(0755,root,root) %{_bindir}/trust
|
||||||
|
%{_bindir}/update-ca-certificates
|
||||||
|
%dir %{_libexecdir}/p11-kit
|
||||||
|
%attr(0755,root,root) %{_libexecdir}/p11-kit/p11-kit-remote
|
||||||
|
%attr(0755,root,root) %{_libexecdir}/p11-kit/p11-kit-server
|
||||||
|
%attr(0755,root,root) %{_libexecdir}/p11-kit/trust-extract-compat
|
||||||
|
%dir %{_datadir}/p11-kit
|
||||||
|
%dir %{_datadir}/p11-kit/modules
|
||||||
|
%attr(0644,root,root) %{_datadir}/p11-kit/modules/p11-kit-trust.module
|
||||||
|
%license COPYING
|
||||||
|
%doc AUTHORS ChangeLog COPYING NEWS README
|
||||||
|
%doc p11-build/%{name}-ninja.test.log
|
||||||
|
|
||||||
|
%files libs
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%attr(0755,root,root) %{_libdir}/libp11-kit.so.0.3.0
|
||||||
|
%{_libdir}/libp11-kit.so.0
|
||||||
|
%{_libdir}/libnssckbi.so
|
||||||
|
%{_libdir}/p11-kit-proxy.so
|
||||||
|
%dir %{_libdir}/pkcs11
|
||||||
|
%attr(0755,root,root) %{_libdir}/pkcs11/p11-kit-client.so
|
||||||
|
%attr(0755,root,root) %{_libdir}/pkcs11/p11-kit-trust.so
|
||||||
|
%license COPYING
|
||||||
|
%doc AUTHORS ChangeLog COPYING NEWS README
|
||||||
|
|
||||||
|
%files devel
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%dir %{_includedir}/p11-kit-1
|
||||||
|
%dir %{_includedir}/p11-kit-1/p11-kit
|
||||||
|
%attr(0644,root,root) %{_includedir}/p11-kit-1/p11-kit/*.h
|
||||||
|
%{_libdir}/libp11-kit.so
|
||||||
|
%attr(0644,root,root) %{_libdir}/pkgconfig/p11-kit-1.pc
|
||||||
|
%license COPYING
|
||||||
|
%doc AUTHORS ChangeLog COPYING NEWS README
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Mon May 1 2023 Michael A. Peters <anymouseprophet@gmail.com> - 0.24.1-0.rc1
|
||||||
|
- Initial spec file for YJL (RPM bootstrapping LFS/BLFS 11.3)
|
Loading…
Reference in New Issue
Block a user