[scannotation] Initial import for scannotation -- #767226

kashyap chamarthy kashyapc at fedoraproject.org
Mon Dec 19 12:29:42 UTC 2011


commit 588dbfe1ea6da135e42859636a9f25c9aef1bb96
Author: Kashyap Chamarthy <kashyapc at fedoraproject.org>
Date:   Mon Dec 19 07:11:35 2011 -0500

    Initial import for scannotation -- #767226

 .gitignore                                         |    1 +
 License.txt                                        |   14 +++
 scannotation-1.0.3.Final-remove-dependencies.patch |   27 +++++
 scannotation.spec                                  |  102 ++++++++++++++++++++
 sources                                            |    1 +
 5 files changed, 145 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..10831b2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/scannotation-1.0.3.Final.tar.xz
diff --git a/License.txt b/License.txt
new file mode 100644
index 0000000..3a0f261
--- /dev/null
+++ b/License.txt
@@ -0,0 +1,14 @@
+   Copyright [2011] [Bill Burke <bburke at redhat.com>]
+
+   Licensed under the Apache License, Version 2.0 (the "License");
+   you may not use this file except in compliance with the License.
+   You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+
diff --git a/scannotation-1.0.3.Final-remove-dependencies.patch b/scannotation-1.0.3.Final-remove-dependencies.patch
new file mode 100644
index 0000000..38bcd4d
--- /dev/null
+++ b/scannotation-1.0.3.Final-remove-dependencies.patch
@@ -0,0 +1,27 @@
+diff -up scannotation-1.0.3.Final/pom.xml.fix scannotation-1.0.3.Final/pom.xml
+--- scannotation-1.0.3.Final/pom.xml.fix	2011-12-09 02:37:45.235999604 -0500
++++ scannotation-1.0.3.Final/pom.xml	2011-12-09 02:39:27.035000678 -0500
+@@ -9,7 +9,6 @@
+     <packaging>pom</packaging>
+ 
+     <modules>
+-        <module>titan-test-jar</module>
+         <module>scannotation</module>
+     </modules>
+ </project>
+diff -up scannotation-1.0.3.Final/scannotation/pom.xml.fix scannotation-1.0.3.Final/scannotation/pom.xml
+--- scannotation-1.0.3.Final/scannotation/pom.xml.fix	2011-12-09 02:41:31.427996852 -0500
++++ scannotation-1.0.3.Final/scannotation/pom.xml	2011-12-09 02:40:37.588999468 -0500
+@@ -30,12 +30,6 @@
+             <scope>test</scope>
+         </dependency>
+         <dependency>
+-            <groupId>org.resteasy</groupId>
+-            <artifactId>titan-cruise</artifactId>
+-            <version>1.0</version>
+-            <scope>test</scope>
+-        </dependency>
+-        <dependency>
+             <groupId>javassist</groupId>
+             <artifactId>javassist</artifactId>
+             <version>3.12.1.GA</version>
diff --git a/scannotation.spec b/scannotation.spec
new file mode 100644
index 0000000..94bd0d9
--- /dev/null
+++ b/scannotation.spec
@@ -0,0 +1,102 @@
+%global namedreltag .Final
+%global namedversion %{version}%{?namedreltag}
+%global alphatag r12
+
+Name: scannotation
+Version: 1.0.3
+Release:  0.2.%{alphatag}%{?dist}
+Summary: A Java annotation scanner
+Group: Development/Libraries
+License: ASL 2.0
+URL: http://scannotation.sourceforge.net
+
+# How we created tarball:
+# svn export -r 12  https://scannotation.svn.sourceforge.net/svnroot/scannotation scannotation-1.0.3.Final
+# tar -caJf scannotation-1.0.3.Final.tar.xz scannotation-1.0.3.Final
+Source0: %{name}-%{namedversion}.tar.xz
+#Adding License file
+Source1: License.txt
+
+Patch0: %{name}-%{namedversion}-remove-dependencies.patch
+
+BuildArch: noarch
+
+BuildRequires: junit4
+BuildRequires: javassist
+
+BuildRequires: jpackage-utils
+BuildRequires: java-devel
+BuildRequires: maven
+BuildRequires: maven-compiler-plugin
+BuildRequires: maven-install-plugin
+BuildRequires: maven-jar-plugin
+BuildRequires: maven-javadoc-plugin
+BuildRequires: maven-surefire-provider-junit4
+
+Requires: jpackage-utils
+Requires: java
+Requires: javassist
+
+%description
+Scannotation is a Java library that creates an annotation database 
+from a set of .class files.This database is really just a set of maps that index
+what annotations are used and what classes are using them. Why do you need this? 
+What if you are an annotation framework like an EJB 3.0 container and you want 
+to automatically scan your classpath for EJB annotations so that you know what 
+to deploy? Scannotation gives you apis that allow you to find archives in your 
+classpath or WAR (web application) that you want to scan, then automatically 
+scans them without loading each and every class within those archives
+
+%package javadoc
+Summary: Javadocs for %{name}
+Group: Documentation
+Requires: jpackage-utils
+
+%description javadoc
+This package contains the API documentation for %{name}.
+
+%prep
+%setup -q -n %{name}-%{namedversion}
+%patch0 -p1 -b .p0
+cp -p %SOURCE1 .
+
+%build
+# building jar files using mvn
+mvn-rpmbuild install javadoc:aggregate
+
+%install
+# JAR
+install -d -m 755 $RPM_BUILD_ROOT%{_javadir}
+install -pm 644 %{name}/target/%{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar
+
+# POM
+install -d -m 755 $RPM_BUILD_ROOT%{_mavenpomdir}
+install -pm 644 pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{name}-all.pom
+install -pm 644 %{name}/pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{name}.pom
+
+# DEPMAP - this is still ok, but we use different pom
+%add_maven_depmap JPP-%{name}.pom %{name}.jar
+
+# all is the proper name in this case, this just to be there - not usable at all :)
+%add_maven_depmap JPP-%{name}-all.pom
+
+# APIDOCS
+install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}
+cp -rp target/site/apidocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}
+
+%files
+%{_mavenpomdir}/*
+%{_mavendepmapfragdir}/*
+%{_javadir}/*
+%doc License.txt
+
+%files javadoc
+%{_javadocdir}/%{name}
+
+%changelog
+* Thu Dec 14 2011 Kashyap Chamarthy <kashyapc at fedoraproject.org> 1.0.3-0.2.r12
+- Preserve time stamps of files(License.txt in this case) being installed
+
+* Thu Dec 1 2011 Kashyap Chamarthy <kashyapc at fedoraproject.org> 1.0.3-0.1.r12
+- Initial packaging. With help from Ade Lee <vakwetu at fedoraproject.org>
+
diff --git a/sources b/sources
index e69de29..1d60e73 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+b3e6d4924f4c8a8736eaef1677ab7339  scannotation-1.0.3.Final.tar.xz


More information about the scm-commits mailing list