2020-05-10 08:37:38 +00:00
|
|
|
%global srcname common-annotations-api
|
|
|
|
|
|
|
|
Name: jakarta-annotations
|
|
|
|
Version: 1.3.5
|
2020-06-19 15:17:58 +00:00
|
|
|
Release: 3%{?dist}
|
2020-05-10 08:37:38 +00:00
|
|
|
Summary: Jakarta Annotations
|
|
|
|
License: EPL-2.0 or GPLv2 with exceptions
|
|
|
|
|
|
|
|
URL: https://github.com/eclipse-ee4j/common-annotations-api
|
|
|
|
Source0: %{url}/archive/%{version}/%{srcname}-%{version}.tar.gz
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
BuildRequires: maven-local
|
|
|
|
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
|
|
|
|
BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin)
|
|
|
|
BuildRequires: mvn(org.glassfish.build:spec-version-maven-plugin)
|
|
|
|
|
|
|
|
# renamed in fedora 33, remove in fedora 35
|
2020-05-11 20:59:16 +00:00
|
|
|
Obsoletes: glassfish-annotation-api < 1.3.5-1
|
|
|
|
Provides: glassfish-annotation-api = %{version}-%{release}
|
2020-05-10 08:37:38 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
Jakarta Annotations defines a collection of annotations representing
|
|
|
|
common semantic concepts that enable a declarative style of programming
|
|
|
|
that applies across a variety of Java technologies.
|
|
|
|
|
|
|
|
|
|
|
|
%javadoc_package
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{srcname}-%{version}
|
|
|
|
|
|
|
|
# remove unnecessary dependency on parent POM
|
|
|
|
# org.eclipse.ee4j:project is not packaged and isn't needed
|
|
|
|
%pom_remove_parent
|
|
|
|
|
|
|
|
# disable spec submodule: it's not needed, and
|
|
|
|
# it has missing dependencies (jruby, asciidoctor-maven-plugin, ...)
|
|
|
|
%pom_disable_module spec
|
|
|
|
|
2020-06-19 15:17:58 +00:00
|
|
|
# remove plugins not needed for RPM builds
|
|
|
|
%pom_remove_plugin :maven-javadoc-plugin api
|
|
|
|
%pom_remove_plugin :maven-source-plugin api
|
|
|
|
%pom_remove_plugin :findbugs-maven-plugin api
|
|
|
|
|
2020-05-10 08:37:38 +00:00
|
|
|
# provide aliases for the old artifact coordinates
|
|
|
|
%mvn_alias jakarta.annotation:jakarta.annotation-api javax.annotation:javax.annotation-api
|
|
|
|
%mvn_alias jakarta.annotation:jakarta.annotation-api:pom: javax.annotation:javax.annotation-api:pom:
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%mvn_build
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%mvn_install
|
|
|
|
|
|
|
|
|
|
|
|
%files -f .mfiles
|
|
|
|
%license LICENSE.md NOTICE.md
|
|
|
|
%doc README.md
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2020-06-19 15:17:58 +00:00
|
|
|
* Fri Jun 19 2020 Mat Booth <mat.booth@redhat.com> - 1.3.5-3
|
|
|
|
- Remove uneeded plugin invokations
|
|
|
|
|
2020-05-11 20:59:16 +00:00
|
|
|
* Mon May 11 2020 Fabio Valentini <decathorpe@gmail.com> - 1.3.5-2
|
|
|
|
- Fix typo in obsoleted package name.
|
|
|
|
|
2020-05-10 08:37:38 +00:00
|
|
|
* Fri May 08 2020 Fabio Valentini <decathorpe@gmail.com> - 1.3.5-1
|
|
|
|
- Initial package renamed from glassfish-annotation-api.
|
|
|
|
|