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