commit openwsman for openSUSE:Factory
Hello community, here is the log from the commit of package openwsman for openSUSE:Factory checked in at 2012-05-31 17:07:38 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/openwsman (Old) and /work/SRC/openSUSE:Factory/.openwsman.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "openwsman", Maintainer is "PRusnak@suse.com" Changes: -------- --- /work/SRC/openSUSE:Factory/openwsman/openwsman.changes 2012-02-02 17:58:55.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.openwsman.new/openwsman.changes 2012-05-31 17:07:42.000000000 +0200 @@ -1,0 +2,108 @@ +Tue May 29 19:07:38 UTC 2012 - kkaempf@suse.com + +- Fix ruby(abi) require + +------------------------------------------------------------------- +Mon May 28 08:16:49 UTC 2012 - kkaempf@suse.com + +- Update to 2.3.4 + * Adapt to Swig 2.0.7 + - renamed construtors/destructors. + - SwigClass.. variables are static now + +------------------------------------------------------------------ +Sat May 26 21:21:12 UTC 2012 - kkaempf@suse.com + +- Require ruby(abi) = 1.9.1 for openSUSE > 12.1 + +------------------------------------------------------------------- +Fri May 25 11:15:32 UTC 2012 - kkaempf@suse.com + +- Update to 2.3.3 + - Bugfixes + - Fixed enumeration with selector filter returning only one + instance. (Zoltan Micskei) + - mark XPath filtering as not supported (in sfcc) + - Bindings + - Adapt to Ruby 1.9 + - Disable RDoc for Ruby 1.9 + - WsXmlDoc.to_xml - enforce utf-8 encoding + - Properly create AssociationInstances(CIM References) / + AssociatedInstances(CIM Associations) filter + +- Update to 2.3.2 + - Bugfixes + - Assume 'XPath' as default filter dialect, not 'WQL' (Zoltan Micskei) + - Bindings + - Add ClientOptions#flags() (read) and ClientOptions#reset_flags() + - Add Openwsman#uri_prefix + - Add Openwsman#create_doc_from_string + - Provide full EndPointReference handling + +- Update to 2.3.1 + - Features + - switch default CIMOM connection to https on port 5989 + with PAM authentication (this now reflects the default sfcb config) + - Bindings + - Ruby: Add Openwsman#epr_uri_for + - Bugfixes + - Fix build issues in .spec file + +------------------------------------------------------------------- +Thu Mar 8 09:34:51 UTC 2012 - kkaempf@suse.com + +- Fix systemd %pre issues on openSUSE + +------------------------------------------------------------------- +Tue Mar 6 09:07:57 UTC 2012 - kkaempf@suse.com + +- Disable building of Ruby GEM in .spec file +- Add perl-devel for CentOS6 and RHEL6 +- Provide systemd support in Fedora 15 + +------------------------------------------------------------------- +Wed Feb 22 15:32:50 UTC 2012 - kkaempf@suse.com + +- Update to 2.3.0 + Features + - openSUSE: support systemd + - provider getter functions for all client and client option string + values + - Add ssl-related config options in [cim] section, see openwsman.conf + ssl = yes/no + verify_cert = yes/no + trust_store = /etc/ssl/certs + Bugfixes + - Enum/Pull: Fix envelope maxsize handling, return partial result + - Fix memleaks in client and client option string setters + (Matthias Bolte) + - All string value getters (for client and client_opt) return + copies now + (found by Matthias Bolte) + - Define and use PLUGIN_API_VERSION for the server-side plugins + - Handle optional arguments propertly during client endpoint URI + creation (Matthias Bolte) + - Make calls to 'identify' repeatable + - Destroy serializer lock and client mutex at exit (Bing Liu) + - Fix leak in wsmc_release (Sanjeev Putta) + - Allow to reset transport credentials to NULL (Matthias Bolte) + - Plug memory leaks in wsman-client-transport (Found by Suneet + Chandok, improved by Matthias Bolte) + - print warning if event delivery fails + Bindings + - Provide Ruby bindings also as GEM + (-> https://rubygems.org/gems/openwsman) + - Add Openwsman#create_doc_from_file to read xml files + - Add XmlNode#next to iterate over children with identical name + - Add Openwsman#erb_prefix_for to return EPR uri prefixes for + different CIM schema + - Ruby: Provide a default implementation of auth_request_callback + - Ruby: Support Ruby 1.9 + - Expose Openwsman version as OPENWSMAN_VERSION, OPENWSMAN_MAJOR, + OPENWSMAN_MINOR, OPENWSMAN_PATCH + - Ruby: expand XmlNode#each to iterate over multiple children of + same name + - new test tool: winenum.rb, to enumerate WINRM instances + - update documentation: Add note about escaping selector values + +------------------------------------------------------------------- Old: ---- openwsman-2.2.7.tar.bz2 openwsman-pam-auth.patch New: ---- openwsman-2.3.4.tar.bz2 openwsman.service ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ openwsman.spec ++++++ --- /var/tmp/diff_new_pack.xaER5J/_old 2012-05-31 17:07:44.000000000 +0200 +++ /var/tmp/diff_new_pack.xaER5J/_new 2012-05-31 17:07:44.000000000 +0200 @@ -16,6 +16,12 @@ # +%if 0%{?suse_version} > 1140 || 0%{?fedora_version} > 14 +%define has_systemd 1 +%else +%define has_systemd 0 +%endif + Name: openwsman BuildRequires: cmake BuildRequires: gcc-c++ @@ -39,7 +45,7 @@ BuildRequires: ruby BuildRequires: ruby-devel BuildRequires: ruby-rdoc -%if 0%{?fedora} > 0 +%if 0%{?fedora} > 0 || 0%{?rhel_version} >= 600 || 0%{?centos_version} >= 600 BuildRequires: perl-devel %endif %endif @@ -54,17 +60,23 @@ %if 0%{?suse_version} > 1010 BuildRequires: fdupes -BuildRequires: libopenssl-devel BuildRequires: libcurl-devel +BuildRequires: libopenssl-devel %else # SLE10 +BuildRequires: curl-devel BuildRequires: libidn-devel BuildRequires: openssl-devel -BuildRequires: curl-devel %endif %if 0%{?suse_version} > 910 BuildRequires: ruby-devel +%if 0%{?suse_version} < 1120 +# SLE 10 has Ruby 1.8.6 and runs into http://help.rubygems.org/discussions/problems/859-trying-to-install-rubygems +BuildRequires: rubygems <= 1.3.7 +%else +BuildRequires: rubygems +%endif BuildRequires: pkg-config %else # SLE9 @@ -74,8 +86,13 @@ %endif +%if 0%{?has_systemd} +BuildRequires: systemd +%{?systemd_requires} +%endif + Requires(pre): sed coreutils grep /bin/hostname -Version: 2.2.7 +Version: 2.3.4 Release: 0 # Mandriva: # Release %mkrel 1 @@ -92,8 +109,8 @@ Source2: %{name}.pam %endif Source3: %{name}.SuSEfirewall2 -Patch0: %{name}-pam-auth.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build +Source4: %{name}.service %description Opensource Implementation of WS-Management protocol stack @@ -114,9 +131,11 @@ Group: Development/Libraries/C and C++ Provides: openwsman-devel = %{version} Obsoletes: openwsman-devel < %{version} -Requires: libwsman1 = %{version} Requires: %{name}-server = %{version} -Requires: sblim-sfcc-devel libxml2-devel pam-devel +Requires: libwsman1 = %{version} +Requires: libxml2-devel +Requires: pam-devel +Requires: sblim-sfcc-devel %description -n libwsman-devel Opensource Implementation of WS-Management stack @@ -135,8 +154,8 @@ %package -n libwsman_clientpp-devel Summary: C++ bindings to Openwsman Client libraries Group: System/Management -Requires: libwsman_clientpp1 = %{version} Requires: libwsman-devel = %{version} +Requires: libwsman_clientpp1 = %{version} %description -n libwsman_clientpp-devel Development files for C++ interface to OpenWSMAN client library. @@ -169,15 +188,26 @@ %package ruby Requires: ruby +%{!?ruby_version: %global ruby_version %(ruby -r rbconfig -e 'print(RbConfig::CONFIG["ruby_version"])')} + %if 0%{?fedora_version} || 0%{?centos_version} || 0%{?rhel_version} || 0%{?fedora} || 0%{?rhel} -Requires: ruby(abi) = 1.8 +Requires: ruby(abi) = %{ruby_version} %endif + %if 0%{?suse_version} > 1120 -Requires: ruby(abi) = 1.8 +Requires: ruby(abi) = %{ruby_version} %endif + %if 0%{?ruby_sitelib} == 0 -%{!?ruby_sitelib: %global ruby_sitelib %(ruby -r rbconfig -e 'vd = Config::CONFIG["vendorlibdir"]; print(vd ? vd : Config::CONFIG["sitelibdir"])')} -%{!?ruby_sitearch: %global ruby_sitearch %(ruby -r rbconfig -e 'vad = Config::CONFIG["vendorarchdir"]; print(vad ? vad : Config::CONFIG["sitearchdir"])')} +%if 0%{?fedora_version} || 0%{?centos_version} || 0%{?rhel_version} || 0%{?fedora} || 0%{?rhel} +# Fedora, RHEL and CentOS don't have vendor lib +# CMAKE checks for "ruby -r vendor-specific" and fails +%{!?ruby_sitelib: %global ruby_sitelib %(ruby -r rbconfig -e 'print(RbConfig::CONFIG["sitelibdir"])')} +%{!?ruby_sitearch: %global ruby_sitearch %(ruby -r rbconfig -e 'print(RbConfig::CONFIG["sitearchdir"])')} +%else +%{!?ruby_sitelib: %global ruby_sitelib %(ruby -r rbconfig -e 'vd = RbConfig::CONFIG["vendorlibdir"]; print(vd ? vd : RbConfig::CONFIG["sitelibdir"])')} +%{!?ruby_sitearch: %global ruby_sitearch %(ruby -r rbconfig -e 'vad = RbConfig::CONFIG["vendorarchdir"]; print(vad ? vad : RbConfig::CONFIG["sitearchdir"])')} +%endif %endif Summary: Ruby bindings for openwsman client API Group: System/Management @@ -188,7 +218,9 @@ %package perl %if 0%{?fedora} -Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +%define perl_version %(eval "`%{__perl} -V:version`"; echo $version) +%define perl_requires perl(:MODULE_COMPAT_%{perl_version}) +Requires: %{perl_version} %else Requires: perl = %{perl_version} %endif @@ -215,7 +247,6 @@ %prep %setup -q -%patch0 %if 0%{?fedora_version} || 0%{?centos_version} || 0%{?rhel_version} || 0%{?fedora} || 0%{?rhel} %patch1 -p1 %endif @@ -239,6 +270,7 @@ -DCMAKE_SKIP_RPATH=1 \ -DPACKAGE_ARCHITECTURE=`uname -m` \ -DLIB=%{_lib} \ + -DBUILD_RUBY_GEM=no \ .. make CFLAGS="-DSSL_LIB='\"$SSL_LIB\"'" @@ -252,45 +284,71 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/openwsman/authenticators/*.la [ -d $RPM_BUILD_ROOT%{ruby_sitelib} ] && rm -f $RPM_BUILD_ROOT%{ruby_sitelib}/openwsmanplugin.rb [ -d $RPM_BUILD_ROOT%{ruby_vendorlib} ] && rm -f $RPM_BUILD_ROOT%{ruby_vendorlib}/openwsmanplugin.rb +%if 0%{?suse_version} <= 1210 mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/init.d +install -m 755 build/etc/init/openwsmand.sh $RPM_BUILD_ROOT%{_sysconfdir}/init.d/openwsmand +ln -sf %{_sysconfdir}/init.d/openwsmand $RPM_BUILD_ROOT%{_sbindir}/rcopenwsmand +%endif install -m 644 etc/openwsman.conf $RPM_BUILD_ROOT%{_sysconfdir}/openwsman install -m 644 etc/openwsman_client.conf $RPM_BUILD_ROOT%{_sysconfdir}/openwsman -install -m 755 build/etc/init/openwsmand.sh $RPM_BUILD_ROOT%{_sysconfdir}/init.d/openwsmand install -m 644 etc/ssleay.cnf $RPM_BUILD_ROOT%{_sysconfdir}/openwsman install -m 644 %{S:2} $RPM_BUILD_ROOT%{_sysconfdir}/pam.d/openwsman -ln -sf %{_sysconfdir}/init.d/openwsmand $RPM_BUILD_ROOT%{_sbindir}/rcopenwsmand %if 0%{?suse_version} > 1010 install -D -m 644 %{S:3} $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/openwsman %endif +%if 0%{?has_systemd} +install -D -m 644 %{S:4} $RPM_BUILD_ROOT%{_unitdir}/%{name}.service +%endif %post -n libwsman1 -p /sbin/ldconfig %postun -n libwsman1 -p /sbin/ldconfig +# follow http://en.opensuse.org/openSUSE:Systemd_packaging_guidelines +%if 0%{?has_systemd} + +%pre server +if [-f /var/lib/systemd/migrated/%{name}]; then +%service_add_pre %{name}.service +fi +%endif + %post server /sbin/ldconfig +%if 0%{?has_systemd} +%service_add_post %{name}.service +%else %if 0%{?suse_version} %{fillup_and_insserv openwsmand} %else # FIXME: chkconfig?! %endif +%endif %preun server +%if 0%{?has_systemd} +%service_del_preun %{name}.service +%else %if 0%{?suse_version} %{stop_on_removal openwsmand} %else # FIXME: chkconfig?! %endif +%endif %postun server +rm -f /var/log/wsmand.log +/sbin/ldconfig +%if 0%{?has_systemd} +%service_del_postun %{name}.service +%else %if 0%{?suse_version} %{restart_on_update openwsmand} %{insserv_cleanup openwsmand} %else # FIXME: chkconfig?! %endif -rm -f /var/log/wsmand.log -/sbin/ldconfig +%endif %post -n libwsman_clientpp1 -p /sbin/ldconfig @@ -298,7 +356,7 @@ %files -n libwsman1 %defattr(-,root,root) -%doc AUTHORS COPYING ChangeLog README TODO +%doc AUTHORS COPYING ChangeLog README.md TODO %{_libdir}/libwsman.so.* %{_libdir}/libwsman_client.so.* %{_libdir}/libwsman_curl_client_transport.so.* @@ -353,7 +411,10 @@ %if 0%{?suse_version} > 1010 %config %{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/openwsman %endif +%if 0%{?suse_version} <= 1210 %attr(0755,root,root) %{_sysconfdir}/init.d/openwsmand +%{_sbindir}/rcopenwsmand +%endif %dir %{_libdir}/openwsman %dir %{_libdir}/openwsman/authenticators %{_libdir}/openwsman/authenticators/*.so @@ -362,8 +423,10 @@ %{_libdir}/openwsman/plugins/*.so %{_libdir}/openwsman/plugins/*.so.* %{_sbindir}/openwsmand -%{_sbindir}/rcopenwsmand %{_libdir}/libwsman_server.so.* +%if 0%{?has_systemd} +%{_unitdir}/%{name}.service +%endif %files -n libwsman_clientpp1 %defattr(-,root,root) ++++++ openwsman-2.2.7.tar.bz2 -> openwsman-2.3.4.tar.bz2 ++++++ ++++ 42574 lines of diff (skipped) ++++++ openwsman.service ++++++ [Unit] Description=Openwsman WS-Management Service After=syslog.target [Service] ExecStart=/usr/sbin/openwsmand [Install] WantedBy=multi-user.target -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org
participants (1)
-
root@hilbert.suse.de