2024-10-11 12:41:35 +00:00
|
|
|
#
|
2024-10-12 20:33:35 +00:00
|
|
|
# spec file for package jakarta-expression-language
|
2024-10-11 12:41:35 +00:00
|
|
|
#
|
2025-05-09 06:53:53 +00:00
|
|
|
# Copyright (c) 2025 SUSE LLC
|
2024-10-11 12:41:35 +00:00
|
|
|
#
|
|
|
|
# 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 base_name expression-language
|
|
|
|
Name: jakarta-%{base_name}
|
|
|
|
Version: 6.0.1
|
|
|
|
Release: 0
|
|
|
|
Summary: Jakarta Expression Language
|
|
|
|
License: EPL-2.0
|
|
|
|
Group: Development/Libraries/Java
|
|
|
|
URL: https://jakarta.ee/specifications/base_name
|
|
|
|
Source0: https://github.com/jakartaee/%{base_name}/archive/refs/tags/%{version}-RELEASE-api.tar.gz
|
|
|
|
Source1: %{name}-build.xml
|
2024-10-11 13:55:41 +00:00
|
|
|
Patch0: no-anonymous-inner-classes.patch
|
2024-10-11 12:41:35 +00:00
|
|
|
BuildRequires: ant
|
2024-10-12 20:33:35 +00:00
|
|
|
BuildRequires: fdupes
|
2024-10-11 13:55:41 +00:00
|
|
|
BuildRequires: java-devel >= 17
|
2024-10-11 12:41:35 +00:00
|
|
|
BuildRequires: javapackages-local >= 6
|
|
|
|
Requires: java-headless >= 1.8
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description
|
|
|
|
Jakarta Expression Language defines an expression language for Java applications.
|
|
|
|
|
|
|
|
%package javadoc
|
|
|
|
Summary: API documentation for %{name}
|
|
|
|
|
|
|
|
%description javadoc
|
|
|
|
This package provides %{summary}.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{base_name}-%{version}-RELEASE-api
|
|
|
|
cp %{SOURCE1} api/build.xml
|
2024-10-11 13:55:41 +00:00
|
|
|
%patch -P 0 -p1
|
2024-10-11 12:41:35 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
pushd api
|
|
|
|
mkdir -p lib
|
|
|
|
ant package javadoc
|
|
|
|
popd
|
|
|
|
|
|
|
|
%install
|
|
|
|
#jar
|
|
|
|
install -dm 0755 %{buildroot}%{_javadir}/%{name}
|
2025-05-09 06:53:53 +00:00
|
|
|
install -pm 0644 api/target/jakarta.el-api-%{version}.jar %{buildroot}%{_javadir}/%{name}/jakarta.el-api.jar
|
2024-10-11 12:41:35 +00:00
|
|
|
# pom
|
|
|
|
install -dm 0755 %{buildroot}%{_mavenpomdir}/%{name}
|
2025-05-09 06:53:53 +00:00
|
|
|
%{mvn_install_pom} api/pom.xml %{buildroot}%{_mavenpomdir}/%{name}/jakarta.el-api.pom
|
|
|
|
%add_maven_depmap %{name}/jakarta.el-api.pom %{name}/jakarta.el-api.jar
|
2024-10-11 12:41:35 +00:00
|
|
|
# javadoc
|
|
|
|
install -dm 0755 %{buildroot}%{_javadocdir}/%{name}
|
|
|
|
cp -pr api/target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}
|
2024-10-12 20:33:35 +00:00
|
|
|
%fdupes -s %{buildroot}%{_javadocdir}
|
2024-10-11 12:41:35 +00:00
|
|
|
|
|
|
|
%files -f .mfiles
|
|
|
|
%license LICENSE.md NOTICE.md
|
|
|
|
%doc README.md
|
|
|
|
|
|
|
|
%files javadoc
|
|
|
|
%{_javadocdir}/%{name}
|
|
|
|
%license LICENSE.md NOTICE.md
|
|
|
|
|
|
|
|
%changelog
|