File openwsman.spec of Package openwsman

#
# spec file for package openwsman (Version 2.1.0)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           openwsman
BuildRequires:  gcc-c++ pkg-config swig
BuildRequires:  libcurl-devel libopenssl-devel libxml2-devel pam-devel python-devel ruby-devel sblim-sfcc-devel
PreReq:         sed coreutils grep /bin/hostname
Version:        2.1.0
Release:        2
Url:            http://www.openwsman.org/
License:        BSD 3-Clause
Group:          System/Management
Summary:        Opensource Implementation of WS-Management
Source:         %{name}-%{version}.tar.bz2
Source1:        %{name}.pam
Source2:        %{name}-%{version}-rpmlintrc
Patch0:         %{name}-%{version}-pam-auth.patch
Patch1:         %{name}-%{version}-ac.patch
Patch2:         %{name}-%{version}-wsman-xml-serialize.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Opensource Implementation of WS-Management



Authors:
--------
    Anas Nashif <anas.nashif@intel.com>
    Vadim Revyakin <vadim.revyakin@intel.com>
    Denis Sadykov <denis.sadykov@intel.com>

%package -n libwsman1
License:        BSD 3-Clause
Group:          System/Management
Summary:        Opensource Implementation of WS-Management
Provides:       openwsman = %{version}
Obsoletes:      openwsman < %{version}

%description -n libwsman1
Opensource Implementation of WS-Management



Authors:
--------
    Anas Nashif <anas.nashif@intel.com>
    Vadim Revyakin <vadim.revyakin@intel.com>
    Denis Sadykov <denis.sadykov@intel.com>

%package -n libwsman-devel
License:        BSD 3-Clause
Group:          Development/Libraries/C and C++
Summary:        Opensource Implementation of WS-Management
Provides:       openwsman-devel = %{version}
Obsoletes:      openwsman-devel < %{version}
Requires:       libwsman1 = %{version}
Requires:       %{name}-server = %{version}
Requires:       %{name}-client = %{version}
Requires:       sblim-sfcc-devel libxml2-devel pam-devel
%if 0%{?suse_version} > 1020
Requires:       libcurl-devel
%else
Requires:       curl-devel
%endif

%description -n libwsman-devel
Opensource Implementation of WS-Management



Authors:
--------
    Anas Nashif <anas.nashif@intel.com>
    Vadim Revyakin <vadim.revyakin@intel.com>
    Denis Sadykov <denis.sadykov@intel.com>

%package client
License:        BSD 3-Clause
Group:          System/Management
Summary:        Openwsman Client libraries

%description client
Openwsman Client libraries



Authors:
--------
    Anas Nashif <anas.nashif@intel.com>
    Vadim Revyakin <vadim.revyakin@intel.com>
    Denis Sadykov <denis.sadykov@intel.com>

%package server
License:        BSD 3-Clause
Group:          System/Management
PreReq:         sed coreutils grep diffutils fillup /bin/hostname
Summary:        Openwsman Server and service libraries

%description server
Openwsman Server and service libraries



Authors:
--------
    Anas Nashif <anas.nashif@intel.com>
    Vadim Revyakin <vadim.revyakin@intel.com>
    Denis Sadykov <denis.sadykov@intel.com>

%package python
License:        BSD 3-Clause
Group:          Development/Libraries/Python
Requires:       python
Summary:        Python bindings for openwsman client API

%description python
This package provides Python bindings to access the openwsman client
API.



Authors:
--------
    Anas Nashif <anas.nashif@intel.com>
    Vadim Revyakin <vadim.revyakin@intel.com>
    Denis Sadykov <denis.sadykov@intel.com>

%package ruby
License:        BSD 3-Clause
Group:          System/Management
Requires:       ruby
Summary:        Ruby bindings for openwsman client API

%description ruby
This package provides Ruby bindings to access the openwsman client API.



Authors:
--------
    Anas Nashif <anas.nashif@intel.com>
    Vadim Revyakin <vadim.revyakin@intel.com>
    Denis Sadykov <denis.sadykov@intel.com>

%prep
%setup -q
%patch0
%patch1
%patch2

%build
autoreconf -f -i
%configure \
    --disable-more-warnings \
    --disable-static \
    --enable-python=yes \
    --enable-ruby=yes
make %{?jobs:-j%jobs}

