|
|
|
@@ -4,26 +4,23 @@
|
|
|
|
|
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
# RubyGems's macros expect gem_name to exist.
|
|
|
|
|
%global gem_name %{name}
|
|
|
|
|
|
|
|
|
|
Name: openwsman
|
|
|
|
|
BuildRequires: swig
|
|
|
|
|
BuildRequires: libcurl-devel libxml2-devel pam-devel sblim-sfcc-devel
|
|
|
|
|
BuildRequires: python python-devel ruby ruby-devel rubygems-devel perl
|
|
|
|
|
BuildRequires: python python-devel ruby ruby-devel rubygem(rdoc) perl
|
|
|
|
|
BuildRequires: python python-devel perl
|
|
|
|
|
BuildRequires: perl-devel pkgconfig openssl-devel
|
|
|
|
|
#BuildRequires: java-1.8.0-openjdk-devel
|
|
|
|
|
BuildRequires: cmake
|
|
|
|
|
BuildRequires: systemd-units
|
|
|
|
|
Version: 2.4.15
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Version: 2.3.6
|
|
|
|
|
Release: 6%{?dist}
|
|
|
|
|
Url: http://www.openwsman.org/
|
|
|
|
|
License: BSD
|
|
|
|
|
Group: Applications/System
|
|
|
|
|
Summary: Open source Implementation of WS-Management
|
|
|
|
|
# You can get this tarball here:
|
|
|
|
|
# https://github.com/Openwsman/openwsman/archive/v2.4.12.tar.gz
|
|
|
|
|
Source: %{name}-%{version}.tar.gz
|
|
|
|
|
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
|
|
|
|
@@ -31,9 +28,6 @@ Source2: openwsmand.service
|
|
|
|
|
# script for testing presence of the certificates in ExecStartPre
|
|
|
|
|
Source3: owsmantestcert.sh
|
|
|
|
|
Patch1: openwsman-2.2.7-libssl.patch
|
|
|
|
|
Patch2: openwsman-2.4.0-pamsetup.patch
|
|
|
|
|
Patch3: openwsman-2.4.12-ruby-binding-build.patch
|
|
|
|
|
Patch4: openwsman-2.4.15-fix-version.patch
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Openwsman is a project intended to provide an open-source
|
|
|
|
@@ -51,8 +45,8 @@ all system management aspects.
|
|
|
|
|
License: BSD
|
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
|
Summary: Open source Implementation of WS-Management
|
|
|
|
|
Provides: %{name} = %{version}-%{release}
|
|
|
|
|
Obsoletes: %{name} < %{version}-%{release}
|
|
|
|
|
Provides: %{name} = %{version}
|
|
|
|
|
Obsoletes: %{name} < %{version}
|
|
|
|
|
|
|
|
|
|
%description -n libwsman1
|
|
|
|
|
Openwsman library for packages dependent on openwsman
|
|
|
|
@@ -64,11 +58,11 @@ Openwsman library for packages dependent on openwsman
|
|
|
|
|
License: BSD
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
|
Summary: Open source Implementation of WS-Management
|
|
|
|
|
Provides: %{name}-devel = %{version}-%{release}
|
|
|
|
|
Obsoletes: %{name}-devel < %{version}-%{release}
|
|
|
|
|
Requires: libwsman1 = %{version}-%{release}
|
|
|
|
|
Requires: %{name}-server = %{version}-%{release}
|
|
|
|
|
Requires: %{name}-client = %{version}-%{release}
|
|
|
|
|
Provides: %{name}-devel = %{version}
|
|
|
|
|
Obsoletes: %{name}-devel < %{version}
|
|
|
|
|
Requires: libwsman1 = %{version}
|
|
|
|
|
Requires: %{name}-server = %{version}
|
|
|
|
|
Requires: %{name}-client = %{version}
|
|
|
|
|
Requires: sblim-sfcc-devel libxml2-devel pam-devel
|
|
|
|
|
Requires: libcurl-devel
|
|
|
|
|
|
|
|
|
@@ -96,7 +90,6 @@ Requires(post): chkconfig
|
|
|
|
|
Requires(preun): chkconfig
|
|
|
|
|
Requires(postun): initscripts
|
|
|
|
|
Summary: Openwsman Server and service libraries
|
|
|
|
|
Requires: libwsman1 = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%description server
|
|
|
|
|
Openwsman Server and service libraries
|
|
|
|
@@ -109,7 +102,6 @@ License: BSD
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
|
Summary: Python bindings for openwsman client API
|
|
|
|
|
Requires: python
|
|
|
|
|
Requires: libwsman1 = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%description python
|
|
|
|
|
This package provides Python bindings to access the openwsman client
|
|
|
|
@@ -118,26 +110,24 @@ API.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package -n rubygem-%{gem_name}
|
|
|
|
|
%package ruby
|
|
|
|
|
License: BSD
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
|
Summary: Ruby client bindings for Openwsman
|
|
|
|
|
Obsoletes: %{name}-ruby < %{version}-%{release}
|
|
|
|
|
Requires: ruby
|
|
|
|
|
Requires: ruby(release)
|
|
|
|
|
Summary: Ruby bindings for openwsman client API
|
|
|
|
|
|
|
|
|
|
%description -n rubygem-%{gem_name}
|
|
|
|
|
The openwsman gem provides a Ruby API to manage systems using
|
|
|
|
|
the WS-Management protocol.
|
|
|
|
|
|
|
|
|
|
%package -n rubygem-%{gem_name}-doc
|
|
|
|
|
Summary: Documentation for %{name}
|
|
|
|
|
Group: Documentation
|
|
|
|
|
Requires: rubygem-%{gem_name} = %{version}-%{release}
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
%description -n rubygem-%{gem_name}-doc
|
|
|
|
|
Documentation for rubygem-%{gem_name}
|
|
|
|
|
%description ruby
|
|
|
|
|
This package provides Ruby bindings to access the openwsman client API.
|
|
|
|
|
|
|
|
|
|
#%package java
|
|
|
|
|
#Requires: java
|
|
|
|
|
#Requires: libwsman1 = %{version}
|
|
|
|
|
#Summary: Java bindings for openwsman client API
|
|
|
|
|
#Group: Development/Libraries
|
|
|
|
|
|
|
|
|
|
#%description java
|
|
|
|
|
#This package provides Java bindings to access the openwsman client API.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package perl
|
|
|
|
@@ -145,7 +135,6 @@ License: BSD
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
|
|
|
Summary: Perl bindings for openwsman client API
|
|
|
|
|
Requires: libwsman1 = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%description perl
|
|
|
|
|
This package provides Perl bindings to access the openwsman client API.
|
|
|
|
@@ -156,16 +145,6 @@ This package provides Perl bindings to access the openwsman client API.
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q
|
|
|
|
|
%patch1 -p1 -b .libssl
|
|
|
|
|
%patch2 -p1 -b .pamsetup
|
|
|
|
|
%patch3 -p1 -b .ruby-binding-build
|
|
|
|
|
%patch4 -p1 -b .fix-version
|
|
|
|
|
|
|
|
|
|
# support ruby 2.2
|
|
|
|
|
pushd bindings/ruby
|
|
|
|
|
cat rdoc2.1 | sed -e 's|rdoc2_1|rdoc2_2|' > rdoc2.2
|
|
|
|
|
chmod 0755 rdoc2.2
|
|
|
|
|
ln -sf %{_bindir}/rdoc rdoc2_2.rb
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
# Removing executable permissions on .c and .h files to fix rpmlint warnings.
|
|
|
|
@@ -176,8 +155,6 @@ mkdir build
|
|
|
|
|
|
|
|
|
|
export RPM_OPT_FLAGS="$RPM_OPT_FLAGS -DFEDORA -DNO_SSL_CALLBACK"
|
|
|
|
|
export SSL_LIB=`readlink %{_libdir}/libssl.so`
|
|
|
|
|
export CFLAGS="-D_GNU_SOURCE -fPIE -DPIE"
|
|
|
|
|
export LDFLAGS="$LDFLAGS -Wl,-z,now -pie"
|
|
|
|
|
cd build
|
|
|
|
|
cmake \
|
|
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
@@ -188,24 +165,13 @@ cmake \
|
|
|
|
|
-DCMAKE_SKIP_RPATH=1 \
|
|
|
|
|
-DPACKAGE_ARCHITECTURE=`uname -m` \
|
|
|
|
|
-DLIB=%{_lib} \
|
|
|
|
|
-DBUILD_RUBY_GEM=no \
|
|
|
|
|
..
|
|
|
|
|
|
|
|
|
|
make CFLAGS="-DSSL_LIB='\"$SSL_LIB\"'"
|
|
|
|
|
|
|
|
|
|
# Make the freshly build openwsman libraries available to build the gem's
|
|
|
|
|
# binary extension.
|
|
|
|
|
export LIBRARY_PATH=/builddir/build/BUILD/%{name}-%{version}/build/src/lib
|
|
|
|
|
export CPATH=/builddir/build/BUILD/%{name}-%{version}/include/
|
|
|
|
|
export LD_LIBRARY_PATH=/builddir/build/BUILD/%{name}-%{version}/build/src/lib/
|
|
|
|
|
|
|
|
|
|
%gem_install -n ./bindings/ruby/%{name}-%{version}.gem
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
cd build
|
|
|
|
|
|
|
|
|
|
# Do not install the ruby extension, we are proviging the rubygem- instead.
|
|
|
|
|
echo -n > bindings/ruby/cmake_install.cmake
|
|
|
|
|
|
|
|
|
|
make DESTDIR=%{buildroot} install
|
|
|
|
|
cd ..
|
|
|
|
|
rm -f %{buildroot}/%{_libdir}/*.la
|
|
|
|
@@ -228,15 +194,6 @@ 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
|
|
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}%{gem_dir}
|
|
|
|
|
cp -pa ./build%{gem_dir}/* \
|
|
|
|
|
%{buildroot}%{gem_dir}/
|
|
|
|
|
|
|
|
|
|
rm -rf %{buildroot}%{gem_instdir}/ext
|
|
|
|
|
|
|
|
|
|
mkdir -p %{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
|
|
|
|
@@ -276,16 +233,16 @@ rm -f /var/log/wsmand.log
|
|
|
|
|
%{python_sitearch}/*.pyo
|
|
|
|
|
%doc AUTHORS COPYING ChangeLog README.md
|
|
|
|
|
|
|
|
|
|
%files -n rubygem-%{gem_name}
|
|
|
|
|
%files ruby
|
|
|
|
|
%{ruby_vendorarchdir}/_openwsman.so
|
|
|
|
|
%dir %{ruby_vendorlibdir}/openwsman
|
|
|
|
|
%{ruby_vendorlibdir}/openwsman/*.rb
|
|
|
|
|
%doc AUTHORS COPYING ChangeLog README.md
|
|
|
|
|
%dir %{gem_instdir}
|
|
|
|
|
%{gem_libdir}
|
|
|
|
|
%{gem_extdir_mri}
|
|
|
|
|
%exclude %{gem_cache}
|
|
|
|
|
%{gem_spec}
|
|
|
|
|
|
|
|
|
|
%files -n rubygem-%{gem_name}-doc
|
|
|
|
|
%doc %{gem_docdir}
|
|
|
|
|
|
|
|
|
|
#%files java
|
|
|
|
|
#%defattr(-,root,root)
|
|
|
|
|
#%{_javadir}/*jar
|
|
|
|
|
|
|
|
|
|
%files perl
|
|
|
|
|
%{perl_vendorarch}/openwsman.so
|
|
|
|
@@ -321,64 +278,15 @@ rm -f /var/log/wsmand.log
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Tue Jun 23 2015 Vitezslav Crhonek <vcrhonek@redhat.com> - 2.4.15-1
|
|
|
|
|
- Update to openwsman-2.4.15
|
|
|
|
|
|
|
|
|
|
* Mon Feb 09 2015 Vitezslav Crhonek <vcrhonek@redhat.com> - 2.4.12-1
|
|
|
|
|
- Update to openwsman-2.4.12
|
|
|
|
|
|
|
|
|
|
* Sat Jan 17 2015 Mamoru TASAKA <mtasaka@fedoraproject.org> - 2.4.6-5
|
|
|
|
|
- Rebuild for https://fedoraproject.org/wiki/Changes/Ruby_2.2
|
|
|
|
|
|
|
|
|
|
* Tue Aug 26 2014 Jitka Plesnikova <jplesnik@redhat.com> - 2.4.6-4
|
|
|
|
|
- Perl 5.20 rebuild
|
|
|
|
|
|
|
|
|
|
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.6-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.6-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue May 20 2014 Vitezslav Crhonek <vcrhonek@redhat.com> - 2.4.6-1
|
|
|
|
|
- Update to openwsman-2.4.6
|
|
|
|
|
|
|
|
|
|
* Fri Apr 25 2014 Vít Ondruch <vondruch@redhat.com> - 2.4.4-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_2.1
|
|
|
|
|
|
|
|
|
|
* Tue Mar 11 2014 Vitezslav Crhonek <vcrhonek@redhat.com> - 2.4.4-1
|
|
|
|
|
- Update to openwsman-2.4.4
|
|
|
|
|
- Provide rubygem-openwsman instead of openwsman-ruby (patch by Vit Ondruch)
|
|
|
|
|
|
|
|
|
|
* Wed Feb 05 2014 Vitezslav Crhonek <vcrhonek@redhat.com> - 2.4.3-2
|
|
|
|
|
- Update openwsmand man page
|
|
|
|
|
|
|
|
|
|
* Thu Jan 23 2014 Vitezslav Crhonek <vcrhonek@redhat.com> - 2.4.3-1
|
|
|
|
|
- Update to openwsman-2.4.3
|
|
|
|
|
|
|
|
|
|
* Tue Jan 07 2014 Vitezslav Crhonek <vcrhonek@redhat.com> - 2.4.0-3
|
|
|
|
|
- Start the service using SSL by default
|
|
|
|
|
|
|
|
|
|
* Mon Sep 30 2013 Vitezslav Crhonek <vcrhonek@redhat.com> - 2.4.0-2
|
|
|
|
|
- Build with full relro
|
|
|
|
|
- Fix provides/requires
|
|
|
|
|
- Fix pam.d config (patch by Ales Ledvinka)
|
|
|
|
|
Resolves: #1013018
|
|
|
|
|
|
|
|
|
|
* Tue Sep 17 2013 Vitezslav Crhonek <vcrhonek@redhat.com> - 2.4.0-1
|
|
|
|
|
- Update to openwsman-2.4.0
|
|
|
|
|
- Fix bogus date in %%changelog
|
|
|
|
|
|
|
|
|
|
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.6-8
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Jul 17 2013 Petr Pisar <ppisar@redhat.com> - 2.3.6-7
|
|
|
|
|
- Perl 5.18 rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Mar 19 2013 Vít Ondruch <vondruch@redhat.com> - 2.3.6-6
|
|
|
|
|
- Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0
|
|
|
|
|
|
|
|
|
|
* Mon Mar 18 2013 Praveen K Paladugu <praveen_paladugu@dell.com> - 2.3.6-4
|
|
|
|
|
- Updated the dependency for ruby bindings and introduced the java bindings.
|
|
|
|
|
* Mon Mar 18 2013 Praveen K Paladugu <praveen_paladugu@dell.com>-2.3.6-5
|
|
|
|
|
- Disabling the java binding for now.
|
|
|
|
|
|
|
|
|
|
* Fri Mar 15 2013 Praveen K Paladugu <praveen_paladugu@dell.com>-2.3.6-4
|
|
|
|
|
- Enabled java bindings in the build
|
|
|
|
|
- Removed versioned dep on ruby
|
|
|
|
|
|
|
|
|
|
* Wed Mar 13 2013 Peter Robinson <pbrobinson@fedoraproject.org> 2.3.6-3
|
|
|
|
|
- rebuild for ruby 2
|
|
|
|
@@ -470,7 +378,7 @@ rm -f /var/log/wsmand.log
|
|
|
|
|
* Tue Jun 01 2010 Marcela Maslanova <mmaslano@redhat.com> - 2.2.3-4
|
|
|
|
|
- Mass rebuild with perl-5.12.0
|
|
|
|
|
|
|
|
|
|
* Thu Apr 22 2010 Praveen K Paladugu <praveen_paladugu@dell.com> - 2.2.3-3
|
|
|
|
|
* Tue Apr 22 2010 Praveen K Paladugu <praveen_paladugu@dell.com> - 2.2.3-3
|
|
|
|
|
- authors.patch: Moved all the AUTHORS info to AUTHORS file.
|
|
|
|
|
- Corrected the Source tag.
|
|
|
|
|
- Corrected the package dependencies to break cyclic dependencies.
|
|
|
|
|