2019-04-08 07:28:19 +00:00
|
|
|
#
|
2024-09-30 03:49:48 +00:00
|
|
|
# spec file for package apache-commons-el
|
2019-04-08 07:28:19 +00:00
|
|
|
#
|
2024-09-30 03:49:48 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2019-04-08 07:28:19 +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 el
|
|
|
|
%global short_name commons-%{base_name}
|
|
|
|
Name: apache-%{short_name}
|
|
|
|
Version: 1.0
|
|
|
|
Release: 0
|
|
|
|
Summary: The Apache Commons Extension Language
|
|
|
|
License: Apache-1.1
|
|
|
|
Group: Development/Libraries/Java
|
2020-12-09 09:52:44 +00:00
|
|
|
URL: https://commons.apache.org/%{base_name}
|
|
|
|
Source0: https://archive.apache.org/dist/commons/%{base_name}/source/%{short_name}-%{version}-src.tar.gz
|
|
|
|
Source1: https://repo1.maven.org/maven2/%{short_name}/%{short_name}/%{version}/%{short_name}-%{version}.pom
|
2019-04-08 07:28:19 +00:00
|
|
|
Patch0: %{short_name}-%{version}-license.patch
|
|
|
|
Patch1: %{short_name}-eclipse-manifest.patch
|
|
|
|
Patch2: %{short_name}-enum.patch
|
|
|
|
BuildRequires: ant
|
|
|
|
BuildRequires: apache-commons-logging
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: glassfish-jsp-api
|
|
|
|
BuildRequires: glassfish-servlet-api
|
2024-09-30 05:37:34 +00:00
|
|
|
BuildRequires: javapackages-local >= 6
|
2019-04-08 07:28:19 +00:00
|
|
|
BuildRequires: junit
|
2020-12-09 09:52:44 +00:00
|
|
|
Provides: jakarta-%{short_name}
|
|
|
|
Obsoletes: jakarta-%{short_name}
|
|
|
|
Provides: %{short_name}
|
2019-04-08 07:28:19 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description
|
|
|
|
An implementation of standard interfaces and abstract classes for
|
|
|
|
javax.servlet.jsp.el which is part of the JSP 2.0 specification.
|
|
|
|
|
|
|
|
%package javadoc
|
|
|
|
Summary: API documentation for %{name}
|
|
|
|
Group: Development/Libraries/Java
|
|
|
|
|
|
|
|
%description javadoc
|
|
|
|
%{summary}.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{short_name}-%{version}-src
|
2024-02-20 13:01:03 +00:00
|
|
|
%patch -P 0 -p1 -b .license
|
|
|
|
%patch -P 1 -p1
|
|
|
|
%patch -P 2 -p1
|
2019-04-08 07:28:19 +00:00
|
|
|
|
|
|
|
# remove all precompiled stuff
|
|
|
|
find . -type f -name "*.jar" -exec rm -f {} \;
|
|
|
|
|
|
|
|
cat > build.properties <<EOBP
|
|
|
|
build.compiler=modern
|
|
|
|
junit.jar=$(build-classpath junit)
|
|
|
|
servlet-api.jar=$(build-classpath glassfish-servlet-api)
|
|
|
|
jsp-api.jar=$(build-classpath glassfish-jsp-api)
|
|
|
|
servletapi.build.notrequired=true
|
|
|
|
jspapi.build.notrequired=true
|
|
|
|
EOBP
|
|
|
|
|
|
|
|
%build
|
2024-09-30 03:49:48 +00:00
|
|
|
ant \
|
2022-03-19 19:43:21 +00:00
|
|
|
-Dant.build.javac.source=1.8 -Dant.build.javac.target=1.8 \
|
2019-04-08 07:28:19 +00:00
|
|
|
-Dfinal.name=%{short_name} \
|
|
|
|
-Dj2se.javadoc=%{_javadocdir}/java \
|
|
|
|
jar javadoc
|
|
|
|
|
|
|
|
%install
|
|
|
|
# jar
|
|
|
|
install -dm 0755 %{buildroot}%{_javadir}
|
|
|
|
install -pm 0644 dist/%{short_name}.jar %{buildroot}%{_javadir}/%{short_name}.jar
|
|
|
|
ln -sf %{short_name}.jar %{buildroot}%{_javadir}/%{name}.jar
|
2020-12-09 09:52:44 +00:00
|
|
|
ln -sf %{short_name}.jar %{buildroot}%{_javadir}/jakarta-%{short_name}.jar
|
2019-04-08 07:28:19 +00:00
|
|
|
# pom
|
|
|
|
install -dm 0755 %{buildroot}%{_mavenpomdir}
|
2024-09-30 03:49:48 +00:00
|
|
|
%{mvn_install_pom} %{SOURCE1} %{buildroot}%{_mavenpomdir}/%{short_name}.pom
|
2019-04-08 07:28:19 +00:00
|
|
|
%add_maven_depmap %{short_name}.pom %{short_name}.jar -a "org.apache.commons:commons-el"
|
|
|
|
# javadoc
|
|
|
|
install -dm 0755 %{buildroot}%{_javadocdir}/%{name}
|
|
|
|
cp -pr dist/docs/api/* %{buildroot}%{_javadocdir}/%{name}/
|
|
|
|
%fdupes -s %{buildroot}%{_javadocdir}
|
|
|
|
|
|
|
|
%files -f .mfiles
|
|
|
|
%license LICENSE.txt
|
|
|
|
%doc STATUS.html
|
|
|
|
%{_javadir}/%{name}.jar
|
2020-12-09 09:52:44 +00:00
|
|
|
%{_javadir}/jakarta-%{short_name}.jar
|
2019-04-08 07:28:19 +00:00
|
|
|
|
|
|
|
%files javadoc
|
|
|
|
%license LICENSE.txt
|
|
|
|
%{_javadocdir}/%{name}
|
|
|
|
|
|
|
|
%changelog
|