From 28a6a3c201c258f530b3ed50aad142f38be7e67a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BB=98=E5=96=84=E5=BA=86?= Date: Mon, 28 Feb 2022 01:09:33 +0000 Subject: [PATCH] add subpackage perl (cherry picked from commit 6c0fbdf5e0d0a70be16c749fcaa89f3c67c32c12) --- openssl.spec | 40 ++++++++++++++++++++++++++++------------ 1 file changed, 28 insertions(+), 12 deletions(-) diff --git a/openssl.spec b/openssl.spec index a32e314..8bee560 100644 --- a/openssl.spec +++ b/openssl.spec @@ -2,7 +2,7 @@ Name: openssl Epoch: 1 Version: 1.1.1m -Release: 1 +Release: 2 Summary: Cryptography and SSL/TLS Toolkit License: OpenSSL and SSLeay URL: https://www.openssl.org/ @@ -12,11 +12,7 @@ Patch1: openssl-1.1.1-build.patch Patch2: openssl-1.1.1-fips.patch BuildRequires: gcc perl make lksctp-tools-devel coreutils util-linux zlib-devel - -Requires: coreutils perl %{name}-libs%{?_isa} = %{epoch}:%{version}-%{release} -Obsoletes: openssl-perl < %{epoch}:%{version}-%{release} -Provides: openssl-perl = %{epoch}:%{version}-%{release} -Provides: openssl-perl%{_isa} = %{epoch}:%{version}-%{release} +Requires: coreutils %{name}-libs%{?_isa} = %{epoch}:%{version}-%{release} %description OpenSSL is a robust, commercial-grade, and full-featured toolkit for the @@ -37,6 +33,16 @@ The openssl-libs package contains the libraries that are used by various applications which support cryptographic algorithms and protocols. +%package perl +Summary: Perl scripts provided with OpenSSL +Requires: perl-interpreter +Requires: %{name}%{?_isa} = %{epoch}:%{version}-%{release} + +%description perl +OpenSSL is a toolkit for supporting cryptography. The openssl-perl +package provides Perl scripts for converting certificates and keys +from other formats to the formats used by the OpenSSL toolkit. + %package devel Summary: Development files for openssl Requires: %{name}-libs%{?_isa} = %{epoch}:%{version}-%{release} @@ -152,12 +158,7 @@ make test || : %license LICENSE %doc AUTHORS CHANGES FAQ NEWS README %{_pkgdocdir}/Makefile.certificate -%dir %{_sysconfdir}/pki/CA -%dir %{_sysconfdir}/pki/CA/private -%dir %{_sysconfdir}/pki/CA/certs -%dir %{_sysconfdir}/pki/CA/crl -%dir %{_sysconfdir}/pki/CA/newcerts -%{_bindir}/* +%{_bindir}/openssl %files libs %defattr(-,root,root) @@ -192,7 +193,22 @@ make test || : %{_mandir}/man7/* %{_pkgdocdir}/html/ +%files perl +%{_bindir}/c_rehash +%{_bindir}/*.pl +%{_bindir}/tsget +%dir %{_sysconfdir}/pki/CA +%dir %{_sysconfdir}/pki/CA/private +%dir %{_sysconfdir}/pki/CA/certs +%dir %{_sysconfdir}/pki/CA/crl +%dir %{_sysconfdir}/pki/CA/newcerts + +%ldconfig_scriptlets libs + %changelog +* Thu Feb 17 2022 fushanqing - 1:1.1.1m-2 +- add subpackage openssl-perl + * Tue Dec 28 2021 Buildteam - 1:1.1.1m-1 - update openssl-1.1.1l to openssl-1.1.1m -- Gitee