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