From 851a2cacb6a8e6473528266a6b90ee1976c31550 Mon Sep 17 00:00:00 2001 From: Klaus Kämpf Date: Thu, 8 Sep 2011 09:26:14 +0200 Subject: Fix build with gcc 4.6, add wseventmgr --- wsmancli.spec.in | 51 ++++++++++++++++++++++++++++++++++++--------------- 1 file changed, 36 insertions(+), 15 deletions(-) diff --git a/wsmancli.spec.in b/wsmancli.spec.in index 69a50fa..95bfb45 100644 --- a/wsmancli.spec.in +++ b/wsmancli.spec.in @@ -1,33 +1,54 @@ +# +# spec file for package wsmancli (Version @PACKAGE_VERSION@) +# + +# norootforbuild + + Name: wsmancli -Version: @PACKAGE_VERSION@ -Release: 1 -License: BSD +BuildRequires: gcc-c++ libwsman-devel pkgconfig +%if 0%{?suse_version} > 1010 +BuildRequires: libcurl-devel +%else +# SLE 10 +BuildRequires: curl-devel +%endif +Version: @PACKAGE_VERSION@ +Release: 11 Url: http://www.openwsman.org/ -Source: %{name}-%{version}.tar.gz +License: BSD3c +Group: System/Management +Summary: Opensource Implementation of WS-Management - Command line utility +Source: %{name}-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-build -Group: Applications/Management -BuildRequires: openwsman-devel pkgconfig curl-devel -Requires: openwsman curl -Summary: Opensource Implementation of WS-Management - Command line Utility - %description -Part of openwsman, an Opensource Implementation of WS-Management +Part of Openwsman, an Opensource Implementation of WS-Management +Authors: +-------- + Anas Nashif + Vadim Revyakin + Denis Sadykov + %prep -%setup +%setup -q -n %{name}-%{version} %build -%configure -make +%configure --disable-more-warnings +make %{?jobs:-j%jobs} %install -make DESTDIR=%{buildroot} install +make DESTDIR=$RPM_BUILD_ROOT install + %clean -rm -rf "$RPM_BUILD_ROOT" +rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %{_bindir}/wsman +%{_bindir}/wseventmgr + +%changelog -- cgit