Skip to content

Commit

Permalink
OpenSSL 3.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
philyuchkoff authored Oct 22, 2024
1 parent 7293a2d commit ad38e96
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions install-openssl_3.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ yum -y install \
yum -y remove openssl

# Get openssl tarball
# curl -O --silent https://www.openssl.org/source/openssl-3.3.1.tar.gz
wget https://www.openssl.org/source/openssl-3.3.1.tar.gz
# curl -O --silent https://www.openssl.org/source/openssl-3.4.0.tar.gz
wget https://www.openssl.org/source/openssl-3.4.0.tar.gz

# SPEC file
cat << 'EOF' > ~/openssl/openssl3.spec
Summary: OpenSSL 3.3.1 for Centos
Summary: OpenSSL 3.4.0 for Centos
Name: openssl
Version: %{?version}%{!?version:3.3.1}
Version: %{?version}%{!?version:3.4.0}
Release: 1%{?dist}
Obsoletes: %{name} <= %{version}
Provides: %{name} = %{version}
Expand All @@ -41,15 +41,15 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
%description
https://github.com/philyuchkoff/openssl-RPM-Builder
OpenSSL RPM for version 3.3.1 on CentOS
OpenSSL RPM for version 3.4.0 on CentOS
%package devel
Summary: Development files for programs which will use the openssl library
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%description devel
OpenSSL RPM for version 3.3.1 on CentOS (development package)
OpenSSL RPM for version 3.4.0 on CentOS (development package)
%prep
%setup -q
Expand Down Expand Up @@ -91,8 +91,8 @@ EOF
mkdir -p /root/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
cp ~/openssl/openssl3.spec /root/rpmbuild/SPECS/openssl.spec

mv openssl-3.3.1.tar.gz /root/rpmbuild/SOURCES
mv openssl-3.4.0.tar.gz /root/rpmbuild/SOURCES
cd /root/rpmbuild/SPECS && \
rpmbuild \
-D "version 3.3.1" \
-D "version 3.4.0" \
-ba openssl.spec

0 comments on commit ad38e96

Please sign in to comment.