Blame SPECS/mingw-openssl.spec

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