%install
make DESTDIR=$RPM_BUILD_ROOT install
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
rm -f $RPM_BUILD_ROOT%{_libdir}/openwsman/plugins/*.la
rm -f $RPM_BUILD_ROOT%{_libdir}/openwsman/authenticators/*.la
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/init.d
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/pam.d
install -m 644 etc/openwsman.conf $RPM_BUILD_ROOT%{_sysconfdir}/openwsman
install -m 644 etc/ssleay.cnf $RPM_BUILD_ROOT%{_sysconfdir}/openwsman
install -m 755 etc/init/openwsmand.sh $RPM_BUILD_ROOT%{_sysconfdir}/init.d/openwsmand
install -m 644 %{S:1} $RPM_BUILD_ROOT%{_sysconfdir}/pam.d/openwsman
ln -sf %{_sysconfdir}/init.d/openwsmand $RPM_BUILD_ROOT%{_sbindir}/rcopenwsmand

%clean
rm -rf $RPM_BUILD_ROOT

%post -n libwsman1
/sbin/ldconfig

%postun -n libwsman1
/sbin/ldconfig

%post server
/sbin/ldconfig
%{fillup_and_insserv openwsmand}

%preun server
%{stop_on_removal openwsmand}

%postun server
%{insserv_cleanup openwsmand}
rm -f /var/log/wsmand.log
/sbin/ldconfig

%post client
/sbin/ldconfig

%postun client
/sbin/ldconfig

%files -n libwsman1
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog README TODO
%{_libdir}/libwsman.so.*

%files -n libwsman-devel
%defattr(-,root,root)
%{_includedir}/*
%{_libdir}/pkgconfig/*
%{_libdir}/*.so

%files python
%defattr(-,root,root)
%{py_sitedir}/*.so
%{py_sitedir}/*.py

%files ruby
%defattr(-,root,root)
%{_libdir}/ruby/site_ruby/%{rb_ver}/%{rb_arch}/rbwsman.so

%files server
%defattr(-,root,root)
%dir %{_sysconfdir}/openwsman
%config(noreplace) %{_sysconfdir}/openwsman/openwsman.conf
%config(noreplace) %{_sysconfdir}/openwsman/ssleay.cnf
%{_sysconfdir}/openwsman/owsmangencert.sh
%config %{_sysconfdir}/pam.d/openwsman
%attr(0755,root,root) %{_sysconfdir}/init.d/openwsmand
%dir %{_libdir}/openwsman
%dir %{_libdir}/openwsman/authenticators
%{_libdir}/openwsman/authenticators/*.so
%{_libdir}/openwsman/authenticators/*.so.*
%dir %{_libdir}/openwsman/plugins
%{_libdir}/openwsman/plugins/*.so
%{_libdir}/openwsman/plugins/*.so.*
%{_sbindir}/openwsmand
%{_sbindir}/rcopenwsmand
%{_libdir}/libwsman_server.so.*

%files client
%defattr(-,root,root)
%{_libdir}/libwsman_client.so.*
%{_libdir}/libwsman_clientpp.so.*
%{_libdir}/libwsman_curl_client_transport.so.*

%changelog
* Thu Nov 06 2008 kkaempf@suse.de
- Fix possible segfault (bnc#442327)
* Tue Sep 16 2008 prusnak@suse.cz
- updated to 2.1.0
  * Security related fixes
  * Many bug fixes related to http stack
  * GSSAPI support (thanks to Paul Moore)
- updated to 2.0.1
  * Added Java bindings
  * Set proxy in C++ bindings
  * Fixed SelectorSet Filter
  * Added SelectorSet filter support to C++ interface
  * SelecorFilter does not need __cimnamespace
- dropped obsoleted patch:
  * interim-bug-fixes.patch (included in update)
* Thu May 08 2008 schwab@suse.de
- Fix configure script.
* Tue Apr 22 2008 prusnak@suse.cz
- update to 2.0.0
  * Use latest shttpd code base
  * Fixed SSL related issues with shttpd
  * Ruby bindings using swish now and part of openwsman
  * Python bindings update
  * serialize/de-serialize APIs updated
  Make serialize/de-serialize APIs independent of server related structure
  * secure eventing delivery support in WS-Eventing server code and related
  options added in client code.
  * WS-Eventing client interfaces updated to make it more general
  * Source indication namespace configuration supported so that the
  namespace of subscription related classes can be different from
  that of indication class
  * Anonymous identify and custom identify file supported
  * Support SelectorSet Dialect
  * Improved Filter API
  * Improved EPR API
  * Enahnced bindings to support filters
  * Initial cmake support
  * Many other bug fixes
* Thu Jan 24 2008 prusnak@suse.cz
- added libopenssl-devel to BuildRequires
* Wed Dec 19 2007 kkaempf@suse.de
- update to svn 2336
  * added and enabled ruby bindings
  * custom and anonymous Identify support added
- new sub-packages: openwsman-ruby, openwsman-python
- add rpmlintrc for .so files within openwsman-server
* Fri Dec 14 2007 kkaempf@suse.de
- update to 1.5.9 (svn 2314) in preparation of 1.6.0
- enable python bindings
* Mon Nov 12 2007 prusnak@suse.cz
- update to 1.5.1
  * Fixed crash in CIM plugin
  * Fixed serialization in client library
* Tue Nov 06 2007 prusnak@suse.cz
- update to 1.5.0
  Openwsman 1.5 is an interim stable release toward 2.0 with all
  completed features since 1.0. This release serves as a checkpoint
  to evaluate implemented and outstanding features and to take care
  of bugs instead of waiting until the beta phase of 2.0.
  See ChangeLog for more details ...
- fixed installdirs (mkinstalldir.patch)
- added entries to ChangeLog from wiki (changelog.patch)
- renamed openwsman to libwsman1 and openwsman-devel to libwsman-devel
- removed obsolete patches
  * devel.patch (included in update)
  * get_auth.patch (included in update)
  * remote_fs.patch (included in update)
* Fri Aug 03 2007 kkaempf@suse.de
- update to 1.2.0
- default to pam authentication in openwsman-server
- fix filelist (include .so files for plugin loading)
- fix %%preun for base package
- remove wsmand.log when deleting openwsman-server
- fix -devel dependencies
- add wsman_transport_get_auth_method() definition
* Tue Jul 24 2007 prusnak@suse.cz
- branch packages -server and -client
- replaced obsoleted macro %%run_ldconfig with direct call of ldconfig
- added $remote_fs to Required-Start in init file (remote_fs.patch)
* Fri Jul 13 2007 prusnak@suse.cz
- created package (version 1.1.0)
- based on BuildService package openwsman in home:nashif
openSUSE Build Service is sponsored by