78 lines
2.3 KiB
RPMSpec
78 lines
2.3 KiB
RPMSpec
#
|
|
# spec file for package glassfish-annotation-api
|
|
#
|
|
# Copyright (c) 2022 SUSE LLC
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%global groupId javax.annotation
|
|
%global artifactId javax.annotation-api
|
|
Name: glassfish-annotation-api
|
|
Version: 1.3.2
|
|
Release: 0
|
|
Summary: Common Annotations API Specification (JSR 250)
|
|
License: CDDL-1.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
Group: Development/Libraries/Java
|
|
URL: https://github.com/javaee/
|
|
Source0: https://github.com/javaee/%{groupId}/archive/%{version}.tar.gz
|
|
Source1: %{name}-build.xml
|
|
Source2: https://raw.githubusercontent.com/javaee/%{groupId}/master/LICENSE
|
|
BuildRequires: ant
|
|
BuildRequires: fdupes
|
|
BuildRequires: java-devel >= 1.8
|
|
BuildRequires: javapackages-local
|
|
BuildArch: noarch
|
|
|
|
%description
|
|
Common Annotations APIs for the Java Platform (JSR 250).
|
|
|
|
%package javadoc
|
|
Summary: Javadoc for %{name}
|
|
Group: Documentation/HTML
|
|
|
|
%description javadoc
|
|
This package contains javadoc for %{name}.
|
|
|
|
%prep
|
|
%setup -q -n %{groupId}-%{version}
|
|
cp %{SOURCE1} build.xml
|
|
cp %{SOURCE2} .
|
|
|
|
%pom_remove_parent .
|
|
|
|
%build
|
|
%{ant}
|
|
|
|
%install
|
|
# jar
|
|
install -dm 0755 %{buildroot}%{_javadir}
|
|
install -pm 0644 target/%{artifactId}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar
|
|
# pom
|
|
install -dm 0755 %{buildroot}%{_mavenpomdir}
|
|
install -pm 0644 pom.xml %{buildroot}%{_mavenpomdir}/%{name}.pom
|
|
%add_maven_depmap %{name}.pom %{name}.jar
|
|
# javadoc
|
|
install -dm 0755 %{buildroot}%{_javadocdir}
|
|
install -pdm 0755 target/site/apidocs %{buildroot}%{_javadocdir}/%{name}
|
|
%fdupes -s %{buildroot}%{_javadocdir}
|
|
|
|
%files -f .mfiles
|
|
%license LICENSE
|
|
|
|
%files javadoc
|
|
%license LICENSE
|
|
%{_javadocdir}/%{name}
|
|
|
|
%changelog
|