]> git.pld-linux.org Git - packages/apache-mod_nss.git/blob - apache-mod_nss.spec
- converted to UTF-8
[packages/apache-mod_nss.git] / apache-mod_nss.spec
1 %define         apxs            /usr/sbin/apxs
2 Summary:        mod_nss - strong cryptography support for Apache using SSL/TLS library NSS
3 Summary(pl.UTF-8):   mod_nss - silna kryptografia dla Apache'a przy użyciu biblioteki SSL/TLS NSS
4 Name:           apache-mod_nss
5 Version:        1.0.6
6 Release:        0.1
7 License:        Apache 2.0
8 Group:          Networking/Daemons
9 Source0:        http://directory.fedora.redhat.com/sources/mod_nss-%{version}.tar.gz
10 # Source0-md5:  5e529856b7c05e94c62146ef80eb5e37
11 URL:            http://directory.fedora.redhat.com/wiki/Mod_nss
12 BuildRequires:  %{apxs}
13 BuildRequires:  apache-devel >= 2.0
14 BuildRequires:  apr-devel >= 1:1.0
15 BuildRequires:  apr-util-devel >= 1:1.0
16 BuildRequires:  nspr-devel >= 1:4.6.2
17 BuildRequires:  nss-devel >= 1:3.11.3
18 Requires:       apache(modules-api) = %{apache_modules_api}
19 Requires:       nspr >= 1:4.6.2
20 Requires:       nss >= 1:3.11.3
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %define         _pkglibdir      %(%{apxs} -q LIBEXECDIR 2>/dev/null)
24 %define         _sysconfdir     %(%{apxs} -q SYSCONFDIR 2>/dev/null)
25
26 %description
27 An Apache 2.0 module for implementing crypto using the Mozilla NSS
28 crypto libraries. This supports SSL v3/TLS v1 including support for
29 client certificate authentication. NSS provides web applications with
30 a FIPS 140 certified crypto provider and support for a full range of
31 PKCS#11 devices.
32
33 mod_nss is based directly on the mod_ssl package from Apache 2.0.54.
34 It is a conversion from using OpenSSL calls to using NSS calls
35 instead.
36
37 %description -l pl.UTF-8
38 Moduł Apache'a 2.0 implementujący kryptografię przy użyciu bibliotek
39 kryptograficznych Mozilla NSS. Obsługuje SSL v3/TLS v1 wraz z
40 uwierzytelnianiem z użyciem certyfikatu klienta. NSS zapewnia
41 aplikacjom WWW dostarczanie kryptografii z certyfikacją FIPS 140 i
42 obsługę pełnego zakresu urządzeń PKCS#11.
43
44 mod_nss jest oparty bezpośrednio na pakiecie mod_ssl z Apache'a
45 2.0.54, jedynie został zmodyfikowany tak, aby używał wywołań NSS
46 zamiast OpenSSL.
47
48 %prep
49 %setup -q -n mod_nss-%{version}
50
51 %build
52 # apr-util is missing in configure check
53 CPPFLAGS="`apu-1-config --includes`"
54 %configure \
55         --with-apxs=%{apxs} \
56         --with-apr-config \
57         --with-nspr-inc=/usr/include/nspr \
58         --with-nspr-lib=%{_libdir} \
59         --with-nss-inc=/usr/include/nss \
60         --with-nss-lib=%{_libdir}
61
62 %{__make}
63
64 %install
65 rm -rf $RPM_BUILD_ROOT
66 install -d $RPM_BUILD_ROOT{%{_sbindir},%{_pkglibdir}}
67
68 install .libs/libmodnss.so $RPM_BUILD_ROOT%{_pkglibdir}
69 install nss_pcache $RPM_BUILD_ROOT%{_sbindir}
70
71 # TODO: nss.conf -> %{_sysconfdir}/httpd.conf/XX_mod_nss.conf
72 # (NOTE: at least default config conflicts with mod_ssl)
73
74 %clean
75 rm -rf $RPM_BUILD_ROOT
76
77 %files
78 %defattr(644,root,root,755)
79 %doc NOTICE README TODO docs/mod_nss.html nss.conf
80 %attr(755,root,root) %{_pkglibdir}/libmodnss.so
81 %attr(755,root,root) %{_sbindir}/nss_pcache
This page took 0.047619 seconds and 3 git commands to generate.