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