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