2008-08-11 17:59:28 +00:00
|
|
|
Name: jsr-305
|
|
|
|
Version: 0
|
2012-01-13 06:35:46 +00:00
|
|
|
Release: 0.8.20090319svn%{?dist}
|
2008-11-24 16:27:03 +00:00
|
|
|
Summary: Correctness annotations for Java code
|
2008-08-11 17:59:28 +00:00
|
|
|
|
2010-11-26 15:41:47 +00:00
|
|
|
Group: Development/Libraries
|
2008-08-11 17:59:28 +00:00
|
|
|
License: BSD
|
|
|
|
URL: http://jsr-305.googlecode.com/
|
|
|
|
# There has been no official release yet. This is a snapshot of the Subversion
|
2010-01-14 23:45:09 +00:00
|
|
|
# repository as of 19 Mar 2009. Use the following commands to generate the
|
2008-08-11 17:59:28 +00:00
|
|
|
# tarball:
|
2010-01-14 23:45:09 +00:00
|
|
|
# svn export -r 49 http://jsr-305.googlecode.com/svn/trunk jsr-305
|
|
|
|
# tar -cvf jsr-305-0.4.20090319.tar jsr-305
|
|
|
|
# xz jsr-305-0.4.20090319.tar
|
2010-01-14 23:50:40 +00:00
|
|
|
Source0: jsr-305-0.4.20090319.tar.xz
|
2008-08-11 17:59:28 +00:00
|
|
|
|
2011-09-13 09:46:29 +00:00
|
|
|
BuildRequires: java >= 0:1.6.0
|
|
|
|
BuildRequires: jpackage-utils, maven
|
2010-11-26 15:41:47 +00:00
|
|
|
BuildRequires: maven-compiler-plugin
|
|
|
|
BuildRequires: maven-install-plugin
|
|
|
|
BuildRequires: maven-jar-plugin
|
|
|
|
BuildRequires: maven-javadoc-plugin
|
|
|
|
BuildRequires: maven-resources-plugin
|
|
|
|
BuildRequires: maven-site-plugin
|
|
|
|
BuildRequires: maven-surefire-plugin
|
2011-09-13 09:46:29 +00:00
|
|
|
BuildRequires: maven-surefire-provider-junit
|
|
|
|
Requires: java, jpackage-utils
|
2008-08-11 17:59:28 +00:00
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%package javadoc
|
|
|
|
Summary: Javadoc documentation for %{name}
|
2010-11-26 15:41:47 +00:00
|
|
|
Group: Documentation
|
|
|
|
Requires: jpackage-utils
|
2008-08-11 17:59:28 +00:00
|
|
|
|
|
|
|
%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}
|
2010-11-26 15:41:47 +00:00
|
|
|
sed -i 's/\r//' sampleUses/pom.xml
|
2008-08-11 17:59:28 +00:00
|
|
|
|
|
|
|
%build
|
2011-09-13 09:46:29 +00:00
|
|
|
mvn-rpmbuild install javadoc:aggregate
|
2008-08-11 17:59:28 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
|
|
|
|
# JAR files
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_javadir}
|
2010-11-26 15:41:47 +00:00
|
|
|
cp -p ri/target/ri-0.1-SNAPSHOT.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar
|
2008-08-11 17:59:28 +00:00
|
|
|
|
|
|
|
# Javadocs
|
2010-11-26 15:41:47 +00:00
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name}
|
2011-09-13 09:46:29 +00:00
|
|
|
cp -rp target/site/apidocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}/
|
2008-08-11 17:59:28 +00:00
|
|
|
|
|
|
|
# pom
|
2010-11-26 15:41:47 +00:00
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_mavenpomdir}
|
|
|
|
install -pm 644 ri/pom.xml $RPM_BUILD_ROOT/%{_mavenpomdir}/JPP-%{name}.pom
|
2011-09-13 09:46:29 +00:00
|
|
|
%add_maven_depmap JPP-%{name}.pom %{name}.jar -a 'com.google.code.findbugs:jsr305'
|
2008-08-11 17:59:28 +00:00
|
|
|
|
2011-09-13 09:46:29 +00:00
|
|
|
install -pm 644 pom.xml $RPM_BUILD_ROOT/%{_mavenpomdir}/JPP-%{name}-parent.pom
|
|
|
|
%add_maven_depmap JPP-%{name}-parent.pom
|
2008-08-11 17:59:28 +00:00
|
|
|
|
2010-11-26 15:41:47 +00:00
|
|
|
|
|
|
|
%pre javadoc
|
|
|
|
# workaround for rpm bug 646523 (can be removed in F-17)
|
|
|
|
[ $1 -gt 1 ] && [ -L %{_javadocdir}/%{name} ] && \
|
|
|
|
rm -rf $(readlink -f %{_javadocdir}/%{name}) %{_javadocdir}/%{name} || :
|
2008-08-11 17:59:28 +00:00
|
|
|
|
|
|
|
%files
|
2009-03-01 06:19:41 +00:00
|
|
|
%doc ri/LICENSE sampleUses
|
2011-09-13 09:46:29 +00:00
|
|
|
%{_mavenpomdir}/JPP-%{name}.pom
|
|
|
|
%{_mavenpomdir}/JPP-%{name}-parent.pom
|
|
|
|
%{_javadir}/%{name}.jar
|
|
|
|
%{_mavendepmapfragdir}/%{name}
|
2008-08-11 17:59:28 +00:00
|
|
|
|
|
|
|
%files javadoc
|
2011-09-13 09:46:29 +00:00
|
|
|
%{_javadocdir}/%{name}
|
2008-08-11 17:59:28 +00:00
|
|
|
|
|
|
|
%changelog
|
2012-01-13 06:35:46 +00:00
|
|
|
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0-0.8.20090319svn
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
|
2011-09-13 09:46:29 +00:00
|
|
|
* Mon Sep 12 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0-0.7.20090319svn
|
|
|
|
- Use maven3 to build
|
|
|
|
- Fix depmap
|
|
|
|
- Fix Jave BRs
|
|
|
|
|
2011-02-09 15:00:49 +00:00
|
|
|
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0-0.6.20090319svn
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
2010-11-26 15:41:47 +00:00
|
|
|
* Fri Nov 26 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0-0.5.20090319svn
|
|
|
|
- Fix pom filename (Resolves rhbz#655811)
|
2010-11-26 15:58:28 +00:00
|
|
|
- Remove tomcat5 BR (not needed anymore)
|
2010-11-26 15:41:47 +00:00
|
|
|
- Use new maven plugin names
|
|
|
|
- Remove gcj support
|
|
|
|
- Few tweaks according to new guidelines
|
|
|
|
- Make jars and javadocs versionless
|
|
|
|
|
2010-01-14 23:45:09 +00:00
|
|
|
* Thu Jan 14 2010 Jerry James <loganjerry@gmail.com> - 0-0.4.20090319svn
|
|
|
|
- Update to 19 Mar 2009 snapshot
|
|
|
|
- Compress with xz instead of bzip2
|
2010-01-15 00:02:06 +00:00
|
|
|
- BR tomcat5, a horrible workaround to solve bz 538868
|
2010-01-14 23:45:09 +00:00
|
|
|
|
2009-07-25 04:11:53 +00:00
|
|
|
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0-0.4.20090203svn
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
|
2009-03-04 23:36:55 +00:00
|
|
|
* Wed Mar 4 2009 Jerry James <loganjerry@gmail.com> - 0-0.3.20090203svn
|
|
|
|
- Explicitly require OpenJDK to build
|
|
|
|
|
2009-03-01 06:19:41 +00:00
|
|
|
* Sat Feb 28 2009 Jerry James <loganjerry@gmail.com> - 0-0.2.20090203svn
|
|
|
|
- Update to 03 Feb 2009 snapshot
|
|
|
|
|
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
|