RHEL 9.0.0 Alpha bootstrap

The content of this branch was automatically imported from Fedora ELN
with the following as its source:
https://src.fedoraproject.org/rpms/jakarta-annotations#dbbbb99e12df9514a7cc758eb953fe00b818800e
This commit is contained in:
Petr Šabata 2020-10-15 13:53:51 +02:00
parent bde82d5dd1
commit b30f486a02
3 changed files with 88 additions and 0 deletions

4
.gitignore vendored
View File

@ -0,0 +1,4 @@
/results_*
/*.src.rpm
/common-annotations-api-1.3.5.tar.gz

83
jakarta-annotations.spec Normal file
View File

@ -0,0 +1,83 @@
%global srcname common-annotations-api
Name: jakarta-annotations
Version: 1.3.5
Release: 6%{?dist}
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
Obsoletes: glassfish-annotation-api < 1.3.5-1
Provides: glassfish-annotation-api = %{version}-%{release}
%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
# 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
# provide aliases for the old artifact coordinates
%mvn_alias jakarta.annotation:jakarta.annotation-api \
javax.annotation:javax.annotation-api \
javax.annotation:jsr250-api
%build
%mvn_build
%install
%mvn_install
%files -f .mfiles
%license LICENSE.md NOTICE.md
%doc README.md
%changelog
* Thu Aug 13 2020 Jerry James <loganjerry@gmail.com> - 1.3.5-6
- Remove duplicate aliases
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.5-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Thu Jun 25 2020 Alexander Kurtakov <akurtako@redhat.com> 1.3.5-4
- Add alias for jsr250-api
* Fri Jun 19 2020 Mat Booth <mat.booth@redhat.com> - 1.3.5-3
- Remove uneeded plugin invokations
* Mon May 11 2020 Fabio Valentini <decathorpe@gmail.com> - 1.3.5-2
- Fix typo in obsoleted package name.
* Fri May 08 2020 Fabio Valentini <decathorpe@gmail.com> - 1.3.5-1
- Initial package renamed from glassfish-annotation-api.

1
sources Normal file
View File

@ -0,0 +1 @@
SHA512 (common-annotations-api-1.3.5.tar.gz) = 27a428d2e1dc2efe263a2b3857b82c103e777306ed78bfe8ee0beade07c4f595d84326f909b4a729400069ce9d243b40249fb8df14f5aa4a232c41cdc2979bd7