]> git.pld-linux.org Git - packages/nss.git/blob - nss.spec
- updated to 3.4.2 (needed by mozilla 1.1b)
[packages/nss.git] / nss.spec
1 # $Revision: 1.28 $ $Date: 2002-07-26 12:02:30 $
2 Summary:        NSS - Network Security Services
3 Summary(pl):    NSS - Network Security Services
4 Name:           nss
5 Version:        3.4.2
6 Release:        1
7 Epoch:          1
8 License:        GPL
9 Group:          Libraries
10 Source0:        ftp://ftp.mozilla.org/pub/security/nss/releases/NSS_3_4_2_RTM/src/%{name}-%{version}.tar.gz
11 Patch0:         %{name}-Makefile.patch
12 Patch1:         %{name}-system-zlib.patch
13 BuildRequires:  nspr-devel >= 4.1.2-3
14 BuildRequires:  zip >= 2.1
15 BuildConflicts: mozilla < 0.9.6-3
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17 Obsoletes:      libnss3
18
19 %description
20 NSS supports cross-platform development of security-enabled server
21 applications. Applications built with NSS can support PKCS #5, PKCS
22 #7, PKCS #11, PKCS #12, S/MIME, TLS, SSL v2 and v3, X.509 v3
23 certificates, and other security standards.
24
25 %description -l pl
26 NSS wspomaga pisanie wieloplatformowych bezpiecznych serwerów.
27 Aplikacja u¿ywaj±ca NSS jest w stanie obs³u¿yæ PKCS #5, PKCS #7, PKCS
28 #11, PKCS #12, S/MIME, TLS, SSL v2 oraz v3, certyfikaty X.509 v3, i
29 wiele innych bezpiecznych standardów.
30
31 %package tools
32 Summary:        NSS command line tools and utilities
33 Summary(pl):    Narzêdzia NSS
34 Group:          Applications
35 Requires:       %{name} = %{version}
36
37 %description tools
38 The NSS Toolkit command line tool.
39
40 %description tools -l pl
41 Narzêdzia NSS obs³ugiwane z linii poleceñ.
42
43 %package devel
44 Summary:        NSS - header files
45 Summary(pl):    NSS - pliki nag³ówkowe
46 Group:          Development/Libraries
47 Requires:       %{name} = %{version}
48 Obsoletes:      libnss3-devel
49
50 %description devel
51 Development part of NSS library.
52
53 %description devel -l pl
54 Czê¶æ biblioteki NSS przeznaczona dla programistów.
55
56 %package static
57 Summary:        NSS - static library
58 Summary(pl):    NSS - biblioteka statyczna
59 Group:          Development/Libraries
60 Requires:       %{name}-devel = %{version}
61
62 %description static
63 Static NSS Toolkit libraries.
64
65 %description static -l pl
66 Statyczne wersje bibliotek z NSS.
67
68 %prep
69 %setup -q
70 %patch0 -p1
71 %patch1 -p1
72
73 %build
74 cd mozilla/security/nss
75
76 %{__make} build_coreconf \
77         NSDISTMODE=copy \
78         NS_USE_GCC=1 \
79         MOZILLA_CLIENT=1 \
80         NO_MDUPDATE=1 \
81         USE_PTHREADS=1 \
82         BUILD_OPT=1 \
83         OPTIMIZER="%{rpmcflags}"
84
85 %{__make} build_dbm \
86         NSDISTMODE=copy \
87         NS_USE_GCC=1 \
88         MOZILLA_CLIENT=1 \
89         NO_MDUPDATE=1 \
90         USE_PTHREADS=1 \
91         BUILD_OPT=1 \
92         OPTIMIZER="%{rpmcflags}" \
93         PLATFORM="pld"
94
95 %{__make} all \
96         NSDISTMODE=copy \
97         NS_USE_GCC=1 \
98         MOZILLA_CLIENT=1 \
99         NO_MDUPDATE=1 \
100         USE_PTHREADS=1 \
101         BUILD_OPT=1 \
102         OPTIMIZER="%{rpmcflags}" \
103         PLATFORM="pld"
104
105 %install
106 rm -rf $RPM_BUILD_ROOT
107 install -d $RPM_BUILD_ROOT{%{_bindir},%{_includedir}/nss,%{_libdir}}
108
109 install mozilla/dist/private/security/* $RPM_BUILD_ROOT%{_includedir}/nss
110 install mozilla/dist/public/dbm/*       $RPM_BUILD_ROOT%{_includedir}/nss
111 install mozilla/dist/public/seccmd/*    $RPM_BUILD_ROOT%{_includedir}/nss
112 install mozilla/dist/public/security/*  $RPM_BUILD_ROOT%{_includedir}/nss
113 install mozilla/dist/pld/bin/*          $RPM_BUILD_ROOT%{_bindir}
114 install mozilla/dist/pld/lib/*          $RPM_BUILD_ROOT%{_libdir}
115
116 # resolve conflict with squid
117 mv -f $RPM_BUILD_ROOT%{_bindir}/{,nss-}client
118
119 %clean
120 rm -rf $RPM_BUILD_ROOT
121
122 %post   -p /sbin/ldconfig
123 %postun -p /sbin/ldconfig
124
125 %files
126 %defattr(644,root,root,755)
127 %attr(755,root,root) %{_libdir}/lib*.so
128
129 %files devel
130 %defattr(644,root,root,755)
131 %{_includedir}/nss
132 %{_libdir}/libcrmf.a
133
134 %files tools
135 %defattr(644,root,root,755)
136 %attr(755,root,root) %{_bindir}/*
137
138 %files static
139 %defattr(644,root,root,755)
140 %{_libdir}/lib[^c]*.a
141 %{_libdir}/libc[^r]*.a
142 %{_libdir}/libcr[^m]*.a
This page took 0.091097 seconds and 4 git commands to generate.