Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37563390
en ru br
ALT Linux repos
S:1.2.35-alt1_1jpp11
5.0: 1.1.13-alt1_1jpp1.7.2
4.1: 1.1.13-alt1_1jpp1.7

Group :: Development/Java
RPM: tomcat-native

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

BuildRequires: /proc
BuildRequires: jpackage-1.4-compat
Name:           tomcat-native
Version:        1.1.13
Release:        alt1_1jpp1.7
Summary:        Tomcat native library

Group:          Development/Java
License:        ASL 2.0
URL:            http://tomcat.apache.org/tomcat-6.0-doc/apr.html
Source0:        http://archive.apache.org/dist/tomcat/tomcat-connectors/native/%{name}-%{version}-src.tar.gz

BuildRequires: jpackage-utils
BuildRequires: libapr1-devel >= 1.2.1
BuildRequires: libssl-devel
# Upstream compatibility:
Provides:       tcnative = %{version}-%{release}

%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).  This package contains the Tomcat native library which
provides support for using APR in Tomcat.


%prep
%setup -q -n %{name}-%{version}-src


%build
cd jni/native
%configure \
   --with-apr=%{_bindir}/apr-1-config \
   --with-java-home=%{java_home} \
   --with-java-platform=2
make %{?_smp_mflags}


%install
make -C jni/native install DESTDIR=$RPM_BUILD_ROOT
# Perhaps a devel package sometime?  Not for now; no headers are installed.
rm -f $RPM_BUILD_ROOT%{_libdir}/libtcnative*.*a
rm -rf $RPM_BUILD_ROOT%{_libdir}/pkgconfig


%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig


%files
%doc CHANGELOG.txt LICENSE NOTICE.txt
# Note: unversioned *.so needed here due to how Tomcat loads the lib :(
%{_libdir}/libtcnative*.so*


%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin