[packages/tomcat-native] Up to 2.0.15

arekm arekm at pld-linux.org
Mon Aug 3 08:44:12 CEST 2026


commit fd47774cf11c5b3151673491f57f645248972205
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Mon Aug 3 08:43:57 2026 +0200

    Up to 2.0.15

 tomcat-native.spec | 96 +++++++++++++++++++++++-------------------------------
 1 file changed, 40 insertions(+), 56 deletions(-)
---
diff --git a/tomcat-native.spec b/tomcat-native.spec
index 9cedd9e..f66f6ec 100644
--- a/tomcat-native.spec
+++ b/tomcat-native.spec
@@ -1,64 +1,51 @@
-Summary:	Native Tomcat Connector based on APR
-Summary(pl.UTF-8):	Natywny Connector Tomcata oparty o APR
+%{?use_default_jdk:%use_default_jdk 21}
+
+Summary:	Native Tomcat library providing TLS support via OpenSSL
+Summary(pl.UTF-8):	Natywna biblioteka Tomcata obsługująca TLS przez OpenSSL
 Name:		tomcat-native
-Version:	1.2.31
+Version:	2.0.15
 Release:	1
 License:	Apache v2
 Group:		Libraries
-Source0:	http://www.apache.org/dist/tomcat/tomcat-connectors/native/%{version}/source/%{name}-%{version}-src.tar.gz
-# Source0-md5:	a6943e123b1eca0795e106af132df93d
-URL:		http://tomcat.apache.org/native-doc/
-BuildRequires:	ant
-BuildRequires:	apr-devel
+Source0:	https://archive.apache.org/dist/tomcat/tomcat-connectors/native/%{version}/source/%{name}-%{version}-src.tar.gz
+# Source0-md5:	1a68a66ab4eaaf6f0304dd9542086510
+URL:		https://tomcat.apache.org/native-doc/
+BuildRequires:	ant >= 1.10.2
+BuildRequires:	apr-devel >= 1.7.0
 BuildRequires:	autoconf
 BuildRequires:	automake
-BuildRequires:	jdk >= 1.7.0
+%buildrequires_jdk
 BuildRequires:	jpackage-utils
 BuildRequires:	libtool
-BuildRequires:	openssl-devel
+BuildRequires:	openssl-devel >= 3.0.0
 BuildRequires:	rpm >= 4.4.9-56
 BuildRequires:	rpm-javaprov
 BuildRequires:	rpmbuild(macros) >= 1.300
-BuildConflicts:	java-gcj-compat
-Requires:	nss
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-Tomcat can use the Apache Portable Runtime to provide superior
-scalability, performance, and better integration with native server
-technologies. The Apache Portable Runtime is a highly portable library
-that is at the heart of Apache HTTP Server 2.x. APR has many uses,
-including access to advanced IO functionality (such as sendfile, epoll
-and OpenSSL), OS level functionality (random number generation, system
-status, etc), and native process handling (shared memory, NT pipes and
-Unix sockets).
-
-These features allows making Tomcat a general purpose webserver, will
-enable much better integration with other native web technologies, and
-overall make Java much more viable as a full fledged webserver
-platform rather than simply a backend focused technology.
+Tomcat Native is a JNI wrapper that allows Tomcat to use OpenSSL
+instead of JSSE for TLS support. It uses the Apache Portable Runtime as
+an operating system abstraction layer.
+
+The APR based HTTP connector was removed in Tomcat 10.1, so this
+version only provides OpenSSL support for the NIO and NIO2 connectors.
+It is meant for Tomcat 10.1 and newer; Tomcat 9 needs the 1.3.x branch,
+packaged as tomcat-native9.
 
 %description -l pl.UTF-8
