mizdebsk pushed to pmd-build-tools (f22). "Initial packaging"

notifications at fedoraproject.org notifications at fedoraproject.org
Mon May 18 20:25:19 UTC 2015


From bde2c03e8d375f3399fec2d66ce6ccec1dd9694d Mon Sep 17 00:00:00 2001
From: Mikolaj Izdebski <mizdebsk at redhat.com>
Date: Thu, 14 May 2015 09:19:53 +0200
Subject: Initial packaging


diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..7d1bfc1
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,31 @@
+Copyright (c) 2002-2009, InfoEther, Inc
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are
+met:
+
+    * Redistributions of source code must retain the above copyright
+notice, this list of conditions and the following disclaimer.
+    * Redistributions in binary form must reproduce the above copyright
+notice, this list of conditions and the following disclaimer in the
+documentation and/or other materials provided with the distribution.
+    * The end-user documentation included with the redistribution, if
+any, must include the following acknowledgement:
+    "This product includes software developed in part by support from
+the Defense Advanced Research Project Agency (DARPA)"
+    * Neither the name of InfoEther, LLC nor the names of its
+contributors may be used to endorse or promote products derived from
+this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
+IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
+PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
+OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/pmd-build-tools.spec b/pmd-build-tools.spec
new file mode 100644
index 0000000..8add87d
--- /dev/null
+++ b/pmd-build-tools.spec
@@ -0,0 +1,58 @@
+%global commit 2da2859d1232a9a88025e069dc43adc4048a018a
+%global shortcommit %(c=%{commit}; echo ${c:0:7})
+
+Name:           pmd-build-tools
+Version:        0.9
+Release:        1%{?dist}
+Summary:        PMD Build Plugin
+License:        BSD
+URL:            http://pmd.sourceforge.net/
+BuildArch:      noarch
+
+Source0:        https://github.com/pmd/build-tools/archive/%{commit}/pmd-build-tools-%{shortcommit}.tar.gz
+Source1:        LICENSE
+
+BuildRequires:  maven-local
+BuildRequires:  mvn(commons-io:commons-io)
+BuildRequires:  mvn(junit:junit)
+BuildRequires:  mvn(org.apache.ant:ant)
+BuildRequires:  mvn(org.apache.maven:maven-compat)
+BuildRequires:  mvn(org.apache.maven:maven-core)
+BuildRequires:  mvn(org.apache.maven:maven-plugin-api)
+BuildRequires:  mvn(org.apache.maven.plugins:maven-release-plugin)
+BuildRequires:  mvn(org.apache.maven.plugins:maven-site-plugin)
+BuildRequires:  mvn(org.apache.maven.plugin-testing:maven-plugin-testing-harness)
+BuildRequires:  mvn(org.apache.maven.plugin-tools:maven-plugin-annotations)
+BuildRequires:  mvn(org.sonatype.oss:oss-parent:pom:)
+
+%description
+This small subproject regroups most of the stuff needed to build PMD.
+As some Java code has been produced to reduce the use of scripts when
+generating the website, the build also requires a small jar, which is
+generated by this pom.
+
+%package javadoc
+Summary:        API documentation for %{name}
+
+%description javadoc
+This package provides %{summary}.
+
+%prep
+%setup -q -n build-tools-%{commit}
+cp -a %{SOURCE1} .
+
+%build
+%mvn_build
+
+%install
+%mvn_install
+
+%files -f .mfiles
+%license LICENSE
+
+%files javadoc -f .mfiles-javadoc
+%license LICENSE
+
+%changelog
+* Thu May 14 2015 Mikolaj Izdebski <mizdebsk at redhat.com> - 0.9-1
+- Initial packaging
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/pmd-build-tools.git/commit/?h=f22&id=bde2c03e8d375f3399fec2d66ce6ccec1dd9694d


More information about the scm-commits mailing list