diff --git a/openwsman-2.4.12-ruby-binding-build.patch b/openwsman-2.4.12-ruby-binding-build.patch index 87c890d8034ca5be83200fea3d21e2b296c5b377..e3d3172609f2ae33d08378ae2f12f04eba43cf51 100644 --- a/openwsman-2.4.12-ruby-binding-build.patch +++ b/openwsman-2.4.12-ruby-binding-build.patch @@ -6,7 +6,7 @@ diff -up openwsman-2.7.2/bindings/ruby/extconf.rb.orig openwsman-2.7.2/bindings/ major, minor, path = RUBY_VERSION.split(".") -raise "SWIG failed to run" unless system("#{swig} -ruby -autorename -DRUBY_VERSION=#{major}#{minor} -I. -I/usr/include/openwsman -o openwsman_wrap.c openwsman.i") -+raise "SWIG failed to run" unless system("#{swig} -ruby -autorename -DRUBY_VERSION=#{major}#{minor} -I. -I/usr/include/openwsman -I/builddir/build/BUILD/openwsman-2.7.2/include/ -o openwsman_wrap.c openwsman.i") ++raise "SWIG failed to run" unless system("#{swig} -ruby -autorename -DRUBY_VERSION=#{major}#{minor} -I. -I/usr/include/openwsman -I@CMAKE_SOURCE_DIR@/include/ -o openwsman_wrap.c openwsman.i") $CPPFLAGS = "-I/usr/include/openwsman -I.." diff --git a/openwsman.spec b/openwsman.spec index 50b4f44346a21f96c11aa36dea067546aeca44e4..32d150c91e71592569c7fbc763ca1ba0d27ef689 100644 --- a/openwsman.spec +++ b/openwsman.spec @@ -3,10 +3,10 @@ Name: openwsman Version: 2.7.2 -Release: 1 +Release: 2 Summary: Opensource Implementation of WS-Management License: BSD-3-Clause and MIT -URL: http://www.openwsman.org/ +URL: https://www.openwsman.org/ Source0: https://github.com/Openwsman/openwsman/archive/v%{version}.tar.gz Source1: openwsmand.8.gz Source2: openwsmand.service @@ -19,7 +19,7 @@ Patch0004: openwsman-2.6.8-update-ssleay-conf.patch BuildRequires: swig libcurl-devel libxml2-devel pam-devel sblim-sfcc-devel python3 BuildRequires: python3-devel ruby ruby-devel rubygems-devel perl-interpreter -BuildRequires: perl-devel perl-generators pkgconfig openssl-devel libwsman-devel +BuildRequires: perl-devel perl-generators pkgconfig openssl-devel BuildRequires: cmake systemd-units gcc gcc-c++ %description @@ -61,6 +61,7 @@ Openwsman Client libraries. License: BSD-3-Clause and MIT Summary: Openwsman Server and service libraries Requires: libwsman1 = %{version}-%{release} +%{?systemd_requires} %description server Openwsman Server and service libraries. @@ -94,7 +95,6 @@ bindings. %package perl License: BSD-3-Clause and MIT -Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) Summary: Perl bindings for openwsman client API Requires: libwsman1 = %{version}-%{release} @@ -113,6 +113,7 @@ You can use it to send shell commands to a remote Windows hosts. %prep %autosetup -p1 +sed -i -e 's,@CMAKE_SOURCE_DIR@,%{_builddir}/%{name}-%{version},g' bindings/ruby/extconf.rb %build # Removing executable permissions on .c and .h files to fix rpmlint warnings. @@ -153,9 +154,6 @@ echo -n > bindings/ruby/cmake_install.cmake %make_install cd .. -rm -f %{buildroot}/%{_libdir}/*.la -rm -f %{buildroot}/%{_libdir}/openwsman/plugins/*.la -rm -f %{buildroot}/%{_libdir}/openwsman/authenticators/*.la [ -d %{buildroot}/%{ruby_vendorlibdir} ] && rm -f %{buildroot}/%{ruby_vendorlibdir}/openwsmanplugin.rb [ -d %{buildroot}/%{ruby_vendorlibdir} ] && rm -f %{buildroot}/%{ruby_vendorlibdir}/openwsman.rb install -d %{buildroot}%{_sysconfdir}/init.d @@ -176,11 +174,7 @@ cp -pa ./build%{gem_dir}/* %{buildroot}%{gem_dir}/ install -d %{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 - %post server -/sbin/ldconfig %systemd_post openwsmand.service %preun server @@ -189,14 +183,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 - -%post client -p /sbin/ldconfig - -%postun client -p /sbin/ldconfig %files -n libwsman1 -%doc COPYING +%license COPYING %{_libdir}/libwsman.so.* %{_libdir}/libwsman_client.so.* %{_libdir}/libwsman_curl_client_transport.so.* @@ -258,6 +247,10 @@ rm -f /var/log/wsmand.log %{_mandir}/man8/* %changelog +* Fri Jan 17 2025 Funda Wang - 2.7.2-2 +- drop useless perl(:MODULE_COMPAT) requirement +- fix bootstrap build + * Wed Oct 11 2023 liyanan - 2.7.2-1 - Update to 2.7.2