From 8ac725e7c46c96966e0256be6dd1cedb0eca9729 Mon Sep 17 00:00:00 2001 From: Vitezslav Crhonek Date: Mon, 13 Mar 2017 11:12:42 +0100 Subject: [PATCH] Add shebang to winrs ruby script, make it executable --- openwsman-2.6.2-winrs-shebang.patch | 9 +++++++++ openwsman.spec | 11 +++++++++-- 2 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 openwsman-2.6.2-winrs-shebang.patch diff --git a/openwsman-2.6.2-winrs-shebang.patch b/openwsman-2.6.2-winrs-shebang.patch new file mode 100644 index 0000000..87cdc61 --- /dev/null +++ b/openwsman-2.6.2-winrs-shebang.patch @@ -0,0 +1,9 @@ +diff -up openwsman-2.6.2/examples/winrs.rb.orig openwsman-2.6.2/examples/winrs.rb +--- openwsman-2.6.2/examples/winrs.rb.orig 2015-10-19 15:27:46.000000000 +0200 ++++ openwsman-2.6.2/examples/winrs.rb 2017-03-13 10:30:22.812169561 +0100 +@@ -1,3 +1,5 @@ ++#!/usr/bin/env ruby ++# + # winrs.rb + # + # Windows Remote Shell diff --git a/openwsman.spec b/openwsman.spec index 4b5d0b3..5d5866e 100644 --- a/openwsman.spec +++ b/openwsman.spec @@ -16,7 +16,7 @@ BuildRequires: perl-devel pkgconfig openssl-devel BuildRequires: cmake BuildRequires: systemd-units Version: 2.6.2 -Release: 3%{?dist} +Release: 4%{?dist} Url: http://www.openwsman.org/ License: BSD Group: Applications/System @@ -33,6 +33,8 @@ 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: adds shebang to winrs ruby script, already upstream +Patch4: openwsman-2.6.2-winrs-shebang.patch %description Openwsman is a project intended to provide an open-source @@ -168,6 +170,7 @@ can use it to send shell commands to a remote Windows hosts. %patch1 -p1 -b .libssl %patch2 -p1 -b .pamsetup %patch3 -p1 -b .ruby-binding-build +%patch4 -p1 -b .winrs-shebang # support ruby 2.2 pushd bindings/ruby @@ -332,10 +335,14 @@ rm -f /var/log/wsmand.log %doc AUTHORS COPYING ChangeLog README.md %files winrs -%{_bindir}/winrs +%attr(0755,root,root) %{_bindir}/winrs %changelog +* Mon Mar 13 2017 Vitezslav Crhonek - 2.6.2-4 +- Add shebang to winrs ruby script, make it executable + Resolves: #1387087 + * Thu Feb 04 2016 Fedora Release Engineering - 2.6.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild