a80821
%bcond_with bootstrap
a80821
a80821
Name:           jakarta-annotations
a80821
Version:        1.3.5
7c98aa
Release:        13%{?dist}
a80821
Summary:        Jakarta Annotations
a80821
License:        EPL-2.0 or GPLv2 with exceptions
a80821
URL:            https://github.com/eclipse-ee4j/common-annotations-api
a80821
BuildArch:      noarch
a80821
a80821
Source0:        https://github.com/eclipse-ee4j/common-annotations-api/archive/%{version}/common-annotations-api-%{version}.tar.gz
a80821
a80821
BuildRequires:  maven-local
a80821
%if %{with bootstrap}
a80821
BuildRequires:  javapackages-bootstrap
a80821
%else
a80821
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
a80821
BuildRequires:  mvn(org.codehaus.mojo:build-helper-maven-plugin)
a80821
%endif
a80821
a80821
Provides:       glassfish-annotation-api = %{version}-%{release}
a80821
a80821
%description
a80821
Jakarta Annotations defines a collection of annotations representing
a80821
common semantic concepts that enable a declarative style of programming
a80821
that applies across a variety of Java technologies.
a80821
a80821
%{?javadoc_package}
a80821
a80821
%prep
a80821
%setup -q -n common-annotations-api-%{version}
a80821
a80821
# remove unnecessary dependency on parent POM
a80821
# org.eclipse.ee4j:project is not packaged and isn't needed
a80821
%pom_remove_parent
a80821
a80821
# disable spec submodule: it's not needed, and
a80821
# it has missing dependencies (jruby, asciidoctor-maven-plugin, ...)
a80821
%pom_disable_module spec
a80821
a80821
# remove plugins not needed for RPM builds
a80821
%pom_remove_plugin :maven-javadoc-plugin api
a80821
%pom_remove_plugin :maven-source-plugin api
a80821
%pom_remove_plugin :findbugs-maven-plugin api
a80821
%pom_remove_plugin :spec-version-maven-plugin api
a80821
a80821
# provide aliases for the old artifact coordinates
a80821
%mvn_alias jakarta.annotation:jakarta.annotation-api \
a80821
  javax.annotation:javax.annotation-api \
a80821
  javax.annotation:jsr250-api
a80821
a80821
%build
a80821
%mvn_build
a80821
a80821
%install
a80821
%mvn_install
a80821
a80821
%files -f .mfiles
a80821
%license LICENSE.md NOTICE.md
a80821
%doc README.md
a80821
a80821
%changelog
7c98aa
* Mon Jan 30 2023 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.3.5-13
7c98aa
- Rebuild to regenerate auto-requires
7c98aa
a80821
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1.3.5-12
a80821
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
a80821
  Related: rhbz#1991688
a80821
a80821
* Wed Jun 09 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.3.5-11
a80821
- Rebuild to workaround DistroBaker issue
a80821
a80821
* Tue Jun 08 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.3.5-10
a80821
- Bootstrap Maven for CentOS Stream 9
a80821
a80821
* Wed May 26 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.3.5-9
a80821
- Re-add provides on glassfish-annotation-api
a80821
a80821
* Mon May 17 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.3.5-8
a80821
- Bootstrap build
a80821
- Non-bootstrap build
a80821
a80821
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.5-7
a80821
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
a80821
a80821
* Thu Aug 13 2020 Jerry James <loganjerry@gmail.com> - 1.3.5-6
a80821
- Remove duplicate aliases
a80821
a80821
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.5-5
a80821
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
a80821
a80821
* Thu Jun 25 2020 Alexander Kurtakov <akurtako@redhat.com> 1.3.5-4
a80821
- Add alias for jsr250-api
a80821
a80821
* Fri Jun 19 2020 Mat Booth <mat.booth@redhat.com> - 1.3.5-3
a80821
- Remove uneeded plugin invokations
a80821
a80821
* Mon May 11 2020 Fabio Valentini <decathorpe@gmail.com> - 1.3.5-2
a80821
- Fix typo in obsoleted package name.
a80821
a80821
* Fri May 08 2020 Fabio Valentini <decathorpe@gmail.com> - 1.3.5-1
a80821
- Initial package renamed from glassfish-annotation-api.