Package winrs separately
diff --git a/package/openwsman.spec.in b/package/openwsman.spec.in
index cabf380..ca1aa50 100644
--- a/package/openwsman.spec.in
+++ b/package/openwsman.spec.in
@@ -309,6 +309,16 @@
%endif
+%package -n winrs
+Summary: Windows Remote Shell
+Group: System/Management
+Requires: openwsman-ruby = %{version}
+
+%description -n winrs
+This is a command line tool for the Windows Remote Shell protocol. You
+can use it to send shell commands to a remote Windows hosts.
+
+
%prep
%setup -q
%if 0%{?fedora_version} || 0%{?centos_version} || 0%{?rhel_version} || 0%{?fedora} || 0%{?rhel}
@@ -377,6 +387,9 @@
install -D -m 644 %{S:3} $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/openwsman
%endif
+# rename winrs.rb -> winrs
+mv $RPM_BUILD_ROOT%{_bindir}/winrs.rb $RPM_BUILD_ROOT%{_bindir}/winrs
+
%post -n libwsman3 -p /sbin/ldconfig
%postun -n libwsman3
@@ -526,4 +539,8 @@
%dir %{_includedir}/openwsman/cpp
%{_includedir}/openwsman/cpp/*.h
+%files -n winrs
+%defattr(-,root,root)
+%{_bindir}/winrs
+
%changelog