Blame jakarta-annotations.spec

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