summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile.am6
-rw-r--r--src/Makefile.am3
-rwxr-xr-xsrc/wsmid_identify.c1
-rw-r--r--wsmancli.spec.in35
4 files changed, 40 insertions, 5 deletions
diff --git a/Makefile.am b/Makefile.am
index f558426..f6a25a0 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,6 +1,6 @@
SUBDIRS = src
package: dist
- cp openwsman.spec /usr/src/packages/SPEC
- cp openwsman-*.tar.gz /usr/src/packages/SOURCES
- rpmbuild -ba openwsman.spec
+ cp wsmancli.spec /usr/src/packages/SPEC
+ cp wsmancli-*.tar.gz /usr/src/packages/SOURCES
+ rpmbuild -ba wsmancli.spec
diff --git a/src/Makefile.am b/src/Makefile.am
index d142eb0..8db8653 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -14,8 +14,7 @@ wsmid_identify_LDADD = \
wsman_SOURCES = wsman.c \
wsman-client-options.c \
- wsman-client-options.h \
- wsman.h
+ wsman-client-options.h
wsmid_identify_SOURCES = \
wsmid_identify.c
diff --git a/src/wsmid_identify.c b/src/wsmid_identify.c
index e50d10a..d62d98d 100755
--- a/src/wsmid_identify.c
+++ b/src/wsmid_identify.c
@@ -146,6 +146,7 @@ int main(int argc, char** argv)
printf("%s\n", id->ProtocolVersion);
if (!protocol && !vendor && !version ) {
+ printf("\n");
printf("%s %s supporting protocol %s\n", id->ProductVendor, id->ProductVersion,id->ProtocolVersion);
}
diff --git a/wsmancli.spec.in b/wsmancli.spec.in
new file mode 100644
index 0000000..a91b6bc
--- /dev/null
+++ b/wsmancli.spec.in
@@ -0,0 +1,35 @@
+Name: wsmancli
+Version: @PACKAGE_VERSION@
+Release: 1
+License: BSD
+Url: http://www.openwsman.org/
+Source: %{name}-%{version}.tar.gz
+BuildRoot: %{_tmppath}/%{name}-%{version}-build
+Group: Applications/Management
+BuildRequires: openwsman-devel
+Requires: openwsman
+Summary: Opensource Implementation of WS-Management - Command line Utility
+
+
+%description
+Part of openwsman, an Opensource Implementation of WS-Management
+
+
+
+%prep
+%setup
+
+%build
+%configure
+make
+
+%install
+make DESTDIR=%{buildroot} install
+%clean
+rm -rf "$RPM_BUILD_ROOT"
+
+%files
+%defattr(-,root,root)
+%{_bindir}/wsman
+%{_bindir}/wsmid_identfy
+