Use make macros, update flags, enable LTO, update ssleay.conf
This commit is contained in:
parent
5f12a36e1b
commit
86820ef4be
15
openwsman-2.6.8-update-ssleay-conf.patch
Normal file
15
openwsman-2.6.8-update-ssleay-conf.patch
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
diff -up openwsman-2.6.8/etc/ssleay.cnf.orig openwsman-2.6.8/etc/ssleay.cnf
|
||||||
|
--- openwsman-2.6.8/etc/ssleay.cnf.orig 2018-10-12 12:06:26.000000000 +0200
|
||||||
|
+++ openwsman-2.6.8/etc/ssleay.cnf 2020-09-22 14:27:56.216306882 +0200
|
||||||
|
@@ -2,10 +2,8 @@
|
||||||
|
# SSLeay example configuration file.
|
||||||
|
#
|
||||||
|
|
||||||
|
-RANDFILE = /dev/random
|
||||||
|
-
|
||||||
|
[ req ]
|
||||||
|
-default_bits = 1024
|
||||||
|
+default_bits = 2048
|
||||||
|
default_keyfile = privkey.pem
|
||||||
|
distinguished_name = req_distinguished_name
|
||||||
|
|
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
Name: openwsman
|
Name: openwsman
|
||||||
Version: 2.6.8
|
Version: 2.6.8
|
||||||
Release: 16%{?dist}
|
Release: 17%{?dist}
|
||||||
Summary: Open source Implementation of WS-Management
|
Summary: Open source Implementation of WS-Management
|
||||||
|
|
||||||
License: BSD
|
License: BSD
|
||||||
@ -22,6 +22,7 @@ Patch4: openwsman-2.6.5-http-status-line.patch
|
|||||||
Patch5: openwsman-2.6.5-libcurl-error-codes-update.patch
|
Patch5: openwsman-2.6.5-libcurl-error-codes-update.patch
|
||||||
Patch6: openwsman-2.6.8-CVE-2019-3816.patch
|
Patch6: openwsman-2.6.8-CVE-2019-3816.patch
|
||||||
Patch7: openwsman-2.6.8-CVE-2019-3833.patch
|
Patch7: openwsman-2.6.8-CVE-2019-3833.patch
|
||||||
|
Patch8: openwsman-2.6.8-update-ssleay-conf.patch
|
||||||
BuildRequires: swig
|
BuildRequires: swig
|
||||||
BuildRequires: libcurl-devel libxml2-devel pam-devel sblim-sfcc-devel
|
BuildRequires: libcurl-devel libxml2-devel pam-devel sblim-sfcc-devel
|
||||||
BuildRequires: python3 python3-devel ruby ruby-devel rubygems-devel perl-interpreter
|
BuildRequires: python3 python3-devel ruby ruby-devel rubygems-devel perl-interpreter
|
||||||
@ -132,13 +133,9 @@ You can use it to send shell commands to a remote Windows hosts.
|
|||||||
%patch5 -p1 -b .libcurl-error-codes-update
|
%patch5 -p1 -b .libcurl-error-codes-update
|
||||||
%patch6 -p1 -b .CVE-2019-3816
|
%patch6 -p1 -b .CVE-2019-3816
|
||||||
%patch7 -p1 -b .CVE-2019-3833
|
%patch7 -p1 -b .CVE-2019-3833
|
||||||
|
%patch8 -p1 -b .update-ssleay-conf
|
||||||
|
|
||||||
%build
|
%build
|
||||||
# We override CFLAGS/LDFLAGS below and force PIE executables, which is generally
|
|
||||||
# fine, except that it ultimately tries to mix PIC and PIE which is a no-no
|
|
||||||
# and triggers errors with LTO
|
|
||||||
# Disable LTO
|
|
||||||
%define _lto_cflags %{nil}
|
|
||||||
# Removing executable permissions on .c and .h files to fix rpmlint warnings.
|
# Removing executable permissions on .c and .h files to fix rpmlint warnings.
|
||||||
chmod -x src/cpp/WsmanClient.h
|
chmod -x src/cpp/WsmanClient.h
|
||||||
|
|
||||||
@ -146,8 +143,8 @@ rm -rf build
|
|||||||
mkdir build
|
mkdir build
|
||||||
|
|
||||||
export RPM_OPT_FLAGS="$RPM_OPT_FLAGS -DFEDORA -DNO_SSL_CALLBACK"
|
export RPM_OPT_FLAGS="$RPM_OPT_FLAGS -DFEDORA -DNO_SSL_CALLBACK"
|
||||||
export CFLAGS="-D_GNU_SOURCE -fPIE -DPIE"
|
export CFLAGS="$RPM_OPT_FLAGS -fPIC -pie -Wl,-z,relro -Wl,-z,now"
|
||||||
export LDFLAGS="$LDFLAGS -Wl,-z,now -pie"
|
export CXXFLAGS="$RPM_OPT_FLAGS -fPIC -pie -Wl,-z,relro -Wl,-z,now"
|
||||||
cd build
|
cd build
|
||||||
cmake \
|
cmake \
|
||||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||||
@ -178,7 +175,7 @@ cd build
|
|||||||
# Do not install the ruby extension, we are proviging the rubygem- instead.
|
# Do not install the ruby extension, we are proviging the rubygem- instead.
|
||||||
echo -n > bindings/ruby/cmake_install.cmake
|
echo -n > bindings/ruby/cmake_install.cmake
|
||||||
|
|
||||||
make DESTDIR=%{buildroot} install
|
%make_install
|
||||||
cd ..
|
cd ..
|
||||||
rm -f %{buildroot}/%{_libdir}/*.la
|
rm -f %{buildroot}/%{_libdir}/*.la
|
||||||
rm -f %{buildroot}/%{_libdir}/openwsman/plugins/*.la
|
rm -f %{buildroot}/%{_libdir}/openwsman/plugins/*.la
|
||||||
@ -290,6 +287,12 @@ rm -f /var/log/wsmand.log
|
|||||||
%{_bindir}/winrs
|
%{_bindir}/winrs
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Sep 22 2020 Vitezslav Crhonek <vcrhonek@redhat.com> - 2.6.8-17
|
||||||
|
- Use make macros, patch by Tom Stellard <tstellar@redhat.com>
|
||||||
|
(https://fedoraproject.org/wiki/Changes/UseMakeBuildInstallMacro)
|
||||||
|
- Update flags, enable LTO
|
||||||
|
- Remove RANDFILE and increase default bits in ssleay.conf
|
||||||
|
|
||||||
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.8-16
|
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.8-16
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user