Blame SPECS/jakarta-annotations.spec

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