libtcnative/libtcnative-1-0.spec

88 lines
3.4 KiB
RPMSpec

Name: libtcnative-1-0
Version: 1.2.23
Release: 2
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-devel javapackages-tools apr-devel
BuildRequires: openssl-devel >= 1.0.2 pkgconfig
Provides: tcnative = %{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
* Sun Sep 27 2020 huanghaitao <huanghaitao8@huawei.com> - 1.2.23-2
- Delete tomcat-native provides to fix confilct
* Fri Jul 17 2020 leiju <leiju4@huawei.com> - 1.2.23-1
- Modify BuildRequires and Requires
* Sun Jun 28 2020 leiju <leiju4@huawei.com> - 1.2.23-0
- Package init