Build with full relro, Fix provides/requires, Fix pam.d config

This commit is contained in:
Vitezslav Crhonek 2013-09-30 15:09:04 +02:00
parent 7195a6422b
commit f20c6a60ed
2 changed files with 37 additions and 8 deletions

View File

@ -0,0 +1,15 @@
diff -up openwsman-2.4.0/etc/pam/openwsman.pamsetup openwsman-2.4.0/etc/pam/openwsman
--- openwsman-2.4.0/etc/pam/openwsman.pamsetup 2013-09-27 17:14:39.147565052 +0200
+++ openwsman-2.4.0/etc/pam/openwsman 2013-09-27 17:15:12.744578165 +0200
@@ -1,7 +1,7 @@
#%PAM-1.0
-auth required pam_unix2.so nullok
+auth required pam_unix.so nullok
auth required pam_nologin.so
-account required pam_unix2.so
+account required pam_unix.so
password required pam_pwcheck.so nullok
-password required pam_unix2.so nullok use_first_pass use_authtok
-session required pam_unix2.so none
+password required pam_unix.so nullok use_first_pass use_authtok
+session required pam_unix.so none

View File

@ -14,7 +14,7 @@ BuildRequires: perl-devel pkgconfig openssl-devel
BuildRequires: cmake BuildRequires: cmake
BuildRequires: systemd-units BuildRequires: systemd-units
Version: 2.4.0 Version: 2.4.0
Release: 1%{?dist} Release: 2%{?dist}
Url: http://www.openwsman.org/ Url: http://www.openwsman.org/
License: BSD License: BSD
Group: Applications/System Group: Applications/System
@ -27,6 +27,7 @@ Source2: openwsmand.service
# script for testing presence of the certificates in ExecStartPre # script for testing presence of the certificates in ExecStartPre
Source3: owsmantestcert.sh Source3: owsmantestcert.sh
Patch1: openwsman-2.2.7-libssl.patch Patch1: openwsman-2.2.7-libssl.patch
Patch2: openwsman-2.4.0-pamsetup.patch
%description %description
Openwsman is a project intended to provide an open-source Openwsman is a project intended to provide an open-source
@ -44,8 +45,8 @@ all system management aspects.
License: BSD License: BSD
Group: System Environment/Libraries Group: System Environment/Libraries
Summary: Open source Implementation of WS-Management Summary: Open source Implementation of WS-Management
Provides: %{name} = %{version} Provides: %{name} = %{version}-%{release}
Obsoletes: %{name} < %{version} Obsoletes: %{name} < %{version}-%{release}
%description -n libwsman1 %description -n libwsman1
Openwsman library for packages dependent on openwsman Openwsman library for packages dependent on openwsman
@ -57,11 +58,11 @@ Openwsman library for packages dependent on openwsman
License: BSD License: BSD
Group: Development/Libraries Group: Development/Libraries
Summary: Open source Implementation of WS-Management Summary: Open source Implementation of WS-Management
Provides: %{name}-devel = %{version} Provides: %{name}-devel = %{version}-%{release}
Obsoletes: %{name}-devel < %{version} Obsoletes: %{name}-devel < %{version}-%{release}
Requires: libwsman1 = %{version} Requires: libwsman1 = %{version}-%{release}
Requires: %{name}-server = %{version} Requires: %{name}-server = %{version}-%{release}
Requires: %{name}-client = %{version} Requires: %{name}-client = %{version}-%{release}
Requires: sblim-sfcc-devel libxml2-devel pam-devel Requires: sblim-sfcc-devel libxml2-devel pam-devel
Requires: libcurl-devel Requires: libcurl-devel
@ -89,6 +90,7 @@ Requires(post): chkconfig
Requires(preun): chkconfig Requires(preun): chkconfig
Requires(postun): initscripts Requires(postun): initscripts
Summary: Openwsman Server and service libraries Summary: Openwsman Server and service libraries
Requires: libwsman1 = %{version}-%{release}
%description server %description server
Openwsman Server and service libraries Openwsman Server and service libraries
@ -101,6 +103,7 @@ License: BSD
Group: Development/Libraries Group: Development/Libraries
Summary: Python bindings for openwsman client API Summary: Python bindings for openwsman client API
Requires: python Requires: python
Requires: libwsman1 = %{version}-%{release}
%description python %description python
This package provides Python bindings to access the openwsman client This package provides Python bindings to access the openwsman client
@ -115,6 +118,7 @@ Group: Development/Libraries
Requires: ruby Requires: ruby
Requires: ruby(release) Requires: ruby(release)
Summary: Ruby bindings for openwsman client API Summary: Ruby bindings for openwsman client API
Requires: libwsman1 = %{version}-%{release}
%description ruby %description ruby
This package provides Ruby bindings to access the openwsman client API. This package provides Ruby bindings to access the openwsman client API.
@ -135,6 +139,7 @@ License: BSD
Group: Development/Libraries Group: Development/Libraries
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
Summary: Perl bindings for openwsman client API Summary: Perl bindings for openwsman client API
Requires: libwsman1 = %{version}-%{release}
%description perl %description perl
This package provides Perl bindings to access the openwsman client API. This package provides Perl bindings to access the openwsman client API.
@ -145,6 +150,7 @@ This package provides Perl bindings to access the openwsman client API.
%prep %prep
%setup -q %setup -q
%patch1 -p1 -b .libssl %patch1 -p1 -b .libssl
%patch2 -p1 -b .pamsetup
# Fix wrong symlinks (fixed upstream, will be in 2.4.1) # Fix wrong symlinks (fixed upstream, will be in 2.4.1)
ln -sf %{_bindir}/rdoc bindings/ruby/rdoc1_9.rb ln -sf %{_bindir}/rdoc bindings/ruby/rdoc1_9.rb
@ -159,6 +165,8 @@ mkdir build
export RPM_OPT_FLAGS="$RPM_OPT_FLAGS -DFEDORA -DNO_SSL_CALLBACK" export RPM_OPT_FLAGS="$RPM_OPT_FLAGS -DFEDORA -DNO_SSL_CALLBACK"
export SSL_LIB=`readlink %{_libdir}/libssl.so` export SSL_LIB=`readlink %{_libdir}/libssl.so`
export CFLAGS="-D_GNU_SOURCE -fPIE -DPIE"
export LDFLAGS="$LDFLAGS -Wl,-z,now -pie"
cd build cd build
cmake \ cmake \
-DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_PREFIX=/usr \
@ -282,6 +290,12 @@ rm -f /var/log/wsmand.log
%changelog %changelog
* 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 * Tue Sep 17 2013 Vitezslav Crhonek <vcrhonek@redhat.com> - 2.4.0-1
- Update to openwsman-2.4.0 - Update to openwsman-2.4.0
- Fix bogus date in %%changelog - Fix bogus date in %%changelog