]>
Commit | Line | Data |
---|---|---|
aa75f86d ER |
1 | # TODO |
2 | # - check if the signed nss lib data (*.chk) is still valid after rpm stripping | |
3 | # | |
8d1548f6 | 4 | %define foover %(echo %{version} | tr . _) |
e043961c | 5 | Summary: NSS - Network Security Services |
238a25a0 | 6 | Summary(pl.UTF-8): NSS - Network Security Services |
e043961c | 7 | Name: nss |
07b248d4 JB |
8 | Version: 3.11.4 |
9 | Release: 1 | |
c61925df | 10 | Epoch: 1 |
e043961c | 11 | License: GPL |
a20334db | 12 | Group: Libraries |
de78c6c4 JB |
13 | # :pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot mozilla/dbm -r DBM_1_61_RTM |
14 | # :pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot mozilla/security/dbm -r DBM_1_61_RTM | |
15 | # :pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot mozilla/security/coreconf -r NSS_3_9_4_RTM | |
16 | # :pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot mozilla/security/nss -r NSS_3_9_4_RTM | |
1a10ee06 | 17 | #Source0: %{name}-%{version}.tar.bz2 |
0d478c4c | 18 | Source0: ftp://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_%{foover}_RTM/src/%{name}-%{version}.tar.gz |
07b248d4 | 19 | # Source0-md5: 74af8ebdf94307f47ff8931adbef9c39 |
9e8d6618 | 20 | Source1: %{name}-mozilla-nss.pc |
8d1548f6 | 21 | Source2: %{name}-config.in |
e043961c | 22 | Patch0: %{name}-Makefile.patch |
0c7a986a | 23 | URL: http://www.mozilla.org/projects/security/pki/nss/ |
07b248d4 | 24 | BuildRequires: nspr-devel >= 1:4.6.4 |
e814da19 | 25 | BuildRequires: zlib-devel |
7d80b913 | 26 | BuildConflicts: mozilla < 0.9.6-3 |
07b248d4 | 27 | Requires: nspr >= 1:4.6.4 |
64c1d08d | 28 | Obsoletes: libnss3 |
8a057a22 | 29 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
e043961c | 30 | |
f68ec3a2 PS |
31 | %define specflags -fno-strict-aliasing |
32 | ||
e3f4677f | 33 | %description |
6b813326 | 34 | NSS supports cross-platform development of security-enabled server |
d8ef6ecb | 35 | applications. Applications built with NSS can support PKCS #5, |
bf42a3ba | 36 | PKCS #7, PKCS #11, PKCS #12, S/MIME, TLS, SSL v2 and v3, X.509 v3 |
6b813326 | 37 | certificates, and other security standards. |
e043961c | 38 | |
238a25a0 JR |
39 | %description -l pl.UTF-8 |
40 | NSS wspomaga pisanie wieloplatformowych bezpiecznych serwerów. | |
41 | Aplikacja używająca NSS jest w stanie obsłużyć PKCS #5, PKCS #7, | |
d8ef6ecb | 42 | PKCS #11, PKCS #12, S/MIME, TLS, SSL v2 oraz v3, certyfikaty X.509 v3, |
238a25a0 | 43 | i wiele innych bezpiecznych standardów. |
e043961c | 44 | |
c3d988d0 JB |
45 | %package tools |
46 | Summary: NSS command line tools and utilities | |
238a25a0 | 47 | Summary(pl.UTF-8): Narzędzia NSS |
c3d988d0 | 48 | Group: Applications |
93f17fb4 | 49 | Requires: %{name} = %{epoch}:%{version}-%{release} |
c3d988d0 JB |
50 | |
51 | %description tools | |
52 | The NSS Toolkit command line tool. | |
53 | ||
238a25a0 JR |
54 | %description tools -l pl.UTF-8 |
55 | Narzędzia NSS obsługiwane z linii poleceń. | |
c3d988d0 | 56 | |
e043961c | 57 | %package devel |
58 | Summary: NSS - header files | |
238a25a0 | 59 | Summary(pl.UTF-8): NSS - pliki nagłówkowe |
e043961c | 60 | Group: Development/Libraries |
93f17fb4 | 61 | Requires: %{name} = %{epoch}:%{version}-%{release} |
07b248d4 | 62 | Requires: nspr-devel >= 1:4.6.4 |
64c1d08d | 63 | Obsoletes: libnss3-devel |
e043961c | 64 | |
65 | %description devel | |
66 | Development part of NSS library. | |
67 | ||
238a25a0 JR |
68 | %description devel -l pl.UTF-8 |
69 | Część biblioteki NSS przeznaczona dla programistów. | |
e043961c | 70 | |
e043961c | 71 | %package static |
72 | Summary: NSS - static library | |
238a25a0 | 73 | Summary(pl.UTF-8): NSS - biblioteka statyczna |
e043961c | 74 | Group: Development/Libraries |
93f17fb4 | 75 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} |
e043961c | 76 | |
77 | %description static | |
78 | Static NSS Toolkit libraries. | |
79 | ||
238a25a0 | 80 | %description static -l pl.UTF-8 |
e043961c | 81 | Statyczne wersje bibliotek z NSS. |
82 | ||
83 | %prep | |
fa88f217 | 84 | %setup -q |
e043961c | 85 | %patch0 -p1 |
86 | ||
87 | %build | |
88 | cd mozilla/security/nss | |
89 | ||
9fac925c | 90 | %ifarch %{x8664} ppc64 |
f68ec3a2 PS |
91 | export USE_64=1 |
92 | %endif | |
93 | ||
8d1548f6 | 94 | %{__make} -j1 build_coreconf \ |
e043961c | 95 | NSDISTMODE=copy \ |
96 | NS_USE_GCC=1 \ | |
97 | MOZILLA_CLIENT=1 \ | |
98 | NO_MDUPDATE=1 \ | |
99 | USE_PTHREADS=1 \ | |
100 | BUILD_OPT=1 \ | |
07b248d4 | 101 | CC="%{__cc}" \ |
e043961c | 102 | OPTIMIZER="%{rpmcflags}" |
103 | ||
8d1548f6 | 104 | %{__make} -j1 build_dbm \ |
e043961c | 105 | NSDISTMODE=copy \ |
106 | NS_USE_GCC=1 \ | |
107 | MOZILLA_CLIENT=1 \ | |
108 | NO_MDUPDATE=1 \ | |
109 | USE_PTHREADS=1 \ | |
110 | BUILD_OPT=1 \ | |
07b248d4 | 111 | CC="%{__cc}" \ |
e043961c | 112 | OPTIMIZER="%{rpmcflags}" \ |
6b813326 | 113 | PLATFORM="pld" |
e3f4677f | 114 | |
8d1548f6 | 115 | %{__make} -j1 all \ |
e043961c | 116 | NSDISTMODE=copy \ |
117 | NS_USE_GCC=1 \ | |
118 | MOZILLA_CLIENT=1 \ | |
119 | NO_MDUPDATE=1 \ | |
120 | USE_PTHREADS=1 \ | |
0d478c4c JB |
121 | USE_SYSTEM_ZLIB=1 \ |
122 | ZLIB_LIBS="-lz" \ | |
07b248d4 JB |
123 | BUILD_OPT=1 \ |
124 | CC="%{__cc}" \ | |
e043961c | 125 | OPTIMIZER="%{rpmcflags}" \ |
126 | PLATFORM="pld" | |
127 | ||
128 | %install | |
129 | rm -rf $RPM_BUILD_ROOT | |
9e8d6618 | 130 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_includedir}/nss,%{_libdir},%{_pkgconfigdir}} |
eec1fab1 | 131 | |
bf42a3ba | 132 | install mozilla/dist/private/nss/* $RPM_BUILD_ROOT%{_includedir}/nss |
e043961c | 133 | install mozilla/dist/public/dbm/* $RPM_BUILD_ROOT%{_includedir}/nss |
bf42a3ba | 134 | install mozilla/dist/public/nss/* $RPM_BUILD_ROOT%{_includedir}/nss |
e043961c | 135 | install mozilla/dist/pld/bin/* $RPM_BUILD_ROOT%{_bindir} |
136 | install mozilla/dist/pld/lib/* $RPM_BUILD_ROOT%{_libdir} | |
137 | ||
8d1548f6 ER |
138 | %{__sed} -e ' |
139 | s#libdir=.*#libdir=%{_libdir}#g | |
140 | s#includedir=.*#includedir=%{_includedir}#g | |
141 | s#VERSION#%{version}#g | |
142 | ' %{SOURCE1} > $RPM_BUILD_ROOT%{_pkgconfigdir}/mozilla-nss.pc | |
143 | ln -s mozilla-nss.pc $RPM_BUILD_ROOT%{_pkgconfigdir}/nss.pc | |
144 | ||
145 | NSS_VMAJOR=$(awk '/#define.*NSS_VMAJOR/ {print $3}' mozilla/security/nss/lib/nss/nss.h) | |
146 | NSS_VMINOR=$(awk '/#define.*NSS_VMINOR/ {print $3}' mozilla/security/nss/lib/nss/nss.h) | |
147 | NSS_VPATCH=$(awk '/#define.*NSS_VPATCH/ {print $3}' mozilla/security/nss/lib/nss/nss.h) | |
148 | %{__sed} -e " | |
149 | s,@libdir@,%{_libdir},g | |
150 | s,@prefix@,%{_prefix},g | |
151 | s,@exec_prefix@,%{_prefix},g | |
507f226d | 152 | s,@includedir@,%{_includedir}/nss,g |
69aeda39 ER |
153 | s,@MOD_MAJOR_VERSION@,$NSS_VMAJOR,g |
154 | s,@MOD_MINOR_VERSION@,$NSS_VMINOR,g | |
155 | s,@MOD_PATCH_VERSION@,$NSS_VPATCH,g | |
8d1548f6 ER |
156 | " %{SOURCE2} > $RPM_BUILD_ROOT%{_bindir}/nss-config |
157 | chmod +x $RPM_BUILD_ROOT%{_bindir}/nss-config | |
9e8d6618 | 158 | |
c3d988d0 JB |
159 | # resolve conflict with squid |
160 | mv -f $RPM_BUILD_ROOT%{_bindir}/{,nss-}client | |
161 | ||
eccd0672 | 162 | %clean |
163 | rm -rf $RPM_BUILD_ROOT | |
164 | ||
985ee8fc JB |
165 | %post -p /sbin/ldconfig |
166 | %postun -p /sbin/ldconfig | |
e043961c | 167 | |
168 | %files | |
169 | %defattr(644,root,root,755) | |
170 | %attr(755,root,root) %{_libdir}/lib*.so | |
b20d39eb | 171 | %{_libdir}/lib*.chk |
e043961c | 172 | |
173 | %files devel | |
174 | %defattr(644,root,root,755) | |
175 | %{_includedir}/nss | |
c89efb4d | 176 | %{_libdir}/libcrmf.a |
9e8d6618 | 177 | %{_pkgconfigdir}/*.pc |
507f226d | 178 | %attr(755,root,root) %{_bindir}/nss-config |
e043961c | 179 | |
180 | %files tools | |
181 | %defattr(644,root,root,755) | |
182 | %attr(755,root,root) %{_bindir}/* | |
8d1548f6 | 183 | %exclude %{_bindir}/nss-config |
e043961c | 184 | |
185 | %files static | |
186 | %defattr(644,root,root,755) | |
b20d39eb JB |
187 | %{_libdir}/lib*.a |
188 | %exclude %{_libdir}/libcrmf.a |