Created
December 31, 2019 14:07
-
-
Save Kungergely/3976a99bd667cf0be07b276a46e460c3 to your computer and use it in GitHub Desktop.
Dockerfile for rebuilding openssl-1.1.1 on CentOS 8 to obtain the static subpackage of the build as well
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM centos:8 | |
RUN mkdir -p /root/rpmbuild/{BUILD,BUILDROOT,RPMS,SOURCES,SPECS,SRPMS} | |
RUN dnf -y --nogpgcheck install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm wget zip unzip bzip2 gcc gcc-c++ rpm-build make krb5-devel perl-interpreter zlib-devel lksctp-tools-devel perl-podlators perl-Test-Harness perl-Math-BigInt perl-Module-Load-Conditional perl-File-Temp perl-Time-HiRes perl-CPAN perl-Test-Simple | |
# The src.rpm can be obtained e.g. from http://vault.centos.org/8.0.1905/BaseOS/Source/SPackages/openssl-1.1.1-8.el8.src.rpm | |
COPY openssl-1.1.1-8.el8.src.rpm /root/rpmbuild/ | |
RUN cd /root/rpmbuild/ && \ | |
rpmbuild --rebuild openssl-1.1.1-8.el8.src.rpm | |
# Resulting packages: | |
# openssl-libs-debuginfo-1.1.1-8.el8.x86_64.rpm | |
# openssl-debugsource-1.1.1-8.el8.x86_64.rpm | |
# openssl-perl-1.1.1-8.el8.x86_64.rpm | |
# openssl-1.1.1-8.el8.x86_64.rpm | |
# openssl-debuginfo-1.1.1-8.el8.x86_64.rpm | |
# openssl-devel-1.1.1-8.el8.x86_64.rpm | |
# openssl-static-1.1.1-8.el8.x86_64.rpm | |
# openssl-libs-1.1.1-8.el8.x86_64.rpm |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment