From 9ffcb8e5335ce04bd69fda41ba1cf69a9a04353a Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Sun, 10 May 2020 10:37:38 +0200 Subject: [PATCH] initial import (#1833498) --- .gitignore | 4 +++ README.md | 3 -- jakarta-annotations.spec | 65 ++++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 70 insertions(+), 3 deletions(-) create mode 100644 .gitignore delete mode 100644 README.md create mode 100644 jakarta-annotations.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..213263d --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +/results_* +/*.src.rpm + +/common-annotations-api-1.3.5.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index 5b01af7..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# jakarta-annotations - -The jakarta-annotations package \ No newline at end of file diff --git a/jakarta-annotations.spec b/jakarta-annotations.spec new file mode 100644 index 0000000..4ad8e37 --- /dev/null +++ b/jakarta-annotations.spec @@ -0,0 +1,65 @@ +%global srcname common-annotations-api + +Name: jakarta-annotations +Version: 1.3.5 +Release: 1%{?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.apache.maven.plugins:maven-source-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-annotations-api < 1.3.5-1 +Provides: glassfish-annotations-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 + +# 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 +* Fri May 08 2020 Fabio Valentini - 1.3.5-1 +- Initial package renamed from glassfish-annotation-api. + diff --git a/sources b/sources new file mode 100644 index 0000000..18bb846 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (common-annotations-api-1.3.5.tar.gz) = 27a428d2e1dc2efe263a2b3857b82c103e777306ed78bfe8ee0beade07c4f595d84326f909b4a729400069ce9d243b40249fb8df14f5aa4a232c41cdc2979bd7