commit 876396c81a0ad44cb138882c2af067c27d567e0d
Author: Michal Srb <msrb(a)redhat.com>
Date: Thu Apr 3 06:53:46 2014 +0200
Initial commit
.gitignore | 1 +
LICENSE.txt | 23 ++++++++++++++
jenkins-ssh-slaves-plugin.spec | 65 ++++++++++++++++++++++++++++++++++++++++
sources | 1 +
4 files changed, 90 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..a9a6f4a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/ssh-slaves-1.6.tar.gz
diff --git a/LICENSE.txt b/LICENSE.txt
new file mode 100644
index 0000000..7461905
--- /dev/null
+++ b/LICENSE.txt
@@ -0,0 +1,23 @@
+/*
+ * The MIT License
+ *
+ * Copyright (c) 2004-, all the contributors
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ * THE SOFTWARE.
+ */
diff --git a/jenkins-ssh-slaves-plugin.spec b/jenkins-ssh-slaves-plugin.spec
new file mode 100644
index 0000000..75d53ad
--- /dev/null
+++ b/jenkins-ssh-slaves-plugin.spec
@@ -0,0 +1,65 @@
+%global mod_name ssh-slaves-plugin
+%global short_name ssh-slaves
+
+Name: jenkins-ssh-slaves-plugin
+Version: 1.6
+Release: 1%{?dist}
+Summary: Jenkins SSH Slaves Plugin
+
+License: MIT
+URL:
https://github.com/jenkinsci/ssh-slaves-plugin
+Source0:
https://github.com/jenkinsci/%{mod_name}/archive/%{short_name}-%{version}...
+# Taken from src/main/java/hudson/plugins/sshslaves/SSHLauncher.java
+Source1: LICENSE.txt
+
+BuildRequires: maven-local
+BuildRequires: mvn(com.trilead:trilead-ssh2)
+BuildRequires: mvn(org.acegisecurity:acegi-security)
+BuildRequires: mvn(org.jenkins-ci.plugins:credentials)
+BuildRequires: mvn(org.jenkins-ci.plugins:plugin:pom:)
+BuildRequires: mvn(org.jenkins-ci.plugins:ssh-credentials)
+BuildRequires: mvn(org.jenkins-ci.tools:maven-hpi-plugin)
+
+BuildArch: noarch
+
+%description
+This packages provides a means to launch Jenkins slaves via SSH.
+
+%package javadoc
+Summary: Javadoc for %{name}
+
+%description javadoc
+This package contains the API documentation for %{name}.
+
+%prep
+%setup -q -n %{mod_name}-%{short_name}-%{version}
+
+# do not build HPI yet, JAR is enough for now
+%mvn_package ::hpi: __noinstall
+
+# TODO: this should be pulled in from somewhere else
+%pom_add_dep org.acegisecurity:acegi-security
+%pom_add_dep com.trilead:trilead-ssh2
+
+cp %{SOURCE1} .
+
+%build
+# tests are disabled because of missing dep (org.jenkins-ci.main:jenkins-test-harness)
+%mvn_build -f
+
+%install
+%mvn_install
+
+%files -f .mfiles
+%dir %{_javadir}/%{name}
+%doc LICENSE.txt
+%files javadoc -f .mfiles-javadoc
+%doc LICENSE.txt
+
+%changelog
+* Wed Apr 02 2014 Michal Srb <msrb(a)redhat.com> - 1.6-1
+- Update to upstream version 1.6
+
+* Fri Nov 08 2013 Michal Srb <msrb(a)redhat.com> - 1.2-1
+- Initial packaging
+
diff --git a/sources b/sources
index e69de29..9a9140a 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+409fb17dc15c4def088a4917c5e70000 ssh-slaves-1.6.tar.gz