From 6b3331bf833aec36dabd95b8e5baba355c6b8df6 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Oct 29 2019 16:50:45 +0000 Subject: import scannotation-1.0.3-0.7.r12.el7 --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2c27248 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/scannotation-1.0.3.Final.tar.xz diff --git a/.scannotation.metadata b/.scannotation.metadata new file mode 100644 index 0000000..f5f2ab3 --- /dev/null +++ b/.scannotation.metadata @@ -0,0 +1 @@ +2445d91f6468601d5810d5f77d1134e6bb22851c SOURCES/scannotation-1.0.3.Final.tar.xz diff --git a/SOURCES/License.txt b/SOURCES/License.txt new file mode 100644 index 0000000..3a0f261 --- /dev/null +++ b/SOURCES/License.txt @@ -0,0 +1,14 @@ + Copyright [2011] [Bill Burke ] + + 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/SOURCES/scannotation-1.0.3.Final-remove-dependencies.patch b/SOURCES/scannotation-1.0.3.Final-remove-dependencies.patch new file mode 100644 index 0000000..38bcd4d --- /dev/null +++ b/SOURCES/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 @@ + pom + + +- titan-test-jar + scannotation + + +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 @@ + test + + +- org.resteasy +- titan-cruise +- 1.0 +- test +- +- + javassist + javassist + 3.12.1.GA diff --git a/SPECS/scannotation.spec b/SPECS/scannotation.spec new file mode 100644 index 0000000..3b58320 --- /dev/null +++ b/SPECS/scannotation.spec @@ -0,0 +1,118 @@ +%global namedreltag .Final +%global namedversion %{version}%{?namedreltag} +%global alphatag r12 + +Name: scannotation +Version: 1.0.3 +Release: 0.7.%{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-local +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 +* Fri Dec 27 2013 Daniel Mach - 1.0.3-0.7.r12 +- Mass rebuild 2013-12-27 + +* Thu Feb 14 2013 Fedora Release Engineering - 1.0.3-0.6.r12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Wed Feb 06 2013 Java SIG - 1.0.3-0.5.r12 +- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild +- Replace maven BuildRequires with maven-local + +* Sat Jul 21 2012 Fedora Release Engineering - 1.0.3-0.4.r12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Sat Jan 14 2012 Fedora Release Engineering - 1.0.3-0.3.r12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Thu Dec 14 2011 Kashyap Chamarthy 1.0.3-0.2.r12 +- Preserve time stamps of files(License.txt in this case) being installed + +* Thu Dec 1 2011 Kashyap Chamarthy 1.0.3-0.1.r12 +- Initial packaging. With help from Ade Lee +