2023-08-17 14:22:35 +00:00
|
|
|
%bcond_with bootstrap
|
2021-04-16 13:33:12 +00:00
|
|
|
|
2008-08-11 17:59:28 +00:00
|
|
|
Name: jsr-305
|
2020-09-11 12:01:42 +00:00
|
|
|
Version: 3.0.2
|
2024-07-30 17:57:37 +00:00
|
|
|
Release: 15%{?dist}
|
2008-11-24 16:27:03 +00:00
|
|
|
Summary: Correctness annotations for Java code
|
2008-08-11 17:59:28 +00:00
|
|
|
|
2024-07-30 09:51:29 +00:00
|
|
|
# The majority of code is BSD-licensed.
|
|
|
|
# JCIP annotations are Apache-licensed.
|
|
|
|
License: BSD-3-Clause AND Apache-2.0
|
2020-09-11 12:01:42 +00:00
|
|
|
URL: https://code.google.com/p/jsr-305
|
2013-06-18 14:10:33 +00:00
|
|
|
BuildArch: noarch
|
2022-05-12 20:33:24 +00:00
|
|
|
ExclusiveArch: %{java_arches} noarch
|
2013-06-18 14:10:33 +00:00
|
|
|
|
2020-09-11 12:01:42 +00:00
|
|
|
# ./generate-tarball.sh
|
|
|
|
Source0: %{name}-%{version}.tar.gz
|
2024-07-30 09:51:29 +00:00
|
|
|
Source1: https://github.com/stephenc/jcip-annotations/archive/refs/tags/jcip-annotations-1.0-1.tar.gz
|
2013-06-18 12:53:42 +00:00
|
|
|
|
2021-04-16 13:33:12 +00:00
|
|
|
%if %{with bootstrap}
|
2023-08-15 08:23:35 +00:00
|
|
|
BuildRequires: javapackages-bootstrap
|
2021-04-16 13:33:12 +00:00
|
|
|
%else
|
2023-08-15 08:23:35 +00:00
|
|
|
BuildRequires: maven-local
|
2020-09-11 12:01:42 +00:00
|
|
|
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
|
2021-04-16 13:33:12 +00:00
|
|
|
%endif
|
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.
|
|
|
|
|
2019-06-28 09:15:58 +00:00
|
|
|
%{?javadoc_package}
|
2008-08-11 17:59:28 +00:00
|
|
|
|
|
|
|
%prep
|
2020-09-11 12:01:42 +00:00
|
|
|
%setup -q
|
2024-07-30 09:51:29 +00:00
|
|
|
|
|
|
|
# Replace javax.annotation.concurrent annotations (that are based on
|
|
|
|
# code from https://jcip.net/ and are licensed under CC-BY-2.5, which
|
|
|
|
# is not Fedora-approved for code) with a clean-room implementation
|
|
|
|
# under Apache-2.0 from https://github.com/stephenc/jcip-annotations
|
|
|
|
tar xf %{SOURCE1}
|
|
|
|
rm -rf ri/src/main/java/javax/annotation/concurrent
|
|
|
|
mv jcip-annotations-jcip-annotations-1.0-1/src/main/java/net/jcip/annotations ri/src/main/java/javax/annotation/concurrent
|
|
|
|
sed -i /^package/s/net.jcip.annotations/javax.annotation.concurrent/ ri/src/main/java/javax/annotation/concurrent/*
|
2013-06-18 12:53:42 +00:00
|
|
|
|
2023-08-15 08:23:35 +00:00
|
|
|
%pom_xpath_set "pom:plugin[pom:artifactId='maven-compiler-plugin']/pom:configuration/*" 1.8
|
|
|
|
%pom_remove_plugin :maven-compiler-plugin ri
|
2019-10-28 13:54:48 +00:00
|
|
|
|
2020-09-11 12:59:14 +00:00
|
|
|
sed -i 's|<groupId>com\.google\.code\.findbugs</groupId>|<groupId>org.jsr-305</groupId>|' ri/pom.xml
|
|
|
|
sed -i 's|<artifactId>jsr305</artifactId>|<artifactId>ri</artifactId>|' ri/pom.xml
|
2013-06-18 12:53:42 +00:00
|
|
|
|
2013-06-18 14:10:33 +00:00
|
|
|
%mvn_file :ri %{name}
|
|
|
|
%mvn_alias :ri com.google.code.findbugs:jsr305
|
|
|
|
%mvn_package ":{proposedAnnotations,tcl}" __noinstall
|
|
|
|
|
2012-01-14 14:29:12 +00:00
|
|
|
# do not build sampleUses module - it causes Javadoc generation to fail
|
2013-06-18 14:10:33 +00:00
|
|
|
%pom_disable_module sampleUses
|
2012-01-14 14:29:12 +00:00
|
|
|
|
2020-09-11 12:01:42 +00:00
|
|
|
%pom_remove_parent ri
|
2020-09-24 19:08:00 +00:00
|
|
|
%pom_add_parent org.jsr-305:jsr-305:0.1-SNAPSHOT ri
|
2020-09-11 12:01:42 +00:00
|
|
|
|
|
|
|
%pom_remove_plugin org.sonatype.plugins:nexus-staging-maven-plugin ri
|
|
|
|
%pom_remove_plugin org.apache.maven.plugins:maven-source-plugin ri
|
|
|
|
%pom_remove_plugin org.apache.maven.plugins:maven-javadoc-plugin ri
|
|
|
|
%pom_remove_plugin org.apache.maven.plugins:maven-gpg-plugin ri
|
|
|
|
|
2008-08-11 17:59:28 +00:00
|
|
|
%build
|
2013-06-18 14:10:33 +00:00
|
|
|
%mvn_build
|
2008-08-11 17:59:28 +00:00
|
|
|
|
|
|
|
%install
|
2013-06-18 14:10:33 +00:00
|
|
|
%mvn_install
|
2008-08-11 17:59:28 +00:00
|
|
|
|
2013-06-18 14:10:33 +00:00
|
|
|
%files -f .mfiles
|
2024-07-30 09:51:29 +00:00
|
|
|
%license ri/LICENSE jcip-annotations-jcip-annotations-1.0-1/LICENSE.txt
|
2019-06-28 09:15:58 +00:00
|
|
|
%doc sampleUses
|
2008-08-11 17:59:28 +00:00
|
|
|
|
|
|
|
%changelog
|
2024-07-30 17:57:37 +00:00
|
|
|
* Tue Jul 30 2024 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.0.2-15
|
|
|
|
- Replace CC-BY-2.5 annotations with Apache-2.0 ones
|
|
|
|
|
2024-06-24 15:53:14 +00:00
|
|
|
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 3.0.2-14
|
|
|
|
- Bump release for June 2024 mass rebuild
|
|
|
|
|
2024-01-24 23:30:40 +00:00
|
|
|
* Wed Jan 24 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.2-13
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
2024-01-20 23:50:38 +00:00
|
|
|
* Sat Jan 20 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.2-12
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
2023-09-20 16:07:17 +00:00
|
|
|
* Wed Sep 20 2023 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.0.2-11
|
|
|
|
- Rebuild to regenerate auto-Requires on java
|
|
|
|
|
2023-09-01 13:19:11 +00:00
|
|
|
* Fri Sep 01 2023 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.0.2-10
|
|
|
|
- Convert License tag to SPDX format
|
|
|
|
|
2023-08-15 08:23:35 +00:00
|
|
|
* Tue Aug 15 2023 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.0.2-9
|
|
|
|
- Build with default JDK 17
|
|
|
|
|
2023-07-20 08:15:29 +00:00
|
|
|
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.2-8
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
2023-01-19 13:57:19 +00:00
|
|
|
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.2-7
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
2022-07-21 15:28:03 +00:00
|
|
|
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.2-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
2022-02-05 21:06:41 +00:00
|
|
|
* Sat Feb 05 2022 Jiri Vanek <jvanek@redhat.com> - 3.0.2-5
|
|
|
|
- Rebuilt for java-17-openjdk as system jdk
|
|
|
|
|
2022-01-20 14:01:42 +00:00
|
|
|
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.2-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
2021-07-22 09:19:32 +00:00
|
|
|
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.2-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
2021-05-17 13:49:56 +00:00
|
|
|
* Mon May 17 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.0.2-2
|
|
|
|
- Bootstrap build
|
2021-05-17 16:01:44 +00:00
|
|
|
- Non-bootstrap build
|
2021-05-17 13:49:56 +00:00
|
|
|
|
2021-01-26 15:04:50 +00:00
|
|
|
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.31.20130910svn
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
2020-09-11 12:01:42 +00:00
|
|
|
* Fri Sep 11 2020 Marian Koncek <mkoncek@redhat.com> - 3.0.2-1
|
|
|
|
- Rebuild a properly versioned package
|
|
|
|
|
2020-07-28 02:36:12 +00:00
|
|
|
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.30.20130910svn
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
2020-07-10 23:20:00 +00:00
|
|
|
* Fri Jul 10 2020 Jiri Vanek <jvanek@redhat.com> - 0-0.29.20130910svn
|
|
|
|
- Rebuilt for JDK-11, see https://fedoraproject.org/wiki/Changes/Java11
|
|
|
|
|
2020-05-23 23:10:00 +00:00
|
|
|
* Sat May 23 2020 Richard Fearn <richardfearn@gmail.com> - 0-0.28.20130910svn
|
|
|
|
- Enable building with JDK 11: use source/target 1.8
|
|
|
|
|
2020-02-02 10:05:56 +00:00
|
|
|
* Sun Feb 02 2020 Richard Fearn <richardfearn@gmail.com> - 0-0.27.20130910svn
|
|
|
|
- Use %%license
|
|
|
|
|
2020-01-29 06:30:15 +00:00
|
|
|
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.26.20130910svn
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
2020-01-25 13:40:08 +00:00
|
|
|
* Sat Jan 25 2020 Mikolaj Izdebski <mizdebsk@redhat.com> - 0-0.25.20130910svn
|
|
|
|
- Build with OpenJDK 8
|
|
|
|
|
2019-11-05 16:29:28 +00:00
|
|
|
* Tue Nov 05 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 0-0.24.20130910svn
|
|
|
|
- Mass rebuild for javapackages-tools 201902
|
|
|
|
|
2019-07-25 10:53:40 +00:00
|
|
|
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.25.20130910svn
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
2019-05-24 15:00:53 +00:00
|
|
|
* Fri May 24 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 0-0.23.20130910svn
|
|
|
|
- Mass rebuild for javapackages-tools 201901
|
|
|
|
|
2019-02-01 04:50:43 +00:00
|
|
|
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.24.20130910svn
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
2018-07-13 06:42:58 +00:00
|
|
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.23.20130910svn
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
2018-02-07 19:19:35 +00:00
|
|
|
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.22.20130910svn
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
2017-07-26 14:45:31 +00:00
|
|
|
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.21.20130910svn
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
2017-02-10 17:28:42 +00:00
|
|
|
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.20.20130910svn
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
2016-02-04 01:29:34 +00:00
|
|
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.19.20130910svn
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
2015-06-17 12:38:52 +00:00
|
|
|
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0-0.18.20130910svn
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
|
2014-06-08 01:13:01 +00:00
|
|
|
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0-0.17.20130910svn
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
2013-09-10 18:34:16 +00:00
|
|
|
* Tue Sep 10 2013 Richard Fearn <richardfearn@gmail.com> - 0-0.16.20130910svn
|
|
|
|
- Update to r51
|
|
|
|
|
2013-08-03 21:48:43 +00:00
|
|
|
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0-0.15.20090319svn
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
|
2013-06-18 14:10:33 +00:00
|
|
|
* Tue Jun 18 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0-0.14.20090319svn
|
|
|
|
- Update to current packaging guidelines
|
|
|
|
|
2013-06-18 12:53:42 +00:00
|
|
|
* Tue Jun 18 2013 Michal Srb <msrb@redhat.com> - 0-0.14.20090319svn
|
|
|
|
- Install license file with javadoc subpackage (Resolves: rhbz#975411)
|
|
|
|
- Add file containing link to CC-BY license text
|
|
|
|
|
2013-02-14 03:03:21 +00:00
|
|
|
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0-0.13.20090319svn
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
|
2013-02-06 19:14:26 +00:00
|
|
|
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 0-0.12.20090319svn
|
|
|
|
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
|
|
|
|
- Replace maven BuildRequires with maven-local
|
|
|
|
|
2013-01-04 16:06:06 +00:00
|
|
|
* Fri Jan 4 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0-0.11.20090319svn
|
|
|
|
- Add CC-BY to license tag
|
|
|
|
- Resolves: rhbz#876648
|
|
|
|
|
2012-07-19 16:44:00 +00:00
|
|
|
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0-0.10.20090319svn
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
2012-01-14 14:29:12 +00:00
|
|
|
* Sat Jan 14 2012 Richard Fearn <richardfearn@gmail.com> - 0-0.9.20090319svn
|
|
|
|
- Do not build sampleUses module as it causes Javadoc generation to fail
|
|
|
|
|
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
|