diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-10-01 13:26:40 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-10-01 13:26:40 +0000 |
| commit | e897a9364d5f3e6c6763bf0772fbd8e4782e85d3 (patch) | |
| tree | 712abb6d4a14d895cc63c46caa28bc790222964b /openssl.spec | |
| parent | dc43a3a24b9bc6d223e5f1a0c8ce9f08e44cb9cf (diff) | |
automatic import of openssl
Diffstat (limited to 'openssl.spec')
| -rw-r--r-- | openssl.spec | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/openssl.spec b/openssl.spec new file mode 100644 index 0000000..3831031 --- /dev/null +++ b/openssl.spec @@ -0,0 +1,61 @@ +Summary: OpenSSL 3.1.3 for OpenEuler +Name: openssl +Version: 3.1.3 +Release: 20.oe2023sp1 +Obsoletes: %{name} <= %{version} +Provides: %{name} = %{version} +URL: https://www.openssl.org/ +License: OpenSSL and SSLeay +Packager: YanShunwen <yansw@sino-telecom.com> +Vendor: YanShunwen +Source: https://www.openssl.org/source/%{name}-%{version}.tar.gz +BuildRequires: make gcc perl perl-libwww-perl +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root +%global openssldir /usr/openssl +%description +OpenSSL +%package devel +Summary: Cryptography and SSL/TLS Toolkit +Group: System Environment/Libraries +Requires: %{name} = %{version}-%{release} +%description devel +OpenSSL is a robust, commercial-grade, and full-featured toolkit for the +Transport Layer Security (TLS) and Secure Sockets Layer (SSL) protocols. +%prep +%setup -q +%build +./config --prefix=%{openssldir} --openssldir=%{openssldir} +make %{?_smp_mflags} +%install +[ "%{buildroot}" != "/" ] && %{__rm} -rf %{buildroot} +%make_install DESTDIR=%{buildroot} +mkdir -p %{buildroot}%{_bindir} +mkdir -p %{buildroot}%{_libdir} +ln -sf %{openssldir}/lib/libssl.so.3 %{buildroot}%{_libdir} +ln -sf %{openssldir}/lib/libcrypto.so.3 %{buildroot}%{_libdir} +ln -sf %{openssldir}/bin/openssl %{buildroot}%{_bindir} + + +%clean +[ "%{buildroot}" != "/" ] && %{__rm} -rf %{buildroot} + + +%files +%{openssldir} +%defattr(-,root,root) +/usr/bin/openssl +/usr/lib64/libcrypto.so.3 +/usr/lib64/libssl.so.3 + + +%files devel +%{openssldir}/include/* +%defattr(-,root,root) + + +%post + +%postun -p /sbin/ldconfig + + +%changelog |
