Sophie

Sophie

distrib > Mandriva > 2009.0 > i586 > by-pkgid > 2edf16fbb46cea304dffc65010d1d4bd > files > 3

tomcat-native-1.1.14-0.0.1mdv2009.0.src.rpm

%define tcnver 1
%define lib_name %mklibname tcnative %{tcnver}

Summary:        Tomcat Native Java library
Name:           tomcat-native
Version:        1.1.14
Release:        %mkrel 0.0.1
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.gz
Source1:        http://www.apache.org/dist/tomcat/tomcat-connectors/native/tomcat-native-%{version}-src.tar.gz.asc
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-buildroot
BuildRequires:  apr-devel >= 0:{version}
BuildRequires:  java-devel >= 0:1.4.2
BuildRequires:  java-rpmbuild
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}

%if %mdkversion < 200900
%post -n %{lib_name} -p /sbin/ldconfig
%endif

%if %mdkversion < 200900
%postun -n %{lib_name} -p /sbin/ldconfig
%endif

%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
* Tue Jul 08 2008 Alexander Kurtakov <akurtakov@mandriva.org> 0:1.1.14-0.0.1mdv2009.0
+ Revision: 232689
- new version 1.1.14

* Sun Jun 22 2008 Alexander Kurtakov <akurtakov@mandriva.org> 0:1.1.13-0.0.1mdv2009.0
+ Revision: 227898
- new version 1.1.13

  + Pixel <pixel@mandriva.com>
    - do not call ldconfig in %%post/%%postun, it is now handled by filetriggers

* Wed Jan 16 2008 David Walluck <walluck@mandriva.org> 0:1.1.12-0.0.1mdv2008.1
+ Revision: 153859
- 1.1.12

  + Olivier Blin <oblin@mandriva.com>
    - restore BuildRoot

  + Thierry Vignaud <tvignaud@mandriva.com>
    - kill re-definition of %%buildroot on Pixel's request

* Sun Dec 16 2007 Anssi Hannula <anssi@mandriva.org> 0:1.1.10-0.0.2mdv2008.1
+ Revision: 121035
- buildrequire java-rpmbuild, i.e. build with icedtea on x86(_64)

* Wed Sep 05 2007 David Walluck <walluck@mandriva.org> 0:1.1.10-0.0.1mdv2008.0
+ Revision: 80326
- 1.1.10


* Sat Oct 21 2006 David Walluck <walluck@mandriva.org> 1.1.6-4mdv2007.0
+ Revision: 71513
+ Status: not released
- bump release

* Sat Oct 21 2006 David Walluck <walluck@mandriva.org> 0:1.1.6-3mdv2007.0
+ Revision: 71482
- fix apr-devel version

* Thu Oct 19 2006 David Walluck <walluck@mandriva.org> 0:1.1.6-2mdv2007.0
+ Revision: 70693
- fix java BuildRequires
- Import tomcat-native

* Wed Oct 18 2006 David Walluck <walluck@mandriva.org> 0:1.1.6-1mdv2007.1
- release