264ac8
%global namedreltag %{nil}
264ac8
%global namedversion %{version}%{?namedreltag}
264ac8
%global oname javax.annotation-api
264ac8
%global sname javax.annotation
264ac8
264ac8
Name:          glassfish-annotation-api
264ac8
Version:       1.3.2
264ac8
Release:       3%{?dist}
264ac8
Summary:       Common Annotations API Specification (JSR 250)
264ac8
License:       CDDL-1.1 or GPLv2 with exceptions
264ac8
264ac8
# NOTE: The new upstream repository under the Eclipse EE4J umbrella is here:
264ac8
# https://github.com/eclipse-ee4j/common-annotations-api
264ac8
# However, the new package provides a different groupId:artifactId.
264ac8
URL:           https://github.com/javaee/%{sname}
264ac8
Source0:       %{url}/archive/%{version}/%{sname}-%{version}.tar.gz
264ac8
264ac8
BuildRequires: maven-local
264ac8
BuildRequires: mvn(net.java:jvnet-parent:pom:)
264ac8
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
264ac8
BuildRequires: mvn(org.apache.maven.plugins:maven-remote-resources-plugin)
264ac8
BuildRequires: mvn(org.apache.maven.plugins:maven-source-plugin)
264ac8
BuildRequires: mvn(org.glassfish.build:spec-version-maven-plugin)
264ac8
# xmvn-builddep misses this one
264ac8
BuildRequires: mvn(org.glassfish:legal)
264ac8
264ac8
BuildArch:     noarch
264ac8
264ac8
%description
264ac8
Common Annotations APIs for the Java Platform (JSR 250).
264ac8
264ac8
%package javadoc
264ac8
Summary:       Javadoc for %{name}
264ac8
264ac8
%description javadoc
264ac8
This package contains javadoc for %{name}.
264ac8
264ac8
%prep
264ac8
%setup -q -n %{sname}-%{namedversion}
264ac8
264ac8
%pom_remove_plugin :findbugs-maven-plugin
264ac8
%pom_remove_plugin :maven-gpg-plugin
264ac8
%pom_remove_plugin :maven-javadoc-plugin
264ac8
264ac8
%mvn_file :%{oname} %{name}
264ac8
264ac8
%build
264ac8
%mvn_build
264ac8
264ac8
%install
264ac8
%mvn_install
264ac8
264ac8
%files -f .mfiles
264ac8
%license LICENSE
264ac8
264ac8
%files javadoc -f .mfiles-javadoc
264ac8
%license LICENSE
264ac8
264ac8
%changelog
264ac8
* Wed Apr 01 2020 Mat Booth <mat.booth@redhat.com> - 1.3.2-3
264ac8
- Avoid explicit javadoc plugin invokation
264ac8
264ac8
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.2-2
264ac8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
264ac8
264ac8
* Wed Oct 16 2019 Fabio Valentini <decathorpe@gmail.com> - 1.3.2-1
264ac8
- Update to version 1.3.2.
264ac8
264ac8
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-16
264ac8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
264ac8
264ac8
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-15
264ac8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
264ac8
264ac8
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-14
264ac8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
264ac8
264ac8
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-13
264ac8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
264ac8
264ac8
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-12
264ac8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
264ac8
264ac8
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-11
264ac8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
264ac8
264ac8
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-10
264ac8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
264ac8
264ac8
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-9
264ac8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
264ac8
264ac8
* Tue Feb 03 2015 gil cattaneo <puntogil@libero.it> 1.2-8
264ac8
- introduce license macro
264ac8
264ac8
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-7
264ac8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
264ac8
264ac8
* Fri Mar 28 2014 Michael Simacek <msimacek@redhat.com> - 1.2-6
264ac8
- Use Requires: java-headless rebuild (#1067528)
264ac8
264ac8
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-5
264ac8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
264ac8
264ac8
* Mon Jul 08 2013 gil cattaneo <puntogil@libero.it> 1.2-4
264ac8
- switch to XMvn
264ac8
- minor changes to adapt to current guideline
264ac8
264ac8
* Sun May 26 2013 gil cattaneo <puntogil@libero.it> 1.2-3
264ac8
- rebuilt with spec-version-maven-plugin support
264ac8
264ac8
* Wed May 22 2013 gil cattaneo <puntogil@libero.it> 1.2-2
264ac8
- fixed manifest
264ac8
264ac8
* Tue May 07 2013 gil cattaneo <puntogil@libero.it> 1.2-1
264ac8
- update to 1.2
264ac8
264ac8
* Tue Apr 02 2013 gil cattaneo <puntogil@libero.it> 1.2-0.1.b04
264ac8
- initial rpm