-Tomcat może wykorzytać Apache Portable Runtime aby zapewnić najwyższą,
-skalowalność, wydajność i lepszą integrację z natywnymi technologiami
-serwerowymi.
-
-Apache portable Runtime jest wysoce przenośną biblioteką, która jest
-sercem serwera Apache HTTPD 2.x. APR ma wiele zestosowań, m. in.
-dostępd do zaawansowanych funkcjonalnośći IO (takich jak sendfile,
-epoll i OpenSSL), funkcjonalności posiomu systemu operacyjnego
-(generacja liczb losowych, stan systemu, itp.) i natywną obsługę
-procesów (współdzielona pamięć, potoki NT i gniazda uniksowe).
-
-Te cechy pozwalają na wykorzystanie Tomcata jako sewera www do
-zastosowań ogólnych, pozwalają na o wiele lepszą integrację z innymi
-natywnymi technologiami www i w ogólności pozwalają na traktowanie
-Javy jako zaawansowanej i kompletnej platformy www a nie tylko
-technologii backendowej.
+Tomcat Native to nakładka JNI pozwalająca Tomcatowi obsługiwać TLS
+przez OpenSSL zamiast JSSE. Jako warstwy abstrakcji systemu
+operacyjnego używa biblioteki Apache Portable Runtime.
+
+Konektor HTTP oparty na APR został usunięty w Tomcacie 10.1, więc ta
+wersja udostępnia obsługę OpenSSL wyłącznie dla konektorów NIO i NIO2.
+Jest przeznaczona dla Tomcata 10.1 i nowszych; Tomcat 9 wymaga gałęzi
+1.3.x, dostarczanej jako tomcat-native9.
 
 %package devel
 Summary:	Header files for tcnative library
-Summary(pl.UTF-8):	Pliki nagłówwkowe biblioteki tcnative
+Summary(pl.UTF-8):	Pliki nagłówkowe biblioteki tcnative
 Group:		Development/Libraries
 Requires:	%{name} = %{version}-%{release}
 
@@ -85,10 +72,7 @@ Statyczna biblioteka tcnative.
 
 %build
 # build java part
-%ant clean jar \
-	-Dcompile.source=1.7 \
-	-Dcompile.target=1.7 \
-	%{nil}
+%ant clean jar
 
 # build native part
 cd native
@@ -101,8 +85,8 @@ cd native
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT%{_javadir}
-cp -p dist/tomcat-native-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/tomcat-native-%{version}.jar
-ln -s tomcat-native-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/tomcat-native.jar
+cp -p dist/%{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
+ln -s %{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar
 
 cd native
 %{__make} install \
@@ -110,8 +94,8 @@ cd native
 	DESTDIR=$RPM_BUILD_ROOT
 
 # Why Makefile doesn't do that?
-install -d $RPM_BUILD_ROOT/%{_includedir}
-cp -p include/*.h $RPM_BUILD_ROOT/%{_includedir}
+install -d $RPM_BUILD_ROOT%{_includedir}/%{name}
+cp -p include/*.h $RPM_BUILD_ROOT%{_includedir}/%{name}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -124,15 +108,15 @@ rm -rf $RPM_BUILD_ROOT
 %doc CHANGELOG.txt README.txt
 %{_javadir}/%{name}-%{version}.jar
 %{_javadir}/%{name}.jar
-%attr(755,root,root) %{_libdir}/libtcnative-1.so.*.*
-%attr(755,root,root) %ghost %{_libdir}/libtcnative-1.so.0
-%{_libdir}/libtcnative-1.so
+%attr(755,root,root) %{_libdir}/libtcnative-2.so.*.*
+%attr(755,root,root) %ghost %{_libdir}/libtcnative-2.so.0
+%{_libdir}/libtcnative-2.so
 
 %files devel
 %defattr(644,root,root,755)
-%{_libdir}/libtcnative-1.la
-%{_includedir}/*.h
+%{_libdir}/libtcnative-2.la
+%{_includedir}/%{name}
 
 %files static
 %defattr(644,root,root,755)
-%{_libdir}/libtcnative-1.a
+%{_libdir}/libtcnative-2.a
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/tomcat-native.git/commitdiff/fd47774cf11c5b3151673491f57f645248972205



More information about the pld-cvs-commit mailing list