Blame SPECS/jakarta-annotations.spec

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