2007-01-16 00:18:28 +01:00
|
|
|
#
|
2012-06-16 06:55:34 +02:00
|
|
|
# spec file for package jakarta-taglibs-standard
|
2007-01-16 00:18:28 +01:00
|
|
|
#
|
2024-02-21 10:27:27 +01:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2007-01-16 00:18:28 +01:00
|
|
|
#
|
2008-08-06 01:48:33 +02: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.
|
|
|
|
|
2021-12-28 11:13:57 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2007-01-16 00:18:28 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2012-06-16 06:55:34 +02:00
|
|
|
%define short_name taglibs-standard
|
2007-01-16 00:18:28 +01:00
|
|
|
Name: jakarta-taglibs-standard
|
2021-12-28 11:13:57 +01:00
|
|
|
Version: 1.1.2
|
2012-06-16 06:55:34 +02:00
|
|
|
Release: 0
|
2007-01-16 00:18:28 +01:00
|
|
|
Summary: Open Source Implementation of the JSP Standard Tag Library
|
2011-12-06 18:20:22 +01:00
|
|
|
License: Apache-2.0
|
2007-01-16 00:18:28 +01:00
|
|
|
Group: Development/Libraries/Java
|
2024-02-21 10:27:27 +01:00
|
|
|
URL: https://tomcat.apache.org/taglibs/
|
2021-12-28 11:13:57 +01:00
|
|
|
Source0: http://archive.apache.org/dist/jakarta/taglibs/standard/source/%{name}-%{version}-src.tar.gz
|
2008-08-06 01:48:33 +02:00
|
|
|
Patch0: %{name}-%{version}-build.patch
|
|
|
|
Patch1: %{name}-java6-compatibility.patch
|
|
|
|
Patch2: %{name}-%{version}-remove-enums.patch
|
2012-06-16 06:55:34 +02:00
|
|
|
Patch3: jakarta-taglibs-standard-java7.patch
|
2015-10-06 11:01:39 +02:00
|
|
|
Patch4: CVE-2015-0254.patch
|
2012-06-16 06:55:34 +02:00
|
|
|
BuildRequires: ant
|
2017-09-18 17:45:01 +02:00
|
|
|
BuildRequires: fdupes
|
2022-03-20 14:10:18 +01:00
|
|
|
BuildRequires: java-devel >= 1.8
|
2012-06-16 06:55:34 +02:00
|
|
|
BuildRequires: servletapi5
|
|
|
|
BuildRequires: xalan-j2
|
2008-08-06 01:48:33 +02:00
|
|
|
Requires: servletapi5 >= 5.0.16
|
2012-06-16 06:55:34 +02:00
|
|
|
Requires: xalan-j2
|
2014-07-11 11:14:32 +02:00
|
|
|
BuildArch: noarch
|
2007-01-16 00:18:28 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
This package contains releases for the 1.1.x versions of the Standard
|
|
|
|
Tag Library, Jakarta Taglibs's open source implementation of the JSP
|
|
|
|
Standard Tag Library (JSTL), version 1.1. JSTL is a standard under the
|
|
|
|
Java Community Process.
|
|
|
|
|
|
|
|
%package javadoc
|
|
|
|
Summary: Javadoc for jakarta-taglibs-standard
|
|
|
|
Group: Development/Libraries/Java
|
|
|
|
|
|
|
|
%description javadoc
|
|
|
|
This package contains the javadoc documentation for Jakarta Taglibs.
|
|
|
|
|
|
|
|
%prep
|
2012-06-16 06:55:34 +02:00
|
|
|
%setup -q -n %{name}-%{version}-src
|
2024-02-21 10:27:27 +01:00
|
|
|
%patch -P 0
|
|
|
|
%patch -P 1 -b .sav1
|
|
|
|
%patch -P 2 -b .sav2
|
|
|
|
%patch -P 3 -p1
|
|
|
|
%patch -P 4 -p1
|
2012-06-16 06:55:34 +02:00
|
|
|
|
2007-01-16 00:18:28 +01:00
|
|
|
cat > build.properties <<EOBP
|
|
|
|
build.dir=build
|
|
|
|
dist.dir=dist
|
|
|
|
servlet24.jar=$(build-classpath servletapi5)
|
|
|
|
jsp20.jar=$(build-classpath jspapi)
|
|
|
|
xalan.jar=$(build-classpath xalan-j2)
|
|
|
|
EOBP
|
|
|
|
|
|
|
|
%build
|
|
|
|
ant \
|
2022-03-20 14:10:18 +01:00
|
|
|
-Dant.build.javac.source=1.8 -Dant.build.javac.target=1.8 \
|
2007-01-16 00:18:28 +01:00
|
|
|
-Dfinal.name=%{short_name} \
|
|
|
|
-Dj2se.javadoc=%{_javadocdir}/java \
|
|
|
|
-f standard/build.xml \
|
|
|
|
dist
|
|
|
|
|
|
|
|
%install
|
|
|
|
# jars
|
2014-07-11 11:14:32 +02:00
|
|
|
mkdir -p %{buildroot}%{_javadir}
|
|
|
|
cp -p standard/dist/standard/lib/jstl.jar %{buildroot}%{_javadir}/jakarta-taglibs-core-%{version}.jar
|
|
|
|
cp -p standard/dist/standard/lib/standard.jar %{buildroot}%{_javadir}/jakarta-taglibs-standard-%{version}.jar
|
|
|
|
(cd %{buildroot}%{_javadir} && for jar in *-%{version}*; do ln -sf ${jar} `echo $jar| sed "s|jakarta-||g"`; done)
|
|
|
|
(cd %{buildroot}%{_javadir} && for jar in *-%{version}*; do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done)
|
2007-01-16 00:18:28 +01:00
|
|
|
# javadoc
|
2014-07-11 11:14:32 +02:00
|
|
|
mkdir -p %{buildroot}%{_javadocdir}/%{name}
|
|
|
|
cp -pr standard/dist/standard/javadoc/* %{buildroot}%{_javadocdir}/%{name}
|
2017-09-18 17:45:01 +02:00
|
|
|
%fdupes -s %{buildroot}%{_javadocdir}/%{name}
|
2007-01-16 00:18:28 +01:00
|
|
|
|
|
|
|
%files
|
2021-12-28 11:13:57 +01:00
|
|
|
%license LICENSE
|
2007-01-16 00:18:28 +01:00
|
|
|
%doc standard/README_src.txt standard/README_bin.txt standard/dist/doc/doc/standard-doc/*.html
|
|
|
|
%{_javadir}/*
|
|
|
|
|
|
|
|
%files javadoc
|
2012-06-16 06:55:34 +02:00
|
|
|
%doc %{_javadocdir}/%{name}
|
2007-01-16 00:18:28 +01:00
|
|
|
|
2008-08-06 01:48:33 +02:00
|
|
|
%changelog
|