Blame SPECS/mingw-openssl.spec

7779df
%?mingw_package_header
7779df
7779df
# For the curious:
7779df
# 0.9.5a soversion = 0
7779df
# 0.9.6  soversion = 1
7779df
# 0.9.6a soversion = 2
7779df
# 0.9.6c soversion = 3
7779df
# 0.9.7a soversion = 4
7779df
# 0.9.7ef soversion = 5
7779df
# 0.9.8ab soversion = 6
7779df
# 0.9.8g soversion = 7
7779df
# 0.9.8jk + EAP-FAST soversion = 8
7779df
# 1.0.0 soversion = 10
7779df
%global soversion 10
7779df
7779df
# Enable the tests.
7779df
# These only work some of the time, but fail randomly at other times
7779df
# (although I have had them complete a few times, so I don't think
7779df
# there is any actual problem with the binaries).
7779df
%global run_tests 0
7779df
7779df
# Number of threads to spawn when testing some threading fixes.
7779df
%global thread_test_threads %{?threads:%{threads}}%{!?threads:1}
7779df
7779df
Name:           mingw-openssl
7779df
Version:        1.0.2k
7779df
Release:        3%{?dist}
7779df
Summary:        MinGW port of the OpenSSL toolkit
7779df
7779df
License:        OpenSSL
7779df
Group:          Development/Libraries
7779df
URL:            http://www.openssl.org/
7779df
7779df
# We have to remove certain patented algorithms from the openssl source
7779df
# tarball with the hobble-openssl script which is included below.
7779df
# The original openssl upstream tarball cannot be shipped in the .src.rpm.
7779df
Source:         openssl-%{version}-hobbled.tar.xz
7779df
7779df
Source1:        hobble-openssl
7779df
Source2:        Makefile.certificate
7779df
Source6:        make-dummy-cert
7779df
Source7:        renew-dummy-cert
7779df
Source8:        openssl-thread-test.c
7779df
Source9:        opensslconf-new.h
7779df
Source10:       opensslconf-new-warning.h
7779df
Source11:       README.FIPS
7779df
Source12:       ec_curve.c
7779df
Source13:       ectest.c
7779df
7779df
# Build changes
7779df
Patch1:         openssl-1.0.2e-rpmbuild.patch
7779df
Patch2:         openssl-1.0.2a-defaults.patch
7779df
Patch4:         openssl-1.0.2i-enginesdir.patch
7779df
Patch5:         openssl-1.0.2a-no-rpath.patch
7779df
Patch6:         openssl-1.0.2a-test-use-localhost.patch
7779df
Patch7:         openssl-1.0.0-timezone.patch
7779df
Patch8:         openssl-1.0.1c-perlfind.patch
7779df
Patch9:         openssl-1.0.1c-aliasing.patch
7779df
# Bug fixes
7779df
Patch23:        openssl-1.0.2c-default-paths.patch
7779df
Patch24:        openssl-1.0.2a-issuer-hash.patch
7779df
# Functionality changes
7779df
Patch33:        openssl-1.0.0-beta4-ca-dir.patch
7779df
Patch34:        openssl-1.0.2a-x509.patch
7779df
Patch35:        openssl-1.0.2a-version-add-engines.patch
7779df
# Patch39:        openssl-1.0.2a-ipv6-apps.patch
7779df
Patch40:        openssl-1.0.2i-fips.patch
7779df
Patch43:        openssl-1.0.2j-krb5keytab.patch
7779df
Patch45:        openssl-1.0.2a-env-zlib.patch
7779df
Patch47:        openssl-1.0.2a-readme-warning.patch
7779df
Patch49:        openssl-1.0.1i-algo-doc.patch
7779df
Patch50:        openssl-1.0.2a-dtls1-abi.patch
7779df
# Patch51:        openssl-1.0.2a-version.patch
7779df
# Patch56:        openssl-1.0.2a-rsa-x931.patch
7779df
Patch58:        openssl-1.0.2a-fips-md5-allow.patch
7779df
Patch60:        openssl-1.0.2a-apps-dgst.patch
7779df
# Patch63:        openssl-1.0.2k-starttls.patch
7779df
Patch65:        openssl-1.0.2i-chil-fixes.patch
7779df
Patch66:        openssl-1.0.2h-pkgconfig.patch
7779df
# Patch68:        openssl-1.0.2i-secure-getenv.patch
7779df
# Patch70:        openssl-1.0.2a-fips-ec.patch
7779df
Patch71:        openssl-1.0.2g-manfix.patch
7779df
# Patch72:        openssl-1.0.2a-fips-ctor.patch
7779df
Patch73:        openssl-1.0.2c-ecc-suiteb.patch
7779df
Patch74:        openssl-1.0.2j-deprecate-algos.patch
7779df
Patch75:        openssl-1.0.2a-compat-symbols.patch
7779df
# Patch76:        openssl-1.0.2j-new-fips-reqs.patch
7779df
Patch77:        openssl-1.0.2j-downgrade-strength.patch
7779df
Patch78:        openssl-1.0.2k-cc-reqs.patch
7779df
Patch90:        openssl-1.0.2i-enc-fail.patch
7779df
Patch94:        openssl-1.0.2d-secp256k1.patch
7779df
Patch95:        openssl-1.0.2e-remove-nistp224.patch
7779df
Patch96:        openssl-1.0.2e-speed-doc.patch
7779df
Patch97:        openssl-1.0.2k-no-ssl2.patch
7779df
Patch98:        openssl-1.0.2k-long-hello.patch
7779df
# Patch99:        openssl-1.0.2k-fips-randlock.patch
7779df
# Backported fixes including security fixes
7779df
Patch80:        openssl-1.0.2e-wrap-pad.patch
7779df
Patch81:        openssl-1.0.2a-padlock64.patch
7779df
Patch82:        openssl-1.0.2i-trusted-first-doc.patch
7779df
Patch83:        openssl-1.0.2k-backports.patch
7779df
Patch84:        openssl-1.0.2k-ppc-update.patch
7779df
Patch85:        openssl-1.0.2k-req-x509.patch
7779df
Patch86:        openssl-1.0.2k-cve-2017-3736.patch
7779df
Patch87:        openssl-1.0.2k-cve-2017-3737.patch
7779df
Patch88:        openssl-1.0.2k-cve-2017-3738.patch
7779df
Patch89:        openssl-1.0.2k-s390x-update.patch
7779df
Patch100:       openssl-1.0.2k-name-sensitive.patch
7779df
Patch101:       openssl-1.0.2k-cve-2017-3735.patch
7779df
Patch102:       openssl-1.0.2k-cve-2018-0732.patch
7779df
Patch103:       openssl-1.0.2k-cve-2018-0737.patch
7779df
Patch104:       openssl-1.0.2k-cve-2018-0739.patch
7779df
Patch105:       openssl-1.0.2k-cve-2018-0495.patch
7779df
7779df
# MinGW-specific patches.
7779df
# Rename *eay32.dll to lib*.dll
7779df
Patch1001:      mingw32-openssl-1.0.0-beta3-libversion.patch
7779df
# Fix engines/ install target after lib rename
7779df
Patch1002:      mingw32-openssl-1.0.2a-sfx.patch
7779df
# Some .c file contains in #include <dlfcn.h> while it
7779df
# doesn't really use anything from that header
7779df
Patch1003:      mingw-openssl-drop-unneeded-reference-to-dlfcn-h.patch
7779df
# Mingw-w64 compatibility patch
7779df
Patch1004:      openssl_mingw64_install_fix.patch
7779df
# Prevent a build failure which occurs because we don't have FIPS enabled
7779df
Patch1005:      mingw-openssl-fix-fips-build-failure.patch
7779df
# The function secure_getenv is a GNU extension which isn't available on Windows
7779df
Patch1006:      openssl-mingw64-dont-use-secure-getenv.patch
7779df
# Don't include the old winsock.h as it will cause warnings/errors in packages
7779df
# using the openssl headers like: Please include winsock2.h before windows.h
7779df
Patch1007:      openssl-dont-include-winsock-h.patch
7779df
7779df
BuildArch:      noarch
7779df
ExclusiveArch: %{ix86} x86_64
7779df
7779df
BuildRequires:  mingw32-filesystem >= 95
7779df
BuildRequires:  mingw32-gcc
7779df
BuildRequires:  mingw32-binutils
7779df
BuildRequires:  mingw32-zlib
7779df
7779df
BuildRequires:  mingw64-filesystem >= 95
7779df
BuildRequires:  mingw64-gcc
7779df
BuildRequires:  mingw64-binutils
7779df
BuildRequires:  mingw64-zlib
7779df
7779df
BuildRequires:  perl-interpreter
7779df
BuildRequires:  sed
7779df
BuildRequires:  /usr/bin/cmp
7779df
BuildRequires:  lksctp-tools-devel
7779df
BuildRequires:  /usr/bin/rename
7779df
BuildRequires:  /usr/bin/pod2man
7779df
7779df
# XXX Not really sure about this one.  The build script uses
7779df
# /usr/bin/makedepend which comes from imake.
7779df
BuildRequires:  imake
7779df
7779df
%if %{run_tests}
7779df
# Required both to build, and to run the tests.
7779df
# XXX This needs to be fixed - cross-compilation should not
7779df
# require running executables.
7779df
BuildRequires:  wine
7779df
7779df
# Required to run the tests.
7779df
BuildRequires:  xorg-x11-server-Xvfb
7779df
%endif
7779df
7779df
7779df
%description
7779df
The OpenSSL toolkit provides support for secure communications between
7779df
machines. OpenSSL includes a certificate management tool and shared
7779df
libraries which provide various cryptographic algorithms and
7779df
protocols.
7779df
7779df
This package contains Windows (MinGW) libraries and development tools.
7779df
7779df
7779df
# Win32
7779df
%package -n mingw32-openssl
7779df
Summary:        MinGW port of the OpenSSL toolkit
7779df
#Requires:       ca-certificates >= 2008-5
7779df
Requires:       pkgconfig
7779df
7779df
%description -n mingw32-openssl
7779df
The OpenSSL toolkit provides support for secure communications between
7779df
machines. OpenSSL includes a certificate management tool and shared
7779df
libraries which provide various cryptographic algorithms and
7779df
protocols.
7779df
7779df
This package contains Windows (MinGW) libraries and development tools.
7779df
7779df
%package -n mingw32-openssl-static
7779df
Summary:        Static version of the MinGW port of the OpenSSL toolkit
7779df
Requires:       mingw32-openssl = %{version}-%{release}
7779df
7779df
%description -n mingw32-openssl-static
7779df
Static version of the MinGW port of the OpenSSL toolkit.
7779df
7779df
# Win64
7779df
%package -n mingw64-openssl
7779df
Summary:        MinGW port of the OpenSSL toolkit
7779df
#Requires:       ca-certificates >= 2008-5
7779df
Requires:       pkgconfig
7779df
7779df
%description -n mingw64-openssl
7779df
The OpenSSL toolkit provides support for secure communications between
7779df
machines. OpenSSL includes a certificate management tool and shared
7779df
libraries which provide various cryptographic algorithms and
7779df
protocols.
7779df
7779df
This package contains Windows (MinGW) libraries and development tools.
7779df
7779df
%package -n mingw64-openssl-static
7779df
Summary:        Static version of the MinGW port of the OpenSSL toolkit
7779df
Requires:       mingw64-openssl = %{version}-%{release}
7779df
7779df
%description -n mingw64-openssl-static
7779df
Static version of the MinGW port of the OpenSSL toolkit.
7779df
7779df
7779df
%?mingw_debug_package
7779df
7779df
7779df
%prep
7779df
%setup -q -n openssl-%{version}
7779df
7779df
# The hobble_openssl is called here redundantly, just to be sure.
7779df
# The tarball has already the sources removed.
7779df
%{SOURCE1} > /dev/null
7779df
7779df
cp %{SOURCE12} %{SOURCE13} crypto/ec/
7779df
7779df
%patch1 -p1 -b .rpmbuild
7779df
%patch2 -p1 -b .defaults
7779df
%patch4 -p1 -b .enginesdir %{?_rawbuild}
7779df
%patch5 -p1 -b .no-rpath
7779df
%patch6 -p1 -b .use-localhost
7779df
%patch7 -p1 -b .timezone
7779df
%patch8 -p1 -b .perlfind %{?_rawbuild}
7779df
%patch9 -p1 -b .aliasing
7779df
7779df
%patch23 -p1 -b .default-paths
7779df
%patch24 -p1 -b .issuer-hash
7779df
7779df
%patch33 -p1 -b .ca-dir
7779df
%patch34 -p1 -b .x509
7779df
%patch35 -p1 -b .version-add-engines
7779df
#patch39 -p1 -b .ipv6-apps
7779df
%patch40 -p1 -b .fips
7779df
%patch43 -p1 -b .krb5keytab
7779df
%patch45 -p1 -b .env-zlib
7779df
%patch47 -p1 -b .warning
7779df
%patch49 -p1 -b .algo-doc
7779df
%patch50 -p1 -b .dtls1-abi
7779df
#patch51 -p1 -b .version
7779df
#patch56 -p1 -b .x931
7779df
%patch58 -p1 -b .md5-allow
7779df
%patch60 -p1 -b .dgst
7779df
#patch63 -p1 -b .starttls
7779df
%patch65 -p1 -b .chil
7779df
%patch66 -p1 -b .pkgconfig
7779df
#patch68 -p1 -b .secure-getenv
7779df
#patch70 -p1 -b .fips-ec
7779df
%patch71 -p1 -b .manfix
7779df
#patch72 -p1 -b .fips-ctor
7779df
%patch73 -p1 -b .suiteb
7779df
%patch74 -p1 -b .deprecate-algos
7779df
%patch75 -p1 -b .compat
7779df
#patch76 -p1 -b .fips-reqs
7779df
%patch77 -p1 -b .strength
7779df
%patch78 -p1 -b .cc-reqs
7779df
%patch90 -p1 -b .enc-fail
7779df
%patch94 -p1 -b .secp256k1
7779df
%patch95 -p1 -b .nistp224
7779df
%patch96 -p1 -b .speed-doc
7779df
%patch97 -p1 -b .no-ssl2
7779df
%patch98 -p1 -b .long-hello
7779df
#patch99 -p1 -b .randlock
7779df
7779df
%patch80 -p1 -b .wrap
7779df
%patch81 -p1 -b .padlock64
7779df
%patch82 -p1 -b .trusted-first
7779df
%patch83 -p1 -b .backports
7779df
%patch84 -p1 -b .ppc-update
7779df
%patch85 -p1 -b .req-x509
7779df
%patch86 -p1 -b .mont5-carry
7779df
%patch87 -p1 -b .ssl-err
7779df
%patch88 -p1 -b .rsaz-overflow
7779df
%patch89 -p1 -b .s390x-update
7779df
%patch100 -p1 -b .name-sensitive
7779df
%patch101 -p1 -b .overread
7779df
%patch102 -p1 -b .large-dh
7779df
%patch103 -p1 -b .gen-timing
7779df
%patch104 -p1 -b .asn1-recursive
7779df
%patch105 -p1 -b .rohnp-fix
7779df
7779df
# MinGW specific patches
7779df
%patch1001 -p1 -b .mingw-libversion
7779df
%patch1002 -p1 -b .mingw-sfx
7779df
%patch1003 -p0 -b .dlfcn
7779df
%patch1004 -p0 -b .mingw64
7779df
%patch1005 -p1 -b .fips_mingw
7779df
%patch1006 -p1 -b .secure_getenv_mingw
7779df
%patch1007 -p0 -b .winsock
7779df
7779df
sed -i 's/SHLIB_VERSION_NUMBER "1.0.0"/SHLIB_VERSION_NUMBER "%{version}"/' crypto/opensslv.h
7779df
7779df
# Modify the various perl scripts to reference perl in the right location.
7779df
perl util/perlpath.pl `dirname %{__perl}`
7779df
7779df
# Generate a table with the compile settings for my perusal.
7779df
touch Makefile
7779df
make TABLE PERL=%{__perl}
7779df
7779df
# Create two copies of the source folder as OpenSSL doesn't support out of source builds
7779df
mkdir ../build_win32
7779df
mv * ../build_win32
7779df
mv ../build_win32 .
7779df
mkdir build_win64
7779df
cp -Rp build_win32/* build_win64
7779df
7779df
# Use mingw cflags instead of hardcoded ones
7779df
sed -i -e '/^"mingw"/ s/-fomit-frame-pointer -O3 -march=i486 -Wall/%{mingw32_cflags}/' build_win32/Configure
7779df
sed -i -e '/^"mingw"/ s/-O3 -Wall/%{mingw64_cflags}/' build_win64/Configure
7779df
7779df
7779df
%build
7779df
###############################################################################
7779df
# Win32
7779df
###############################################################################
7779df
pushd build_win32
7779df
7779df
PERL=%{__perl} \
7779df
./Configure \
7779df
  --prefix=%{mingw32_prefix} \
7779df
  --openssldir=%{mingw32_sysconfdir}/pki/tls \
7779df
  zlib enable-camellia enable-seed enable-tlsext enable-rfc3779 \
7779df
  enable-cms enable-md2 enable-rc5 \
7779df
  no-mdc2 no-ec2m no-gost no-srp \
7779df
  no-fips no-hw \
7779df
  --cross-compile-prefix=%{mingw32_target}- \
7779df
  --enginesdir=%{mingw32_libdir}/openssl/engines \
7779df
  shared mingw
7779df
7779df
# Regenerate def files as we disabled some algorithms above
7779df
perl util/mkdef.pl crypto ssl update
7779df
7779df
make depend
7779df
make all build-shared
7779df
7779df
# Generate hashes for the included certs.
7779df
make rehash build-shared
7779df
7779df
popd
7779df
7779df
###############################################################################
7779df
# Win64
7779df
###############################################################################
7779df
pushd build_win64
7779df
7779df
PERL=%{__perl} \
7779df
./Configure \
7779df
  --prefix=%{mingw64_prefix} \
7779df
  --openssldir=%{mingw64_sysconfdir}/pki/tls \
7779df
  zlib enable-camellia enable-seed enable-tlsext enable-rfc3779 \
7779df
  enable-cms enable-md2 \
7779df
  no-mdc2 no-rc5 no-ec2m no-gost no-srp \
7779df
  no-fips no-hw \
7779df
  --cross-compile-prefix=%{mingw64_target}- \
7779df
  --enginesdir=%{mingw64_libdir}/openssl/engines \
7779df
  shared mingw64
7779df
7779df
# Regenerate def files as we disabled some algorithms above
7779df
perl util/mkdef.pl crypto ssl update
7779df
7779df
make depend
7779df
make all build-shared
7779df
7779df
# Generate hashes for the included certs.
7779df
make rehash build-shared
7779df
7779df
popd
7779df
7779df
# Clean up the .pc files
7779df
for i in build_win{32,64}/libcrypto.pc build_win{32,64}/libssl.pc build_win{32,64}/openssl.pc ; do
7779df
  sed -i '/^Libs.private:/{s/-L[^ ]* //;s/-Wl[^ ]* //}' $i
7779df
done
7779df
7779df
7779df
%if %{run_tests}
7779df
%check
7779df
#----------------------------------------------------------------------
7779df
# Run some tests.
7779df
7779df
# We must revert patch33 before tests otherwise they will fail
7779df
patch -p1 -R < %{PATCH33}
7779df
7779df
# This is a bit of a hack, but the test scripts look for 'openssl'
7779df
# by name.
7779df
pushd build_win32/apps
7779df
ln -s openssl.exe openssl
7779df
popd
7779df
7779df
# This is useful for diagnosing Wine problems.
7779df
WINEDEBUG=+loaddll
7779df
export WINEDEBUG
7779df
7779df
# Make sure we can find the installed DLLs.
7779df
WINEDLLPATH=%{mingw32_bindir}
7779df
export WINEDLLPATH
7779df
7779df
# The tests run Wine and require an X server (but don't really use
7779df
# it).  Therefore we create a virtual framebuffer for the duration of
7779df
# the tests.
7779df
# XXX There is no good way to choose a random, unused display.
7779df
# XXX Setting depth to 24 bits avoids bug 458219.
7779df
unset DISPLAY
7779df
display=:21
7779df
Xvfb $display -screen 0 1024x768x24 -ac -noreset & xpid=$!
7779df
trap "kill -TERM $xpid ||:" EXIT
7779df
sleep 3
7779df
DISPLAY=$display
7779df
export DISPLAY
7779df
7779df
make LDCMD=%{mingw32_cc} -C build_win32/test apps tests
7779df
7779df
# Disable this thread test, because we don't have pthread on Windows.
7779df
%{mingw32_cc} -o openssl-thread-test \
7779df
  -I./build_win32/include \
7779df
  %-{_mingw32_cflags} \
7779df
  %-{SOURCE8} \
7779df
  -L./build_win32 \
7779df
  -lssl -lcrypto \
7779df
  -lpthread -lz -ldl
7779df
7779df
## `krb5-config --cflags`
7779df
## `krb5-config --libs`
7779df
#
7779df
./openssl-thread-test --threads %{thread_test_threads}
7779df
7779df
#----------------------------------------------------------------------
7779df
%endif
7779df
7779df
# Add generation of HMAC checksum of the final stripped library
7779df
##define __spec_install_post \
7779df
#    #{?__debug_package:#{__debug_install_post}} \
7779df
#    #{__arch_install_post} \
7779df
#    #{__os_install_post} \
7779df
#    fips/fips_standalone_sha1 $RPM_BUILD_ROOT/#{_lib}/libcrypto.so.#{version} >$RPM_BUILD_ROOT/#{_lib}/.libcrypto.so.#{version}.hmac \
7779df
#    ln -sf .libcrypto.so.#{version}.hmac $RPM_BUILD_ROOT/#{_lib}/.libcrypto.so.#{soversion}.hmac \
7779df
##{nil}
7779df
7779df
7779df
%install
7779df
mkdir -p $RPM_BUILD_ROOT%{mingw32_libdir}/openssl
7779df
mkdir -p $RPM_BUILD_ROOT%{mingw32_bindir}
7779df
mkdir -p $RPM_BUILD_ROOT%{mingw32_includedir}
7779df
mkdir -p $RPM_BUILD_ROOT%{mingw32_mandir}
7779df
7779df
mkdir -p $RPM_BUILD_ROOT%{mingw64_libdir}/openssl
7779df
mkdir -p $RPM_BUILD_ROOT%{mingw64_bindir}
7779df
mkdir -p $RPM_BUILD_ROOT%{mingw64_includedir}
7779df
mkdir -p $RPM_BUILD_ROOT%{mingw64_mandir}
7779df
7779df
%mingw_make_install INSTALL_PREFIX=$RPM_BUILD_ROOT build-shared
7779df
7779df
# Install the file applink.c (#499934)
7779df
install -m644 build_win32/ms/applink.c $RPM_BUILD_ROOT%{mingw32_includedir}/openssl/applink.c
7779df
install -m644 build_win64/ms/applink.c $RPM_BUILD_ROOT%{mingw64_includedir}/openssl/applink.c
7779df
7779df
# I have no idea why it installs the manpages in /etc, but
7779df
# we remove them anyway.
7779df
rm -r $RPM_BUILD_ROOT%{mingw32_sysconfdir}/pki/tls/man
7779df
rm -r $RPM_BUILD_ROOT%{mingw64_sysconfdir}/pki/tls/man
7779df
7779df
# Set permissions on lib*.dll.a so that strip works.
7779df
chmod 0755 $RPM_BUILD_ROOT%{mingw32_libdir}/libcrypto.dll.a
7779df
chmod 0755 $RPM_BUILD_ROOT%{mingw32_libdir}/libssl.dll.a
7779df
chmod 0755 $RPM_BUILD_ROOT%{mingw64_libdir}/libcrypto.dll.a
7779df
chmod 0755 $RPM_BUILD_ROOT%{mingw64_libdir}/libssl.dll.a
7779df
7779df
# Install a makefile for generating keys and self-signed certs, and a script
7779df
# for generating them on the fly.
7779df
mkdir -p $RPM_BUILD_ROOT%{mingw32_sysconfdir}/pki/tls/certs
7779df
install -m644 %{SOURCE2} $RPM_BUILD_ROOT%{mingw32_sysconfdir}/pki/tls/certs/Makefile
7779df
install -m755 %{SOURCE6} $RPM_BUILD_ROOT%{mingw32_sysconfdir}/pki/tls/certs/make-dummy-cert
7779df
install -m755 %{SOURCE7} $RPM_BUILD_ROOT%{mingw32_sysconfdir}/pki/tls/certs/renew-dummy-cert
7779df
7779df
mkdir -p $RPM_BUILD_ROOT%{mingw64_sysconfdir}/pki/tls/certs
7779df
install -m644 %{SOURCE2} $RPM_BUILD_ROOT%{mingw64_sysconfdir}/pki/tls/certs/Makefile
7779df
install -m755 %{SOURCE6} $RPM_BUILD_ROOT%{mingw64_sysconfdir}/pki/tls/certs/make-dummy-cert
7779df
install -m755 %{SOURCE7} $RPM_BUILD_ROOT%{mingw64_sysconfdir}/pki/tls/certs/renew-dummy-cert
7779df
7779df
# Pick a CA script.
7779df
pushd $RPM_BUILD_ROOT%{mingw32_sysconfdir}/pki/tls/misc
7779df
mv CA.sh CA
7779df
popd
7779df
7779df
pushd $RPM_BUILD_ROOT%{mingw64_sysconfdir}/pki/tls/misc
7779df
mv CA.sh CA
7779df
popd
7779df
7779df
mkdir -m700 $RPM_BUILD_ROOT%{mingw32_sysconfdir}/pki/CA
7779df
mkdir -m700 $RPM_BUILD_ROOT%{mingw32_sysconfdir}/pki/CA/private
7779df
7779df
mkdir -m700 $RPM_BUILD_ROOT%{mingw64_sysconfdir}/pki/CA
7779df
mkdir -m700 $RPM_BUILD_ROOT%{mingw64_sysconfdir}/pki/CA/private
7779df
7779df
# Exclude debug files from the main files (note: the debug files are only created after %%install, so we can't search for them directly)
7779df
find %{buildroot}%{mingw32_prefix} | grep -E '.(exe|dll|pyd)$' | sed 's|^%{buildroot}\(.*\)$|%%exclude \1.debug|' > mingw32-openssl.debugfiles
7779df
find %{buildroot}%{mingw64_prefix} | grep -E '.(exe|dll|pyd)$' | sed 's|^%{buildroot}\(.*\)$|%%exclude \1.debug|' > mingw64-openssl.debugfiles
7779df
7779df
7779df
# Win32
7779df
%files -n mingw32-openssl -f mingw32-openssl.debugfiles
7779df
%doc build_win32/LICENSE
7779df
%{mingw32_bindir}/openssl.exe
7779df
%{mingw32_bindir}/c_rehash
7779df
%{mingw32_bindir}/libcrypto-%{soversion}.dll
7779df
%{mingw32_bindir}/libssl-%{soversion}.dll
7779df
%{mingw32_libdir}/libcrypto.dll.a
7779df
%{mingw32_libdir}/libssl.dll.a
7779df
%{mingw32_libdir}/engines
7779df
%{mingw32_libdir}/pkgconfig/*.pc
7779df
%{mingw32_includedir}/openssl
7779df
%config(noreplace) %{mingw32_sysconfdir}/pki
7779df
7779df
%files -n mingw32-openssl-static
7779df
%{mingw32_libdir}/libcrypto.a
7779df
%{mingw32_libdir}/libssl.a
7779df
7779df
# Win64
7779df
%files -n mingw64-openssl -f mingw64-openssl.debugfiles
7779df
%doc build_win64/LICENSE
7779df
%{mingw64_bindir}/openssl.exe
7779df
%{mingw64_bindir}/c_rehash
7779df
%{mingw64_bindir}/libcrypto-%{soversion}.dll
7779df
%{mingw64_bindir}/libssl-%{soversion}.dll
7779df
%{mingw64_libdir}/libcrypto.dll.a
7779df
%{mingw64_libdir}/libssl.dll.a
7779df
%{mingw64_libdir}/engines
7779df
%{mingw64_libdir}/pkgconfig/*.pc
7779df
%{mingw64_includedir}/openssl
7779df
%config(noreplace) %{mingw64_sysconfdir}/pki
7779df
7779df
%files -n mingw64-openssl-static
7779df
%{mingw64_libdir}/libcrypto.a
7779df
%{mingw64_libdir}/libssl.a
7779df
7779df
7779df
%changelog
7779df
* Thu Jun 11 2020 Uri Lublin <uril@redhat.com> - 1.0.2k-3
7779df
- Rebuilt
7779df
  Related: rhbz#1846152
7779df
7779df
* Mon Aug 19 2019 Victor Toso <victortoso@redhat.com> - 1.0.2k-2
7779df
- Remove not applied patchs from the source list
7779df
  Related: rhbz#1704077
7779df
7779df
* Fri Aug 24 2018 Christophe Fergeau <cfergeau@redhat.com> - 1.0.2k-1
7779df
- Sync with rhel 7.6 OpenSSL 1.0.2k+patches in order to get the latest security
7779df
  fixes
7779df
- Related: rhbz#1615874
7779df
7779df
* Tue Aug 14 2018 Victor Toso <victortoso@redhat.com> - 1.0.2h-7
7779df
- ExclusiveArch: i686, x86_64
7779df
- Related: rhbz#1615874
7779df
7779df
* Thu May 31 2018 Richard W.M. Jones <rjones@redhat.com> - 1.0.2h-6
7779df
- Remove mktemp build dependency, part of coreutils.
7779df
7779df
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.2h-5
7779df
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
7779df
7779df
* Sat Sep 09 2017 Sandro Mani <manisandro@gmail.com> - 1.0.2h-4
7779df
- Exclude *.debug files from non-debug packages
7779df
7779df
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.2h-3
7779df
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
7779df
7779df
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.2h-2
7779df
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
7779df
7779df
* Sat May  7 2016 Erik van Pienbroek <epienbro@fedoraproject.org> - 1.0.2h-1
7779df
- Synced with native openssl-1.0.2h-1
7779df
- Fixes RHBZ #1332591 #1332589 #1330104 #1312861 #1312857 #1307773 #1302768
7779df
7779df
* Sat Feb  6 2016 Erik van Pienbroek <epienbro@fedoraproject.org> - 1.0.2f-1
7779df
- Synced with native openssl-1.0.2f-2
7779df
- Fixes RHBZ #1239685 #1290334 #1302768
7779df
7779df
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.2a-3
7779df
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
7779df
7779df
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.2a-2
7779df
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
7779df
7779df
* Fri Apr 24 2015 Erik van Pienbroek <epienbro@fedoraproject.org> - 1.0.2a-1
7779df
- Synced with native openssl-1.0.2a-1.fc23
7779df
- Fixes various CVE's (RHBZ #1203855 #1203856)
7779df
7779df
* Mon Dec 22 2014 Erik van Pienbroek <epienbro@fedoraproject.org> - 1.0.1j-1
7779df
- Synced with native openssl-1.0.1j-3.fc22
7779df
- Add support for RFC 5649
7779df
- Prevent compiler warning "Please include winsock2.h before windows.h"
7779df
  when using the OpenSSL headers
7779df
- Fixes various CVE's (RHBZ #1127889 #1127709 #1152851)
7779df
7779df
* Thu Aug 21 2014 Marc-André Lureau <marcandre.lureau@redhat.com> - 1.0.1i-1
7779df
- Synced with native openssl-1.0.1i-3.fc21
7779df
- Fixes various flaws (RHBZ#1096234 and RHBZ#1127705)
7779df
  CVE-2014-3505 CVE-2014-3506 CVE-2014-3507 CVE-2014-3511
7779df
  CVE-2014-3510 CVE-2014-3508 CVE-2014-3509 CVE-2014-0221
7779df
  CVE-2014-0198 CVE-2014-0224 CVE-2014-0195 CVE-2010-5298
7779df
  CVE-2014-3470
7779df
7779df
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1e-7
7779df
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
7779df
7779df
* Wed Apr  9 2014 Erik van Pienbroek <epienbro@fedoraproject.org> - 1.0.1e-6
7779df
- Synced patches with native openssl-1.0.1e-44.fc21
7779df
- Fixes CVE-2014-0160 (RHBZ #1085066)
7779df
7779df
* Sat Jan 25 2014 Erik van Pienbroek <epienbro@fedoraproject.org> - 1.0.1e-5
7779df
- Synced patches with native openssl-1.0.1e-38.fc21
7779df
- Enable ECC support (RHBZ #1037919)
7779df
- Fixes CVE-2013-6450 (RHBZ #1047844)
7779df
- Fixes CVE-2013-4353 (RHBZ #1049062)
7779df
- Fixes CVE-2013-6449 (RHBZ #1045444)
7779df
7779df
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1e-4
7779df
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
7779df
7779df
* Wed Jul 10 2013 Erik van Pienbroek <epienbro@fedoraproject.org> - 1.0.1e-3
7779df
- Rebuild to resolve InterlockedCompareExchange regression in mingw32 libraries
7779df
7779df
* Fri May 10 2013 Erik van Pienbroek <epienbro@fedoraproject.org> - 1.0.1e-2
7779df
- Fix build of manual pages with current pod2man (#959439)
7779df
7779df
* Sun Mar 24 2013 Erik van Pienbroek <epienbro@fedoraproject.org> - 1.0.1e-1
7779df
- Update to 1.0.1e (RHBZ #920868)
7779df
- Synced patches with native openssl-1.0.1e-4.fc19
7779df
7779df
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1c-3
7779df
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
7779df
7779df
* Fri Jan 11 2013 Erik van Pienbroek <epienbro@fedoraproject.org> - 1.0.1c-2
7779df
- Fix FTBFS against latest pod2man
7779df
7779df
* Fri Nov  9 2012 Erik van Pienbroek <epienbro@fedoraproject.org> - 1.0.1c-1
7779df
- Update to 1.0.1c
7779df
- Synced patches with native openssl-1.0.1c-7.fc19
7779df
7779df
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.0d-7
7779df
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
7779df
7779df
* Sat Mar 10 2012 Erik van Pienbroek <epienbro@fedoraproject.org> - 1.0.0d-6
7779df
- Added win64 support
7779df
7779df
* Wed Mar 07 2012 Kalev Lember <kalevlember@gmail.com> - 1.0.0d-5
7779df
- Pass the path to perl interpreter to Configure
7779df
7779df
* Tue Mar 06 2012 Kalev Lember <kalevlember@gmail.com> - 1.0.0d-4
7779df
- Renamed the source package to mingw-openssl (#800443)
7779df
- Modernize the spec file
7779df
- Use mingw macros without leading underscore
7779df
7779df
* Mon Feb 27 2012 Erik van Pienbroek <epienbro@fedoraproject.org> - 1.0.0d-3
7779df
- Rebuild against the mingw-w64 toolchain
7779df
7779df
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.0d-2
7779df
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
7779df
7779df
* Sat Apr 23 2011 Kalev Lember <kalev@smartlink.ee> - 1.0.0d-1
7779df
- Update to 1.0.0d
7779df
- Synced patches with Fedora native openssl-1.0.0d-2
7779df
7779df
* Fri Mar 04 2011 Kai Tietz <ktietz@redhat.com>
7779df
- Fixes for CVE-2011-0014 openssl: OCSP stapling vulnerability
7779df
7779df
* Thu Mar  3 2011 Kai Tietz <ktietz@redhat.com> - 1.0.0a-3
7779df
- Bump and rebuild.
7779df
7779df
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.0a-2
7779df
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
7779df
7779df
* Sat Jun 19 2010 Kalev Lember <kalev@smartlink.ee> - 1.0.0a-1
7779df
- Updated to openssl 1.0.0a
7779df
- Synced patches with Fedora native openssl-1.0.0a-1
7779df
- Use sed to fix up cflags instead of unmaintainable patch
7779df
- Rebased mingw32 specific patches
7779df
- Disabled capieng to fix build
7779df
- Properly regenerate def files with mkdef.pl and drop linker-fix.patch
7779df
7779df
* Thu Nov 26 2009 Kalev Lember <kalev@smartlink.ee> - 1.0.0-0.6.beta4
7779df
- Merged patches from native Fedora openssl (up to 1.0.0-0.16.beta4)
7779df
- Dropped the patch to fix non-fips mingw build,
7779df
  as it's now merged into fips patch from native openssl
7779df
7779df
* Sun Nov 22 2009 Kalev Lember <kalev@smartlink.ee> - 1.0.0-0.5.beta4
7779df
- Updated to version 1.0.0 beta 4
7779df
- Merged patches from native Fedora openssl (up to 1.0.0-0.15.beta4)
7779df
- Added patch to fix build with fips disabled
7779df
7779df
* Fri Sep 18 2009 Kalev Lember <kalev@smartlink.ee> - 1.0.0-0.4.beta3
7779df
- Rebuilt to fix debuginfo
7779df
7779df
* Sun Aug 30 2009 Kalev Lember <kalev@smartlink.ee> - 1.0.0-0.3.beta3
7779df
- Simplified the lib renaming patch
7779df
7779df
* Sun Aug 30 2009 Erik van Pienbroek <epienbro@fedoraproject.org> - 1.0.0-0.2.beta3
7779df
- Fixed invalid RPM Provides
7779df
7779df
* Fri Aug 28 2009 Erik van Pienbroek <epienbro@fedoraproject.org> - 1.0.0-0.1.beta3
7779df
- Update to version 1.0.0 beta 3
7779df
- Use %%global instead of %%define
7779df
- Automatically generate debuginfo subpackage
7779df
- Merged various changes from the native Fedora package (up to 1.0.0-0.5.beta3)
7779df
- Don't use the %%{_mingw32_make} macro anymore as it's ugly and causes side-effects
7779df
- Added missing BuildRequires mingw32-dlfcn (Kalev Lember)
7779df
- Reworked patches to rename *eay32.dll to lib*.dll (Kalev Lember)
7779df
- Patch Configure script to use %%{_mingw32_cflags} (Kalev Lember)
7779df
7779df
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.8j-7
7779df
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
7779df
7779df
* Sat May  9 2009 Erik van Pienbroek <epienbro@fedoraproject.org> - 0.9.8j-6
7779df
- Add the file include/openssl/applink.c to the package (BZ #499934)
7779df
7779df
* Tue Apr 14 2009 Erik van Pienbroek <epienbro@fedoraproject.org> - 0.9.8j-5
7779df
- Fixed %%defattr line
7779df
- Added -static subpackage
7779df
7779df
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.8j-4
7779df
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
7779df
7779df
* Fri Feb 20 2009 Richard W.M. Jones <rjones@redhat.com> - 0.9.8j-3
7779df
- Rebuild for mingw32-gcc 4.4
7779df
7779df
* Mon Feb  2 2009 Levente Farkas <lfarkas@lfarkas.org> - 0.9.8j-2
7779df
- Various build fixes.
7779df
7779df
* Wed Jan 28 2009 Levente Farkas <lfarkas@lfarkas.org> - 0.9.8j-1
7779df
- update to new upstream version.
7779df
7779df
* Mon Dec 29 2008 Levente Farkas <lfarkas@lfarkas.org> - 0.9.8g-2
7779df
- minor cleanup.
7779df
7779df
* Tue Sep 30 2008 Richard W.M. Jones <rjones@redhat.com> - 0.9.8g-1
7779df
- Initial RPM release.