|
|
|
@@ -3,17 +3,19 @@
|
|
|
|
|
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
|
|
|
|
|
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
|
|
|
|
|
%endif
|
|
|
|
|
%{!?ruby_sitelib: %global ruby_sitelib %(ruby -rrbconfig -e 'puts Config::CONFIG["sitelibdir"] ')}
|
|
|
|
|
%{!?ruby_sitearch: %global ruby_sitearch %(ruby -rrbconfig -e 'puts Config::CONFIG["sitearchdir"] ')}
|
|
|
|
|
%{!?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"])')}
|
|
|
|
|
|
|
|
|
|
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 rubygem(rdoc) perl
|
|
|
|
|
BuildRequires: python python-devel perl
|
|
|
|
|
BuildRequires: perl-devel pkgconfig openssl-devel
|
|
|
|
|
BuildRequires: cmake
|
|
|
|
|
Version: 2.2.7
|
|
|
|
|
Release: 2%{?dist}
|
|
|
|
|
BuildRequires: systemd-units
|
|
|
|
|
Version: 2.3.6
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Url: http://www.openwsman.org/
|
|
|
|
|
License: BSD
|
|
|
|
|
Group: Applications/System
|
|
|
|
@@ -21,9 +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
|
|
|
|
|
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXXX)
|
|
|
|
|
Patch1: openwsman-2.2.7-libssl.patch
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Openwsman is a project intended to provide an open-source
|
|
|
|
@@ -110,7 +115,7 @@ API.
|
|
|
|
|
License: BSD
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
|
Requires: ruby
|
|
|
|
|
Requires: ruby(abi) = 1.8
|
|
|
|
|
Requires: ruby(abi) = 1.9.1
|
|
|
|
|
Summary: Ruby bindings for openwsman client API
|
|
|
|
|
|
|
|
|
|
%description ruby
|
|
|
|
@@ -135,7 +140,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
|
|
|
|
|
%patch1 -p1 -b .libssl
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
# Removing executable permissions on .c and .h files to fix rpmlint warnings.
|
|
|
|
@@ -156,12 +161,12 @@ cmake \
|
|
|
|
|
-DCMAKE_SKIP_RPATH=1 \
|
|
|
|
|
-DPACKAGE_ARCHITECTURE=`uname -m` \
|
|
|
|
|
-DLIB=%{_lib} \
|
|
|
|
|
-DBUILD_RUBY_GEM=no \
|
|
|
|
|
..
|
|
|
|
|
|
|
|
|
|
make CFLAGS="-DSSL_LIB='\"$SSL_LIB\"'"
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
cd build
|
|
|
|
|
make DESTDIR=%{buildroot} install
|
|
|
|
|
cd ..
|
|
|
|
@@ -174,10 +179,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 %{buildroot}/%{_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/
|
|
|
|
@@ -186,29 +191,20 @@ install -m 644 include/wsman-xml.h %{buildroot}/%{_includedir}/openwsman
|
|
|
|
|
install -m 644 include/wsman-xml-binding.h %{buildroot}/%{_includedir}/openwsman
|
|
|
|
|
install -m 644 include/wsman-dispatcher.h %{buildroot}/%{_includedir}/openwsman
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
|
|
%post -n libwsman1 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
%postun -n libwsman1 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
%post server
|
|
|
|
|
/sbin/ldconfig
|
|
|
|
|
/sbin/chkconfig --add openwsmand
|
|
|
|
|
%systemd_post openwsmand.service
|
|
|
|
|
|
|
|
|
|
%preun server
|
|
|
|
|
if [ $1 = 0 ] ; then
|
|
|
|
|
/sbin/service %{name}d stop >/dev/null 2>&1
|
|
|
|
|
/sbin/chkconfig --del openwsmand
|
|
|
|
|
fi
|
|
|
|
|
%systemd_preun openwsmand.service
|
|
|
|
|
|
|
|
|
|
%postun server
|
|
|
|
|
rm -f /var/log/wsmand.log
|
|
|
|
|
|
|
|
|
|
if [ "$1" -ge "1" ] ; then
|
|
|
|
|
/sbin/service %{name}d condrestart >/dev/null 2>&1 || :
|
|
|
|
|
fi
|
|
|
|
|
%systemd_postun_with_restart openwsmand.service
|
|
|
|
|
/sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
%post client -p /sbin/ldconfig
|
|
|
|
@@ -216,51 +212,45 @@ fi
|
|
|
|
|
%postun client -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
%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.*
|
|
|
|
|
|
|
|
|
|
%files -n libwsman-devel
|
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
%{_includedir}/*
|
|
|
|
|
%{_libdir}/pkgconfig/*
|
|
|
|
|
%{_libdir}/*.so
|
|
|
|
|
%doc AUTHORS COPYING ChangeLog README
|
|
|
|
|
%doc AUTHORS COPYING ChangeLog README.md
|
|
|
|
|
|
|
|
|
|
%files python
|
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
%{python_sitearch}/*.so
|
|
|
|
|
%{python_sitearch}/*.py
|
|
|
|
|
%{python_sitearch}/*.pyc
|
|
|
|
|
%{python_sitearch}/*.pyo
|
|
|
|
|
%doc AUTHORS COPYING ChangeLog README
|
|
|
|
|
%doc AUTHORS COPYING ChangeLog README.md
|
|
|
|
|
|
|
|
|
|
%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
|
|
|
|
|
%doc AUTHORS COPYING ChangeLog README.md
|
|
|
|
|
|
|
|
|
|
%files perl
|
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
%{perl_vendorarch}/openwsman.so
|
|
|
|
|
%{perl_vendorlib}/openwsman.pm
|
|
|
|
|
%doc AUTHORS COPYING ChangeLog README
|
|
|
|
|
%doc AUTHORS COPYING ChangeLog README.md
|
|
|
|
|
|
|
|
|
|
%files server
|
|
|
|
|
# Don't remove *.so files from the server package.
|
|
|
|
|
# the server fails to start without these files.
|
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
%dir %{_sysconfdir}/openwsman
|
|
|
|
|
%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,19 +259,52 @@ fi
|
|
|
|
|
%{_libdir}/openwsman/plugins/*.so
|
|
|
|
|
%{_libdir}/openwsman/plugins/*.so.*
|
|
|
|
|
%{_sbindir}/openwsmand
|
|
|
|
|
%{_sbindir}/rcopenwsmand
|
|
|
|
|
%{_libdir}/libwsman_server.so.*
|
|
|
|
|
%{_mandir}/man8/*
|
|
|
|
|
%doc AUTHORS COPYING ChangeLog README
|
|
|
|
|
%doc AUTHORS COPYING ChangeLog README.md
|
|
|
|
|
|
|
|
|
|
%files client
|
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
%{_libdir}/libwsman_clientpp.so.*
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/openwsman/openwsman_client.conf
|
|
|
|
|
%doc AUTHORS COPYING ChangeLog README
|
|
|
|
|
%doc AUTHORS COPYING ChangeLog README.md
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Thu Nov 08 2012 Vitezslav Crhonek <vcrhonek@redhat.com> - 2.3.6-1
|
|
|
|
|
- Update to openwsman-2.3.6
|
|
|
|
|
|
|
|
|
|
* Mon Sep 17 2012 Vitezslav Crhonek <vcrhonek@redhat.com> - 2.3.5-1
|
|
|
|
|
- Update to openwsman-2.3.5
|
|
|
|
|
- Enable ruby subpackage again
|
|
|
|
|
|
|
|
|
|
* Tue Aug 28 2012 Vitezslav Crhonek <vcrhonek@redhat.com> - 2.3.0-7
|
|
|
|
|
- Fix issues found by fedora-review utility in the spec file
|
|
|
|
|
|
|
|
|
|
* Thu Aug 23 2012 Vitezslav Crhonek <vcrhonek@redhat.com> - 2.3.0-6
|
|
|
|
|
- Use new systemd-rpm macros
|
|
|
|
|
Resolves: #850405
|
|
|
|
|
|
|
|
|
|
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.0-5
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sun Jun 10 2012 Petr Pisar <ppisar@redhat.com> - 2.3.0-4
|
|
|
|
|
- Perl 5.16 rebuild
|
|
|
|
|
|
|
|
|
|
* Mon May 28 2012 Vitezslav Crhonek <vcrhonek@redhat.com> - 2.3.0-3
|
|
|
|
|
- Rename service file
|
|
|
|
|
|
|
|
|
|
* Wed May 23 2012 Vitezslav Crhonek <vcrhonek@redhat.com> - 2.3.0-2
|
|
|
|
|
- Add systemd support
|
|
|
|
|
|
|
|
|
|
* Tue Mar 27 2012 Vitezslav Crhonek <vcrhonek@redhat.com> - 2.3.0-1
|
|
|
|
|
- Update to openwsman-2.3.0
|
|
|
|
|
|
|
|
|
|
* Thu Feb 09 2012 Vitezslav Crhonek <vcrhonek@redhat.com> - 2.2.7-4
|
|
|
|
|
- Fix libssl loading
|
|
|
|
|
|
|
|
|
|
* 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
|
|
|
|
|