|
|
|
@@ -9,11 +9,13 @@
|
|
|
|
|
Name: openwsman
|
|
|
|
|
BuildRequires: swig
|
|
|
|
|
BuildRequires: libcurl-devel libxml2-devel pam-devel sblim-sfcc-devel
|
|
|
|
|
BuildRequires: python python-devel ruby ruby-devel ruby-rdoc perl
|
|
|
|
|
#BuildRequires: python python-devel ruby ruby-devel ruby-rdoc perl
|
|
|
|
|
BuildRequires: python python-devel perl
|
|
|
|
|
BuildRequires: perl-devel pkgconfig openssl-devel
|
|
|
|
|
BuildRequires: cmake
|
|
|
|
|
BuildRequires: systemd-units
|
|
|
|
|
Version: 2.2.7
|
|
|
|
|
Release: 2%{?dist}
|
|
|
|
|
Release: 5%{?dist}
|
|
|
|
|
Url: http://www.openwsman.org/
|
|
|
|
|
License: BSD
|
|
|
|
|
Group: Applications/System
|
|
|
|
@@ -21,8 +23,12 @@ Summary: Open source Implementation of WS-Management
|
|
|
|
|
Source: http://downloads.sourceforge.net/project/openwsman/%{name}/%{version}/%{name}-%{version}.tar.bz2
|
|
|
|
|
# help2man generated manpage for openwsmand binary
|
|
|
|
|
Source1: openwsmand.8.gz
|
|
|
|
|
# service file for systemd
|
|
|
|
|
Source2: openwsmand.service
|
|
|
|
|
# script for testing presence of the certificates in ExecStartPre
|
|
|
|
|
Source3: owsmantestcert.sh
|
|
|
|
|
Patch0: %{name}-sitelibdir.patch
|
|
|
|
|
Patch1: openwsman-2.2.3-initscript.patch
|
|
|
|
|
Patch2: openwsman-2.2.7-disable-ruby.patch
|
|
|
|
|
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXXX)
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
@@ -106,15 +112,15 @@ API.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package ruby
|
|
|
|
|
License: BSD
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
|
Requires: ruby
|
|
|
|
|
Requires: ruby(abi) = 1.8
|
|
|
|
|
Summary: Ruby bindings for openwsman client API
|
|
|
|
|
|
|
|
|
|
%description ruby
|
|
|
|
|
This package provides Ruby bindings to access the openwsman client API.
|
|
|
|
|
#%package ruby
|
|
|
|
|
#License: BSD
|
|
|
|
|
#Group: Development/Libraries
|
|
|
|
|
#Requires: ruby
|
|
|
|
|
#Requires: ruby(abi) = 1.9.1
|
|
|
|
|
#Summary: Ruby bindings for openwsman client API
|
|
|
|
|
#
|
|
|
|
|
#%description ruby
|
|
|
|
|
#This package provides Ruby bindings to access the openwsman client API.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -135,7 +141,7 @@ This package provides Perl bindings to access the openwsman client API.
|
|
|
|
|
%setup -q
|
|
|
|
|
# don't make backup of file patched by patch0, it'll be installed...
|
|
|
|
|
%patch0 -p1
|
|
|
|
|
%patch1 -p1 -b .initscript
|
|
|
|
|
%patch2 -p1
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
# Removing executable permissions on .c and .h files to fix rpmlint warnings.
|
|
|
|
@@ -174,10 +180,10 @@ rm -f %{buildroot}/%{_libdir}/openwsman/authenticators/*.la
|
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/init.d
|
|
|
|
|
install -m 644 etc/openwsman.conf %{buildroot}/%{_sysconfdir}/openwsman
|
|
|
|
|
install -m 644 etc/openwsman_client.conf %{buildroot}/%{_sysconfdir}/openwsman
|
|
|
|
|
mkdir -p %{buildroot}/%{_sysconfdir}/rc.d/init.d
|
|
|
|
|
install -m 755 build/etc/init/openwsmand.sh %{buildroot}/%{_sysconfdir}/rc.d/init.d/openwsmand
|
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_unitdir}
|
|
|
|
|
install -p -m 644 %{SOURCE2} %{buildroot}/%{_unitdir}/openwsmand.service
|
|
|
|
|
install -m 644 etc/ssleay.cnf %{buildroot}/%{_sysconfdir}/openwsman
|
|
|
|
|
ln -sf %{_sysconfdir}/rc.d/init.d/openwsmand %{buildroot}/%{_sbindir}/rcopenwsmand
|
|
|
|
|
install -p -m 755 %{SOURCE3} %{buildroot}/%{_sysconfdir}/openwsman
|
|
|
|
|
# install manpage
|
|
|
|
|
mkdir -p %{buildroot}/%{_mandir}/man8/
|
|
|
|
|
cp %SOURCE1 %{buildroot}/%{_mandir}/man8/
|
|
|
|
@@ -195,19 +201,23 @@ rm -rf %{buildroot}
|
|
|
|
|
|
|
|
|
|
%post server
|
|
|
|
|
/sbin/ldconfig
|
|
|
|
|
/sbin/chkconfig --add openwsmand
|
|
|
|
|
if [ $1 -eq 1 ] ; then
|
|
|
|
|
# Initial installation
|
|
|
|
|
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
%preun server
|
|
|
|
|
if [ $1 = 0 ] ; then
|
|
|
|
|
/sbin/service %{name}d stop >/dev/null 2>&1
|
|
|
|
|
/sbin/chkconfig --del openwsmand
|
|
|
|
|
/bin/systemctl --no-reload disable openwsmand.service > /dev/null 2>&1 || :
|
|
|
|
|
/bin/systemctl stop openwsmand.service > /dev/null 2>&1 || :
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
%postun server
|
|
|
|
|
rm -f /var/log/wsmand.log
|
|
|
|
|
|
|
|
|
|
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
|
|
|
|
|
if [ "$1" -ge "1" ] ; then
|
|
|
|
|
/sbin/service %{name}d condrestart >/dev/null 2>&1 || :
|
|
|
|
|
/bin/systemctl try-restart openwsmand.service >/dev/null 2>&1 || :
|
|
|
|
|
fi
|
|
|
|
|
/sbin/ldconfig
|
|
|
|
|
|
|
|
|
@@ -237,13 +247,13 @@ fi
|
|
|
|
|
%{python_sitearch}/*.pyo
|
|
|
|
|
%doc AUTHORS COPYING ChangeLog README
|
|
|
|
|
|
|
|
|
|
%files ruby
|
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
#%files ruby
|
|
|
|
|
#%defattr(-,root,root,-)
|
|
|
|
|
#%{ruby_sitearch}/openwsman.so
|
|
|
|
|
%{ruby_sitearch}/_openwsman.so
|
|
|
|
|
%dir %{ruby_sitelib}/openwsman
|
|
|
|
|
%{ruby_sitelib}/openwsman/*.rb
|
|
|
|
|
%doc AUTHORS COPYING ChangeLog README
|
|
|
|
|
#%{ruby_sitearch}/_openwsman.so
|
|
|
|
|
#%dir %{ruby_sitelib}/openwsman
|
|
|
|
|
#%{ruby_sitelib}/openwsman/*.rb
|
|
|
|
|
#%doc AUTHORS COPYING ChangeLog README
|
|
|
|
|
|
|
|
|
|
%files perl
|
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
@@ -259,8 +269,9 @@ fi
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/openwsman/openwsman.conf
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/openwsman/ssleay.cnf
|
|
|
|
|
%attr(0755,root,root) %{_sysconfdir}/openwsman/owsmangencert.sh
|
|
|
|
|
%attr(0755,root,root) %{_sysconfdir}/openwsman/owsmantestcert.sh
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/pam.d/openwsman
|
|
|
|
|
%attr(0755,root,root) %{_sysconfdir}/rc.d/init.d/openwsmand
|
|
|
|
|
%{_unitdir}/openwsmand.service
|
|
|
|
|
%dir %{_libdir}/openwsman
|
|
|
|
|
%dir %{_libdir}/openwsman/authenticators
|
|
|
|
|
%{_libdir}/openwsman/authenticators/*.so
|
|
|
|
@@ -269,7 +280,6 @@ fi
|
|
|
|
|
%{_libdir}/openwsman/plugins/*.so
|
|
|
|
|
%{_libdir}/openwsman/plugins/*.so.*
|
|
|
|
|
%{_sbindir}/openwsmand
|
|
|
|
|
%{_sbindir}/rcopenwsmand
|
|
|
|
|
%{_libdir}/libwsman_server.so.*
|
|
|
|
|
%{_mandir}/man8/*
|
|
|
|
|
%doc AUTHORS COPYING ChangeLog README
|
|
|
|
@@ -282,6 +292,15 @@ fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Mon May 28 2012 Vitezslav Crhonek <vcrhonek@redhat.com> - 2.2.7-5
|
|
|
|
|
- Rename service file
|
|
|
|
|
|
|
|
|
|
* Wed May 23 2012 Vitezslav Crhonek <vcrhonek@redhat.com> - 2.2.7-4
|
|
|
|
|
- Add systemd support
|
|
|
|
|
|
|
|
|
|
* Thu Feb 09 2012 Vitezslav Crhonek <vcrhonek@redhat.com> - 2.2.7-3
|
|
|
|
|
- Temporarily disable ruby subpackage
|
|
|
|
|
|
|
|
|
|
* Thu Jan 26 2012 Vitezslav Crhonek <vcrhonek@redhat.com> - 2.2.7-2
|
|
|
|
|
- Remove unnecessary net-tools requirement
|
|
|
|
|
Resolves: #784787
|
|
|
|
|