0319bc
%bcond_with bootstrap
0319bc
0319bc
Name:           jakarta-annotations
0319bc
Version:        1.3.5
0319bc
Release:        14%{?dist}
0319bc
Summary:        Jakarta Annotations
0319bc
License:        EPL-2.0 or GPLv2 with exceptions
0319bc
URL:            https://github.com/eclipse-ee4j/common-annotations-api
0319bc
BuildArch:      noarch
0319bc
ExclusiveArch:  %{java_arches} noarch
0319bc
0319bc
Source0:        https://github.com/eclipse-ee4j/common-annotations-api/archive/%{version}/common-annotations-api-%{version}.tar.gz
0319bc
0319bc
%if %{with bootstrap}
0319bc
BuildRequires:  javapackages-bootstrap
0319bc
%else
0319bc
BuildRequires:  maven-local
0319bc
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
0319bc
BuildRequires:  mvn(org.codehaus.mojo:build-helper-maven-plugin)
0319bc
%endif
0319bc
0319bc
Provides:       glassfish-annotation-api = %{version}-%{release}
0319bc
0319bc
%description
0319bc
Jakarta Annotations defines a collection of annotations representing
0319bc
common semantic concepts that enable a declarative style of programming
0319bc
that applies across a variety of Java technologies.
0319bc
0319bc
%{?javadoc_package}
0319bc
0319bc
%prep
0319bc
%setup -q -n common-annotations-api-%{version}
0319bc
0319bc
# remove unnecessary dependency on parent POM
0319bc
# org.eclipse.ee4j:project is not packaged and isn't needed
0319bc
%pom_remove_parent
0319bc
0319bc
# disable spec submodule: it's not needed, and
0319bc
# it has missing dependencies (jruby, asciidoctor-maven-plugin, ...)
0319bc
%pom_disable_module spec
0319bc
0319bc
# remove plugins not needed for RPM builds
0319bc
%pom_remove_plugin :maven-javadoc-plugin api
0319bc
%pom_remove_plugin :maven-source-plugin api
0319bc
%pom_remove_plugin :findbugs-maven-plugin api
0319bc
0319bc
# Remove use of spec-version-maven-plugin
0319bc
%pom_remove_plugin :spec-version-maven-plugin api
0319bc
%pom_xpath_set pom:Bundle-Version '${project.version}' api
0319bc
%pom_xpath_set pom:Bundle-SymbolicName '${project.artifactId}' api
0319bc
%pom_xpath_set pom:Extension-Name '${extension.name}' api
0319bc
%pom_xpath_set pom:Implementation-Version '${project.version}' api
0319bc
%pom_xpath_set pom:Specification-Version '${spec.version}' api
0319bc
0319bc
# provide aliases for the old artifact coordinates
0319bc
%mvn_alias jakarta.annotation:jakarta.annotation-api \
0319bc
  javax.annotation:javax.annotation-api \
0319bc
  javax.annotation:jsr250-api
0319bc
0319bc
%build
0319bc
%mvn_build
0319bc
0319bc
%install
0319bc
%mvn_install
0319bc
0319bc
%files -f .mfiles
0319bc
%license LICENSE.md NOTICE.md
0319bc
%doc README.md
0319bc
0319bc
%changelog
0319bc
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.5-14
0319bc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
0319bc
0319bc
* Sat Feb 05 2022 Jiri Vanek <jvanek@redhat.com> - 1.3.5-13
0319bc
- Rebuilt for java-17-openjdk as system jdk
0319bc
0319bc
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.5-12
0319bc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
0319bc
0319bc
* Fri Aug 13 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.3.5-11
0319bc
- Fix bundle manifest
0319bc
0319bc
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.5-10
0319bc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
0319bc
0319bc
* Wed May 26 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.3.5-9
0319bc
- Re-add provides on glassfish-annotation-api
0319bc
0319bc
* Mon May 17 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.3.5-8
0319bc
- Bootstrap build
0319bc
- Non-bootstrap build
0319bc
0319bc
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.5-7
0319bc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
0319bc
0319bc
* Thu Aug 13 2020 Jerry James <loganjerry@gmail.com> - 1.3.5-6
0319bc
- Remove duplicate aliases
0319bc
0319bc
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.5-5
0319bc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
0319bc
0319bc
* Thu Jun 25 2020 Alexander Kurtakov <akurtako@redhat.com> 1.3.5-4
0319bc
- Add alias for jsr250-api
0319bc
0319bc
* Fri Jun 19 2020 Mat Booth <mat.booth@redhat.com> - 1.3.5-3
0319bc
- Remove uneeded plugin invokations
0319bc
0319bc
* Mon May 11 2020 Fabio Valentini <decathorpe@gmail.com> - 1.3.5-2
0319bc
- Fix typo in obsoleted package name.
0319bc
0319bc
* Fri May 08 2020 Fabio Valentini <decathorpe@gmail.com> - 1.3.5-1
0319bc
- Initial package renamed from glassfish-annotation-api.