Blame SPECS/scannotation.spec

8055eb
%global namedreltag .Final
8055eb
%global namedversion %{version}%{?namedreltag}
8055eb
%global alphatag r12
8055eb
8055eb
Name: scannotation
8055eb
Version: 1.0.3
7f52c2
Release:  0.7.%{alphatag}%{?dist}
8055eb
Summary: A Java annotation scanner
8055eb
Group: Development/Libraries
8055eb
License: ASL 2.0
8055eb
URL: http://scannotation.sourceforge.net
8055eb
8055eb
# How we created tarball:
8055eb
# svn export -r 12  https://scannotation.svn.sourceforge.net/svnroot/scannotation scannotation-1.0.3.Final
8055eb
# tar -caJf scannotation-1.0.3.Final.tar.xz scannotation-1.0.3.Final
8055eb
Source0: %{name}-%{namedversion}.tar.xz
8055eb
#Adding License file
8055eb
Source1: License.txt
8055eb
8055eb
Patch0: %{name}-%{namedversion}-remove-dependencies.patch
8055eb
8055eb
BuildArch: noarch
8055eb
8055eb
BuildRequires: junit4
8055eb
BuildRequires: javassist
8055eb
8055eb
BuildRequires: jpackage-utils
8055eb
BuildRequires: java-devel
8055eb
BuildRequires: maven-local
8055eb
BuildRequires: maven-compiler-plugin
8055eb
BuildRequires: maven-install-plugin
8055eb
BuildRequires: maven-jar-plugin
8055eb
BuildRequires: maven-javadoc-plugin
8055eb
BuildRequires: maven-surefire-provider-junit4
8055eb
8055eb
Requires: jpackage-utils
8055eb
Requires: java
8055eb
Requires: javassist
8055eb
8055eb
%description
8055eb
Scannotation is a Java library that creates an annotation database 
8055eb
from a set of .class files.This database is really just a set of maps that index
8055eb
what annotations are used and what classes are using them. Why do you need this? 
8055eb
What if you are an annotation framework like an EJB 3.0 container and you want 
8055eb
to automatically scan your classpath for EJB annotations so that you know what 
8055eb
to deploy? Scannotation gives you apis that allow you to find archives in your 
8055eb
classpath or WAR (web application) that you want to scan, then automatically 
8055eb
scans them without loading each and every class within those archives
8055eb
8055eb
%package javadoc
8055eb
Summary: Javadocs for %{name}
8055eb
Group: Documentation
8055eb
Requires: jpackage-utils
8055eb
8055eb
%description javadoc
8055eb
This package contains the API documentation for %{name}.
8055eb
8055eb
%prep
8055eb
%setup -q -n %{name}-%{namedversion}
8055eb
%patch0 -p1 -b .p0
8055eb
cp -p %SOURCE1 .
8055eb
8055eb
%build
8055eb
# building jar files using mvn
8055eb
mvn-rpmbuild install javadoc:aggregate
8055eb
8055eb
%install
8055eb
# JAR
8055eb
install -d -m 755 $RPM_BUILD_ROOT%{_javadir}
8055eb
install -pm 644 %{name}/target/%{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar
8055eb
8055eb
# POM
8055eb
install -d -m 755 $RPM_BUILD_ROOT%{_mavenpomdir}
8055eb
install -pm 644 pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{name}-all.pom
8055eb
install -pm 644 %{name}/pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{name}.pom
8055eb
8055eb
# DEPMAP - this is still ok, but we use different pom
8055eb
%add_maven_depmap JPP-%{name}.pom %{name}.jar
8055eb
8055eb
# all is the proper name in this case, this just to be there - not usable at all :)
8055eb
%add_maven_depmap JPP-%{name}-all.pom
8055eb
8055eb
# APIDOCS
8055eb
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}
8055eb
cp -rp target/site/apidocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}
8055eb
8055eb
%files
8055eb
%{_mavenpomdir}/*
8055eb
%{_mavendepmapfragdir}/*
8055eb
%{_javadir}/*
8055eb
%doc License.txt
8055eb
8055eb
%files javadoc
8055eb
%{_javadocdir}/%{name}
8055eb
8055eb
%changelog
7f52c2
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.0.3-0.7.r12
7f52c2
- Mass rebuild 2013-12-27
7f52c2
8055eb
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.3-0.6.r12
8055eb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
8055eb
8055eb
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 1.0.3-0.5.r12
8055eb
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
8055eb
- Replace maven BuildRequires with maven-local
8055eb
8055eb
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.3-0.4.r12
8055eb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
8055eb
8055eb
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.3-0.3.r12
8055eb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
8055eb
8055eb
* Thu Dec 14 2011 Kashyap Chamarthy <kashyapc@fedoraproject.org> 1.0.3-0.2.r12
8055eb
- Preserve time stamps of files(License.txt in this case) being installed
8055eb
8055eb
* Thu Dec 1 2011 Kashyap Chamarthy <kashyapc@fedoraproject.org> 1.0.3-0.1.r12
8055eb
- Initial packaging. With help from Ade Lee <vakwetu@fedoraproject.org>
8055eb