msrb pushed to jenkins-script-security-plugin (f22). "Initial packaging"

notifications at fedoraproject.org notifications at fedoraproject.org
Tue Mar 31 15:01:10 UTC 2015


>From 3c2837758929a2dc0bdcc076184b9380fed84c1b Mon Sep 17 00:00:00 2001
From: Michal Srb <msrb at redhat.com>
Date: Tue, 31 Mar 2015 16:59:45 +0200
Subject: Initial packaging


diff --git a/.gitignore b/.gitignore
index e69de29..860cbd7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/script-security-1.13.tar.gz
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..defa6d1
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,21 @@
+The MIT License
+
+Copyright 2014 CloudBees, Inc.
+
+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-script-security-plugin.spec b/jenkins-script-security-plugin.spec
new file mode 100644
index 0000000..b0e46fc
--- /dev/null
+++ b/jenkins-script-security-plugin.spec
@@ -0,0 +1,58 @@
+%global short_name script-security
+
+Name:           jenkins-script-security-plugin
+Version:        1.13
+Release:        1%{?dist}
+Summary:        Jenkins Script Security Plugin
+
+# from POM
+License:        MIT
+URL:            https://github.com/jenkinsci/script-security-plugin
+Source0:        https://github.com/jenkinsci/%{short_name}-plugin/archive/%{short_name}-%{version}.tar.gz
+Source1:        LICENSE
+
+BuildRequires:  maven-local
+BuildRequires:  mvn(org.jenkins-ci.plugins:plugin:pom:)
+BuildRequires:  mvn(org.kohsuke:access-modifier-checker)
+BuildRequires:  mvn(com.google.code.findbugs:annotations)
+BuildRequires:  mvn(org.jenkins-ci.main:jenkins-core)
+BuildRequires:  mvn(org.kohsuke:groovy-sandbox)
+
+BuildArch:      noarch
+
+%description
+This plugin allows Jenkins administrators to control what in-process
+scripts can be run by less-privileged users.
+
+%package        javadoc
+Summary:        Javadoc for %{name}
+
+%description javadoc
+This package contains the API documentation for %{name}.
+
+
+%prep
+%setup -q -n %{short_name}-plugin-%{short_name}-%{version}
+
+find . -name "*.jar" -delete
+cp %{SOURCE1} .
+
+# we only need JAR file
+%mvn_package '::hpi::' __noinstall
+
+%build
+# missing org.jenkins-ci:test-annotations
+%mvn_build -f
+
+%install
+%mvn_install
+
+%files -f .mfiles
+%license LICENSE
+%files javadoc -f .mfiles-javadoc
+%license LICENSE
+
+%changelog
+* Mon Mar 30 2015 Michal Srb <msrb at redhat.com> - 1.13-1
+- Initial packaging
+
diff --git a/sources b/sources
index e69de29..551e921 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+7b92c59057e81443f952f990fca16bc3  script-security-1.13.tar.gz
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/jenkins-script-security-plugin.git/commit/?h=f22&id=3c2837758929a2dc0bdcc076184b9380fed84c1b


More information about the scm-commits mailing list