]> git.pld-linux.org Git - packages/tomcat-native.git/blobdiff - tomcat-native.spec
- up to 1.2.10
[packages/tomcat-native.git] / tomcat-native.spec
index 7b42fec4fa9fd4d8a6329ab7e0787aaf1f1404f8..2b69c7bda0f0fd6654ed9646086e713b3c94fc7a 100644 (file)
@@ -1,16 +1,14 @@
-
 %include       /usr/lib/rpm/macros.java
-
 Summary:       Native Tomcat Connector based on APR
 Summary(pl.UTF-8):     Natywny Connector Tomcata oparty o APR
 Name:          tomcat-native
-Version:       1.1.28
+Version:       1.2.10
 Release:       1
 License:       Apache v2
 Group:         Libraries
 Source0:       http://www.apache.org/dist/tomcat/tomcat-connectors/native/%{version}/source/%{name}-%{version}-src.tar.gz
-# Source0-md5: ae85f03bed95795f93456504e5b268c9
-URL:           http://tomcat.apache.org/native-doc
+# Source0-md5: 7529a2240f1405f206d2c47dce2f5e6d
+URL:           http://tomcat.apache.org/native-doc/
 BuildRequires: ant
 BuildRequires: apr-devel
 BuildRequires: autoconf
@@ -23,6 +21,7 @@ BuildRequires:        rpm >= 4.4.9-56
 BuildRequires: rpm-javaprov
 BuildRequires: rpmbuild(macros) >= 1.300
 BuildConflicts:        java-gcj-compat
+Requires:      nss
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -42,7 +41,7 @@ platform rather than simply a backend focused technology.
 
 %description -l pl.UTF-8
 Tomcat może wykorzytać Apache Portable Runtime aby zapewnić najwyższą,
-saklowalność, wydajność i lepszą integrację z natywnymi technologiami
+skalowalność, wydajność i lepszą integrację z natywnymi technologiami
 serwerowymi.
 
 Apache portable Runtime jest wysoce przenośną biblioteką, która jest
@@ -87,8 +86,10 @@ Statyczna biblioteka tcnative.
 
 %build
 # build java part
-cd jni
-%ant clean jar
+%ant clean jar \
+       -Dcompile.source=1.7 \
+       -Dcompile.target=1.7 \
+       %{nil}
 
 # build native part
 cd native
@@ -100,11 +101,9 @@ cd native
 
 %install
 rm -rf $RPM_BUILD_ROOT
-
-cd jni
-install -d $RPM_BUILD_ROOT/%{_javadir}
-install dist/tomcat-native-%{version}-dev.jar $RPM_BUILD_ROOT/%{_javadir}/tomcat-native-%{version}.jar
-ln -s tomcat-native-%{version}.jar $RPM_BUILD_ROOT/%{_javadir}/tomcat-native.jar
+install -d $RPM_BUILD_ROOT%{_javadir}
+cp -p dist/tomcat-native-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/tomcat-native-%{version}.jar
+ln -s tomcat-native-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/tomcat-native.jar
 
 cd native
 %{__make} install \
@@ -113,7 +112,7 @@ cd native
 
 # Why Makefile doesn't do that?
 install -d $RPM_BUILD_ROOT/%{_includedir}
-install include/*.h $RPM_BUILD_ROOT/%{_includedir}
+cp -p include/*.h $RPM_BUILD_ROOT/%{_includedir}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
This page took 0.02996 seconds and 4 git commands to generate.