2008-08-11 17:59:28 +00:00
|
|
|
%define with_gcj %{!?_without_gcj:1}%{?_without_gcj:0}
|
|
|
|
|
|
|
|
Name: jsr-305
|
|
|
|
Version: 0
|
2009-02-25 09:50:42 +00:00
|
|
|
Release: 0.2.20080824svn%{?dist}.1
|
2008-11-24 16:27:03 +00:00
|
|
|
Summary: Correctness annotations for Java code
|
2008-08-11 17:59:28 +00:00
|
|
|
|
|
|
|
Group: Development/Libraries/Java
|
|
|
|
# The license was determined by examining the web page
|
|
|
|
# http://code.google.com/p/jsr-305/, most recently viewed on 4 Aug 2008.
|
|
|
|
# Upstream has promised to add a license file sometime in the future; see
|
|
|
|
# http://groups.google.com/group/jsr-305/msg/e6d62dc6cd7fe361
|
|
|
|
License: BSD
|
|
|
|
URL: http://jsr-305.googlecode.com/
|
|
|
|
# There has been no official release yet. This is a snapshot of the Subversion
|
2008-09-09 02:59:29 +00:00
|
|
|
# repository as of 24 Aug 2008. Use the following commands to generate the
|
2008-08-11 17:59:28 +00:00
|
|
|
# tarball:
|
2008-09-09 02:59:29 +00:00
|
|
|
# svn export -r 45 http://jsr-305.googlecode.com/svn/trunk jsr-305
|
|
|
|
# tar -cjvf jsr-305-0.1.20080824.tar.bz2 jsr-305
|
|
|
|
Source0: jsr-305-0.1.20080824.tar.bz2
|
2008-08-11 17:59:28 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
|
|
|
|
BuildRequires: java-devel >= 1.5, jpackage-utils, maven2
|
|
|
|
BuildRequires: maven2-plugin-compiler, maven2-plugin-install
|
|
|
|
BuildRequires: maven2-plugin-jar, maven2-plugin-javadoc
|
|
|
|
BuildRequires: maven2-plugin-resources, maven2-plugin-site
|
|
|
|
BuildRequires: maven2-plugin-surefire
|
|
|
|
Requires: java >= 1.5, jpackage-utils
|
|
|
|
|
|
|
|
%if %{with_gcj}
|
|
|
|
BuildRequires: java-gcj-compat-devel >= 1.0.31
|
|
|
|
Requires(post): java-gcj-compat >= 1.0.31
|
|
|
|
Requires(postun): java-gcj-compat >= 1.0.31
|
|
|
|
%else
|
|
|
|
BuildArch: noarch
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%package javadoc
|
|
|
|
Summary: Javadoc documentation for %{name}
|
|
|
|
Group: Development/Documentation
|
|
|
|
Requires: %{name} = %{version}-%{release}, jpackage-utils
|
|
|
|
|
|
|
|
%description
|
|
|
|
This package contains reference implementations, test cases, and other
|
|
|
|
documents for Java Specification Request 305: Annotations for Software Defect
|
|
|
|
Detection.
|
|
|
|
|
|
|
|
%description javadoc
|
|
|
|
This package contains the API documentation for %{name}.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{name}
|
|
|
|
|
|
|
|
%build
|
|
|
|
export MAVEN_REPO_LOCAL=$(pwd)/.m2/repository
|
|
|
|
mkdir -p $MAVEN_REPO_LOCAL
|
|
|
|
|
|
|
|
mvn-jpp -Dmaven.repo.local=$MAVEN_REPO_LOCAL install
|
|
|
|
cd ri
|
|
|
|
mvn-jpp -Dmaven.repo.local=$MAVEN_REPO_LOCAL javadoc:javadoc
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
# JAR files
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_javadir}
|
|
|
|
cp -p ri/target/ri-0.1-SNAPSHOT.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
|
|
|
|
ln -s %{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar
|
|
|
|
|
|
|
|
# Javadocs
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
|
|
|
|
pushd ri/target/site/apidocs
|
|
|
|
cp -rp . $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
|
|
|
|
ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name}
|
|
|
|
popd
|
|
|
|
|
|
|
|
# pom
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_datadir}/maven2/poms
|
|
|
|
install -pm 644 ri/pom.xml $RPM_BUILD_ROOT/%{_datadir}/maven2/poms/JPP.%{name}.pom
|
|
|
|
%add_to_maven_depmap org.apache.maven %{name} %{version} JPP %{name}
|
|
|
|
|
|
|
|
# Precompiled bits
|
|
|
|
%if %{with_gcj}
|
|
|
|
%{_bindir}/aot-compile-rpm
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%post
|
|
|
|
%update_maven_depmap
|
|
|
|
%if %{with_gcj}
|
|
|
|
if [ -x %{_bindir}/rebuild-gcj-db ]; then
|
|
|
|
%{_bindir}/rebuild-gcj-db
|
|
|
|
fi
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%update_maven_depmap
|
|
|
|
%if %{with_gcj}
|
|
|
|
if [ -x %{_bindir}/rebuild-gcj-db ]; then
|
|
|
|
%{_bindir}/rebuild-gcj-db
|
|
|
|
fi
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_datadir}/maven2/poms/JPP.jsr-305.pom
|
|
|
|
%{_javadir}/*
|
|
|
|
%{_mavendepmapfragdir}/jsr-305
|
|
|
|
%if %{with_gcj}
|
|
|
|
%{_libdir}/gcj/%{name}
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%files javadoc
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_javadocdir}/*
|
|
|
|
|
|
|
|
%changelog
|
2009-02-25 09:50:42 +00:00
|
|
|
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0-0.2.20080824svn.1
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
|
2008-11-24 16:27:03 +00:00
|
|
|
* Mon Nov 24 2008 Jerry James <loganjerry@gmail.com> - 0-0.1.20080824svn.1
|
|
|
|
- Cleaned up summary
|
|
|
|
|
2008-09-09 02:59:29 +00:00
|
|
|
* Mon Sep 8 2008 Jerry James <loganjerry@gmail.com> - 0-0.1.20080824svn
|
|
|
|
- Update to 24 Aug 2008 snapshot
|
|
|
|
|
2008-08-11 17:59:28 +00:00
|
|
|
* Mon Aug 4 2008 Jerry James <loganjerry@gmail.com> - 0-0.1.20080721svn
|
|
|
|
- Update to 21 Jul 2008 snapshot
|
|
|
|
|
|
|
|
* Mon Jun 30 2008 Jerry James <loganjerry@gmail.com> - 0-0.1.20080613svn
|
|
|
|
- Update to 13 Jun 2008 snapshot
|
|
|
|
- Fix broken URLs
|
|
|
|
- Include instructions on regenerating the tarball
|
|
|
|
- Conditionalize the gcj bits
|
|
|
|
|
|
|
|
* Mon Jun 2 2008 Jerry James <loganjerry@gmail.com> - 0-0.1.20080527svn
|
|
|
|
- Update to 27 May 2008 snapshot
|
|
|
|
|
|
|
|
* Mon May 12 2008 Jerry James <loganjerry@gmail.com> - 0-0.1.20071105svn
|
|
|
|
- Initial RPM
|