%define tcnver 1 %define lib_name %mklibname tcnative %{tcnver} Summary: Tomcat Native Java library Name: tomcat-native Version: 1.1.6 Release: %mkrel 4 Epoch: 0 License: Apache License Group: Development/Java URL: http://apr.apache.org/ Source0: http://www.apache.org/dist/tomcat/tomcat-connectors/native/tomcat-native-%{version}-src.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot BuildRequires: apr-devel >= 0:{version} BuildRequires: java-devel >= 0:1.4.2 BuildRequires: jpackage-utils BuildRequires: openssl-devel %description The mission of the Tomcat Native Livrary (TCN) is to provide a free library of C data structures and routines. This library contains additional utility interfaces for Java. %package -n %{lib_name} Group: Development/Java Summary: Tomcat Native development kit %description -n %{lib_name} The mission of the Tomcat Native Livrary (TCN) is to provide a free library of C data structures and routines. This library contains additional utility interfaces for Java. %package -n %{lib_name}-devel Group: Development/Java Summary: Tomcat Native development kit Provides: %{_lib}tcnative-devel = %{epoch}:%{version}-%{release} Requires: %{lib_name} = %{epoch}:%{version}-%{release} Requires: apr-devel %description -n %{lib_name}-devel The mission of the Tomcat Native Livrary (TCN) is to provide a free library of C data structures and routines. This library contains additional utility interfaces for Java. %prep %setup -q -n %{name}-%{version}-src/jni/native %build export JAVA_HOME=%{java_home} %configure2_5x --with-apr=%{_prefix} \ --includedir=%{_includedir}/apr-%{tcnver} %make %install %{__rm} -rf %{buildroot} %makeinstall %clean %{__rm} -rf %{buildroot} %post -n %{lib_name} -p /sbin/ldconfig %postun -n %{lib_name} -p /sbin/ldconfig %files -n %{lib_name} %defattr(-,root,root,-) %doc ../../KEYS ../../LICENSE ../../NOTICE BUILDING %{_libdir}/libtcnative-%{tcnver}.so.* %files -n %{lib_name}-devel %defattr(-,root,root,-) %{_libdir}/libtcnative-%{tcnver}.*a %{_libdir}/libtcnative-%{tcnver}.so %{_libdir}/pkgconfig/tcnative-%{tcnver}.pc %changelog * Fri Oct 20 2006 David Walluck <walluck@mandriva.org> 1.1.6-4mdv2007.0 + Revision: 71513 + Status: not released - bump release * Fri Oct 20 2006 David Walluck <walluck@mandriva.org> 0:1.1.6-3mdv2007.0 + Revision: 71482 - fix apr-devel version * Wed Oct 18 2006 David Walluck <walluck@mandriva.org> 0:1.1.6-2mdv2007.0 + Revision: 70693 - fix java BuildRequires - Import tomcat-native * Tue Oct 17 2006 David Walluck <walluck@mandriva.org> 0:1.1.6-1mdv2007.1 - release