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