]>
Commit | Line | Data |
---|---|---|
c9ca93f2 | 1 | Summary: Native Tomcat Connector based on APR |
2 | Summary(pl.UTF-8): Natywny Connector Tomcata oparty o APR | |
3 | Name: tomcat-native | |
4 | Version: 1.1.16 | |
5 | Release: 0.1 | |
6 | License: Apache | |
7 | Group: Libraries | |
8 | Source0: http://www.apache.org/dist/tomcat/tomcat-connectors/native/%{version}/source/%{name}-%{version}-src.tar.gz | |
9 | URL: http://tomcat.apache.org/native-doc | |
10 | BuildRequires: apr-util-devel | |
11 | BuildRequires: jdk | |
12 | BuildRequires: openssl-devel | |
13 | Requires: apr | |
14 | Requires: openssl | |
15 | Suggests: jre | |
16 | Suggests: tomcat | |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
18 | ||
19 | %description | |
20 | Tomcat can use the Apache Portable Runtime to provide superior | |
21 | scalability, performance, and better integration with native server | |
22 | technologies. The Apache Portable Runtime is a highly portable library | |
23 | that is at the heart of Apache HTTP Server 2.x. APR has many uses, | |
24 | including access to advanced IO functionality (such as sendfile, epoll | |
25 | and OpenSSL), OS level functionality (random number generation, system | |
26 | status, etc), and native process handling (shared memory, NT pipes and | |
27 | Unix sockets). | |
28 | ||
29 | These features allows making Tomcat a general purpose webserver, will | |
30 | enable much better integration with other native web technologies, and | |
31 | overall make Java much more viable as a full fledged webserver | |
32 | platform rather than simply a backend focused technology. | |
33 | ||
34 | %description -l pl.UTF-8 | |
35 | ||
36 | Tomcat może wykorzytać Apache Portable Runtime aby zapewnić | |
37 | najwyższą, saklowalność, wydajność i lepszą integrację z | |
38 | natywnymi technologiami serwerowymi. | |
39 | ||
40 | Apache portable Runtime jest wysoce przenośną biblioteką, która | |
41 | jest sercem serwera Apache HTTPD 2.x. APR ma wiele zestosowań, m. in. | |
42 | dostępd do zaawansowanych funkcjonalnośći IO (takich jak sendfile, | |
43 | epoll i OpenSSL), funkcjonalności posiomu systemu operacyjnego | |
44 | (generacja liczb losowych, stan systemu, itp.) i natywną obsługę | |
45 | procesów (współdzielona pamięć, potoki NT i gniazda uniksowe). | |
46 | ||
47 | Te cechy pozwalają na wykorzystanie Tomcata jako sewera www do | |
48 | zastosowań ogólnych, pozwalają na o wiele lepszą integrację z | |
49 | innymi natywnymi technologiami www i w ogólności pozwalają na | |
50 | traktowanie Javy jako zaawansowanej i kompletnej platformy www s nie | |
51 | tylko technologii backendowej. | |
52 | ||
53 | %package devel | |
54 | Summary: Header files for tcnative library | |
55 | Summary(pl.UTF-8): Pliki nagłówwkowe biblioteki tcnative | |
56 | Group: Development/Libraries | |
57 | Requires: %{name} = %{version}-%{release} | |
58 | ||
59 | %description devel | |
60 | Header files for tcnative library | |
61 | ||
62 | %description devel -l pl.UTF-8 | |
63 | Pliki nag¿ówkowe biblioteki tcnative | |
64 | ||
65 | %prep | |
66 | %setup -q -n %{name}-%{version}-src/jni/native | |
67 | ||
68 | %build | |
69 | %configure \ | |
70 | --with-apr=%{_bindir} \ | |
71 | --with-java-home=%{java_home}\ | |
72 | ||
73 | %{__make} | |
74 | ||
75 | %install | |
76 | rm -rf $RPM_BUILD_ROOT | |
77 | %{__make} install DESTDIR=$RPM_BUILD_ROOT | |
78 | ||
79 | # Unpackaged files | |
80 | rm -f $RPM_BUILD_ROOT%{_libdir}/tcnative.exp | |
81 | ||
82 | %clean | |
83 | rm -rf $RPM_BUILD_ROOT | |
84 | ||
85 | %files | |
86 | %defattr(644,root,root,755) | |
87 | #%doc CHANGES LICENSE NOTICE | |
88 | %attr(755,root,root) %{_libdir}/libtcnative-1.so* | |
89 | ||
90 | %files devel | |
91 | %defattr(644,root,root,755) | |
92 | %{_libdir}/libtcnative-1.*a | |
93 | %{_pkgconfigdir}/tcnative-1.pc |