|
|
|
@ -2,8 +2,8 @@
|
|
|
|
|
%global gem_name %{name}
|
|
|
|
|
|
|
|
|
|
Name: openwsman
|
|
|
|
|
Version: 2.6.5
|
|
|
|
|
Release: 10%{?dist}
|
|
|
|
|
Version: 2.6.8
|
|
|
|
|
Release: 23%{?dist}
|
|
|
|
|
Summary: Open source Implementation of WS-Management
|
|
|
|
|
|
|
|
|
|
License: BSD
|
|
|
|
@ -19,19 +19,19 @@ Patch1: openwsman-2.4.0-pamsetup.patch
|
|
|
|
|
Patch2: openwsman-2.4.12-ruby-binding-build.patch
|
|
|
|
|
Patch3: openwsman-2.6.2-openssl-1.1-fix.patch
|
|
|
|
|
Patch4: openwsman-2.6.5-http-status-line.patch
|
|
|
|
|
Patch5: openwsman-2.6.5-fix-set-cipher-list-retval-check.patch
|
|
|
|
|
Patch6: openwsman-2.6.5-CVE-2019-3816.patch
|
|
|
|
|
# Patch7: fixes CVE-2019-3833, rhbz#1687865
|
|
|
|
|
Patch7: openwsman-2.6.5-CVE-2019-3833.patch
|
|
|
|
|
Patch8: openwsman-2.6.5-http-unauthorized-improve.patch
|
|
|
|
|
# Patch9: fixes cert issue, rhbz#2220821
|
|
|
|
|
Patch9: openwsman-2.6.5-update-ssleay-conf.patch
|
|
|
|
|
Patch5: openwsman-2.6.5-libcurl-error-codes-update.patch
|
|
|
|
|
Patch6: openwsman-2.6.8-CVE-2019-3816.patch
|
|
|
|
|
Patch7: openwsman-2.6.8-CVE-2019-3833.patch
|
|
|
|
|
Patch8: openwsman-2.6.8-update-ssleay-conf.patch
|
|
|
|
|
Patch9: openwsman-2.6.8-http-unauthorized-improve.patch
|
|
|
|
|
BuildRequires: make
|
|
|
|
|
BuildRequires: swig
|
|
|
|
|
BuildRequires: libcurl-devel libxml2-devel pam-devel sblim-sfcc-devel
|
|
|
|
|
BuildRequires: python3 python3-devel ruby ruby-devel rubygems-devel perl-interpreter
|
|
|
|
|
BuildRequires: perl-devel perl-generators pkgconfig openssl-devel
|
|
|
|
|
BuildRequires: cmake
|
|
|
|
|
BuildRequires: systemd-units
|
|
|
|
|
BuildRequires: gcc gcc-c++
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Openwsman is a project intended to provide an open-source
|
|
|
|
@ -94,6 +94,7 @@ This package provides Python3 bindings to access the openwsman client API.
|
|
|
|
|
License: BSD
|
|
|
|
|
Summary: Ruby client bindings for Openwsman
|
|
|
|
|
Obsoletes: %{name}-ruby < %{version}-%{release}
|
|
|
|
|
Requires: libwsman1 = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%description -n rubygem-%{gem_name}
|
|
|
|
|
The openwsman gem provides a Ruby API to manage systems using
|
|
|
|
@ -131,11 +132,11 @@ You can use it to send shell commands to a remote Windows hosts.
|
|
|
|
|
%patch2 -p1 -b .ruby-binding-build
|
|
|
|
|
%patch3 -p1 -b .openssl-1.1-fix
|
|
|
|
|
%patch4 -p1 -b .http-status-line
|
|
|
|
|
%patch5 -p1 -b .fix-set-cipher-list-retval-check
|
|
|
|
|
%patch5 -p1 -b .libcurl-error-codes-update
|
|
|
|
|
%patch6 -p1 -b .CVE-2019-3816
|
|
|
|
|
%patch7 -p1 -b .CVE-2019-3833
|
|
|
|
|
%patch8 -p1 -b .http-unauthorized-improve
|
|
|
|
|
%patch9 -p1 -b .update-ssleay-conf
|
|
|
|
|
%patch8 -p1 -b .update-ssleay-conf
|
|
|
|
|
%patch9 -p1 -b .http-unauthorized-improve
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
# Removing executable permissions on .c and .h files to fix rpmlint warnings.
|
|
|
|
@ -145,8 +146,8 @@ rm -rf build
|
|
|
|
|
mkdir build
|
|
|
|
|
|
|
|
|
|
export RPM_OPT_FLAGS="$RPM_OPT_FLAGS -DFEDORA -DNO_SSL_CALLBACK"
|
|
|
|
|
export CFLAGS="-D_GNU_SOURCE -fPIE -DPIE"
|
|
|
|
|
export LDFLAGS="$LDFLAGS -Wl,-z,now -pie"
|
|
|
|
|
export CFLAGS="$RPM_OPT_FLAGS -fPIC -pie -Wl,-z,relro -Wl,-z,now"
|
|
|
|
|
export CXXFLAGS="$RPM_OPT_FLAGS -fPIC -pie -Wl,-z,relro -Wl,-z,now"
|
|
|
|
|
cd build
|
|
|
|
|
cmake \
|
|
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
@ -158,6 +159,7 @@ cmake \
|
|
|
|
|
-DPACKAGE_ARCHITECTURE=`uname -m` \
|
|
|
|
|
-DLIB=%{_lib} \
|
|
|
|
|
-DBUILD_JAVA=no \
|
|
|
|
|
-DBUILD_PYTHON=no \
|
|
|
|
|
..
|
|
|
|
|
|
|
|
|
|
make
|
|
|
|
@ -176,7 +178,7 @@ cd build
|
|
|
|
|
# Do not install the ruby extension, we are proviging the rubygem- instead.
|
|
|
|
|
echo -n > bindings/ruby/cmake_install.cmake
|
|
|
|
|
|
|
|
|
|
make DESTDIR=%{buildroot} install
|
|
|
|
|
%make_install
|
|
|
|
|
cd ..
|
|
|
|
|
rm -f %{buildroot}/%{_libdir}/*.la
|
|
|
|
|
rm -f %{buildroot}/%{_libdir}/openwsman/plugins/*.la
|
|
|
|
@ -207,12 +209,10 @@ rm -rf %{buildroot}%{gem_instdir}/ext
|
|
|
|
|
mkdir -p %{buildroot}%{gem_extdir_mri}
|
|
|
|
|
cp -a ./build%{gem_extdir_mri}/{gem.build_complete,*.so} %{buildroot}%{gem_extdir_mri}/
|
|
|
|
|
|
|
|
|
|
%post -n libwsman1 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
%postun -n libwsman1 -p /sbin/ldconfig
|
|
|
|
|
%ldconfig_scriptlets -n libwsman1
|
|
|
|
|
|
|
|
|
|
%post server
|
|
|
|
|
/sbin/ldconfig
|
|
|
|
|
%{?ldconfig}
|
|
|
|
|
%systemd_post openwsmand.service
|
|
|
|
|
|
|
|
|
|
%preun server
|
|
|
|
@ -221,11 +221,9 @@ cp -a ./build%{gem_extdir_mri}/{gem.build_complete,*.so} %{buildroot}%{gem_extdi
|
|
|
|
|
%postun server
|
|
|
|
|
rm -f /var/log/wsmand.log
|
|
|
|
|
%systemd_postun_with_restart openwsmand.service
|
|
|
|
|
/sbin/ldconfig
|
|
|
|
|
%{?ldconfig}
|
|
|
|
|
|
|
|
|
|
%post client -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
%postun client -p /sbin/ldconfig
|
|
|
|
|
%ldconfig_scriptlets client
|
|
|
|
|
|
|
|
|
|
%files -n libwsman1
|
|
|
|
|
%doc AUTHORS COPYING ChangeLog README.md TODO
|
|
|
|
@ -292,39 +290,110 @@ rm -f /var/log/wsmand.log
|
|
|
|
|
%{_bindir}/winrs
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Thu Jul 27 2023 Vitezslav Crhonek <vcrhonek@redhat.com> - 2.6.5-10
|
|
|
|
|
* Thu Nov 24 2022 Vitezslav Crhonek <vcrhonek@redhat.com> - 2.6.8-23
|
|
|
|
|
- Improve handling of HTTP 401 Unauthorized
|
|
|
|
|
Resolves: #2127415
|
|
|
|
|
|
|
|
|
|
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 2.6.8-22
|
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
|
|
|
|
|
* Wed Jun 16 2021 Mohan Boddu <mboddu@redhat.com> - 2.6.8-21
|
|
|
|
|
- Rebuilt for RHEL 9 BETA for openssl 3.0
|
|
|
|
|
Related: rhbz#1971065
|
|
|
|
|
|
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 2.6.8-20
|
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
|
|
|
|
|
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.8-19
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Jan 06 2021 Mamoru TASAKA <mtasaka@fedoraproject.org> - 2.6.8-18
|
|
|
|
|
- F-34: rebuild against ruby 3.0
|
|
|
|
|
|
|
|
|
|
* 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
|
|
|
|
|
Resolves: #2220821
|
|
|
|
|
|
|
|
|
|
* Wed Jul 26 2023 MSVSphere Packaging Team <packager@msvsphere.ru> - 2.6.5-9
|
|
|
|
|
- Rebuilt for MSVSphere 8.8
|
|
|
|
|
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.8-16
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Feb 14 2023 Vitezslav Crhonek <vcrhonek@redhat.com> - 2.6.5-9
|
|
|
|
|
- Add rpminspect.yaml
|
|
|
|
|
Related: #2105315
|
|
|
|
|
* Wed Jul 08 2020 Jeff Law <law@redhat.com> - 2.6.8-15
|
|
|
|
|
- Disable LTO
|
|
|
|
|
|
|
|
|
|
* Thu Sep 08 2022 Vitezslav Crhonek <vcrhonek@redhat.com> - 2.6.5-8
|
|
|
|
|
- Improve handling of HTTP 401 Unauthorized
|
|
|
|
|
Resolves: #2105315
|
|
|
|
|
* Mon Jun 22 2020 Jitka Plesnikova <jplesnik@redhat.com> - 2.6.8-14
|
|
|
|
|
- Perl 5.32 rebuild
|
|
|
|
|
|
|
|
|
|
* Mon May 11 2020 Vitezslav Crhonek <vcrhonek@redhat.com> - 2.6.5-7
|
|
|
|
|
- Fix CVE-2019-3833
|
|
|
|
|
Resolves: #1687865
|
|
|
|
|
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 2.6.8-13
|
|
|
|
|
- Rebuilt for Python 3.9
|
|
|
|
|
|
|
|
|
|
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.8-12
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sat Jan 18 2020 Mamoru TASAKA <mtasaka@fedoraproject.org> - 2.6.8-11
|
|
|
|
|
- F-32: rebuild against ruby27
|
|
|
|
|
|
|
|
|
|
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 2.6.8-10
|
|
|
|
|
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
|
|
|
|
|
|
|
|
|
* Wed Jul 17 2019 Vitezslav Crhonek <vcrhonek@redhat.com> - 2.6.5-6
|
|
|
|
|
- Fix name of Patch6
|
|
|
|
|
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 2.6.8-9
|
|
|
|
|
- Rebuilt for Python 3.8
|
|
|
|
|
|
|
|
|
|
* Wed Mar 13 2019 Vitezslav Crhonek <vcrhonek@redhat.com> - 2.6.5-5
|
|
|
|
|
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.8-8
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu May 30 2019 Jitka Plesnikova <jplesnik@redhat.com> - 2.6.8-7
|
|
|
|
|
- Perl 5.30 rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Apr 01 2019 Vitezslav Crhonek <vcrhonek@redhat.com> - 2.6.8-6
|
|
|
|
|
- Add requires libwsman1 for rubygem-openwsman
|
|
|
|
|
|
|
|
|
|
* Wed Mar 13 2019 Vitezslav Crhonek <vcrhonek@redhat.com> - 2.6.8-5
|
|
|
|
|
- Fix CVE-2019-3816
|
|
|
|
|
Resolves: #1687864
|
|
|
|
|
Resolves: #1687760
|
|
|
|
|
- Fix CVE-2019-3833
|
|
|
|
|
Resolves: #1687762
|
|
|
|
|
- Remove Dist Tag from the oldest changelog entry
|
|
|
|
|
|
|
|
|
|
* Thu Sep 20 2018 Tomas Orsava <torsava@redhat.com> - 2.6.5-4
|
|
|
|
|
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org>
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Jan 21 2019 Mamoru TASAKA <mtasaka@fedoraproject.org> - 2.6.8-3
|
|
|
|
|
- F-30: rebuild against ruby26
|
|
|
|
|
|
|
|
|
|
* Mon Jan 14 2019 Björn Esser <besser82@fedoraproject.org> - 2.6.8-2
|
|
|
|
|
- Rebuilt for libcrypt.so.2 (#1666033)
|
|
|
|
|
|
|
|
|
|
* Thu Nov 22 2018 Vitezslav Crhonek <vcrhonek@redhat.com> - 2.6.8-1
|
|
|
|
|
- Update to openwsman-2.6.8
|
|
|
|
|
|
|
|
|
|
* Wed Nov 14 2018 Vitezslav Crhonek <vcrhonek@redhat.com> - 2.6.5-10
|
|
|
|
|
- Reflect changes in libcurl error codes
|
|
|
|
|
Resolves: #1649393
|
|
|
|
|
|
|
|
|
|
* Mon Oct 01 2018 Vitezslav Crhonek <vcrhonek@redhat.com> - 2.6.5-9
|
|
|
|
|
- Require the Python interpreter directly instead of using the package name
|
|
|
|
|
- Related: rhbz#1619153
|
|
|
|
|
|
|
|
|
|
* Wed Feb 21 2018 Vitezslav Crhonek <vcrhonek@redhat.com> - 2.6.5-3
|
|
|
|
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.5-8
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Jul 03 2018 Petr Pisar <ppisar@redhat.com> - 2.6.5-7
|
|
|
|
|
- Perl 5.28 rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jun 28 2018 Jitka Plesnikova <jplesnik@redhat.com> - 2.6.5-6
|
|
|
|
|
- Perl 5.28 rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 2.6.5-5
|
|
|
|
|
- Rebuilt for Python 3.7
|
|
|
|
|
|
|
|
|
|
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 2.6.5-4
|
|
|
|
|
- Rebuilt for Python 3.7
|
|
|
|
|
|
|
|
|
|
* Thu Feb 22 2018 Vitezslav Crhonek <vcrhonek@redhat.com> - 2.6.5-3
|
|
|
|
|
- Fix wrong SSL_CTX_set_cipher_list() retval check
|
|
|
|
|
- Add BuildRequires gcc and gcc-c++
|
|
|
|
|
- Explicitly disable build of java bindings (build fails if java-devel is installed)
|
|
|
|
|
|
|
|
|
|
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.5-2
|
|
|
|
|