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