Name: libtcnative-1-0 Version: 1.2.23 Release: 5 Summary: JNI wrappers for Apache Portable Runtime for Tomcat License: Apache-2.0 Url: https://tomcat.apache.org/tomcat-7.0-doc/apr.html Source0: https://archive.apache.org/dist/tomcat/tomcat-connectors/native/%{version}/source/tomcat-native-%{version}-src.tar.gz Source1: https://archive.apache.org/dist/tomcat/tomcat-connectors/native/%{version}/source/tomcat-native-%{version}-src.tar.gz.asc # https://www.apache.org/dist/tomcat/tomcat-connectors/KEYS Source2: %{name}.keyring BuildRequires: fdupes java-1.8.0-openjdk-devel javapackages-tools apr-devel gcc BuildRequires: openssl-devel >= 1.0.2 pkgconfig make Provides: tcnative = %{version} Provides: tomcat-native = %{version} Obsoletes: tomcat-native < %{version} %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. %package devel Summary: JNI wrappers for Apache Portable Runtime for Tomcat Requires: %{name} = %{version}-%{release} glibc-devel apr-devel openssl-devel %description devel 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. %prep %setup -q -n tomcat-native-%{version}-src %build cd native %configure \ --with-apr=%{_bindir}/apr-1-config \ --with-java-home=%{java_home} \ --with-java-platform=2 make %{?_smp_mflags} %install make -C native install DESTDIR=%{buildroot} install -d -m 755 %{buildroot}/%{_includedir} install -m 644 native/include/* %{buildroot}/%{_includedir} find %{buildroot} -type f -name "*.la" -delete -print %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %doc CHANGELOG.txt LICENSE NOTICE README.txt %{_libdir}/libtcnative-1.so.* %{_libdir}/libtcnative-1.so %files devel %{_includedir}/* %{_libdir}/pkgconfig/*.pc %{_libdir}/libtcnative-1.a %changelog * Wed Nov 30 2022 caodongxia - 1.2.23-5 - Add the compilation dependency make and java-1.8.0-openjdk-devel * Wed Nov 10 2021 caodongxia - 1.2.23-4 - Obsoletes tomcat-native * Tue Jun 08 2021 wulei - 1.2.23-3 - fixes failed: error: C compiler cannot create executables * Sun Sep 27 2020 huanghaitao - 1.2.23-2 - Delete tomcat-native provides to fix confilct * Fri Jul 17 2020 leiju - 1.2.23-1 - Modify BuildRequires and Requires * Sun Jun 28 2020 leiju - 1.2.23-0 - Package init