]> git.pld-linux.org Git - packages/nss.git/blob - nss.spec
- fixed build requirements
[packages/nss.git] / nss.spec
1 # $Revision: 1.24 $ $Date: 2002-04-16 15:53:40 $
2 Summary:        NSS - Network Security Services
3 Summary(pl):    NSS - Network Security Services
4 Name:           nss
5 Version:        3.4.rc1
6 Release:        1
7 License:        GPL
8 Group:          Libraries
9 Source0:        ftp://ftp.mozilla.org/pub/security/nss/releases/NSS_3_4_RC1/src/%{name}-%{version}.tar.gz
10 Patch0:         %{name}-Makefile.patch
11 Patch1:         %{name}-dbm.patch.bz2
12 Patch2:         %{name}-system-zlib.patch
13 BuildRequires:  nspr-devel >= 4.1.2-3
14 BuildRequires:  zip >= 2.1
15 BuildConflicts: mozilla < 0.9.6-3
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17 Obsoletes:      libnss3
18
19 %description
20 NSS supports cross-platform development of security-enabled server
21 applications. Applications built with NSS can support PKCS #5, PKCS
22 #7, PKCS #11, PKCS #12, S/MIME, TLS, SSL v2 and v3, X.509 v3
23 certificates, and other security standards.
24
25 %description -l pl
26 NSS wspomaga pisanie wieloplatformowych bezpiecznych serwerów.
27 Aplikacja u¿ywaj±ca NSS jest w stanie obs³u¿yæ PKCS #5, PKCS #7, PKCS
28 #11, PKCS #12, S/MIME, TLS, SSL v2 oraz v3, certyfikaty X.509 v3, i
29 wiele innych bezpiecznych standardów.
30
31 %package devel
32 Summary:        NSS - header files
33 Summary(pl):    NSS - pliki nag³ówkowe
34 Group:          Development/Libraries
35 Requires:       %{name} = %{version}
36 Obsoletes:      libnss3-devel
37
38 %description devel
39 Development part of NSS library.
40
41 %description devel -l pl
42 Czê¶æ biblioteki NSS przeznaczona dla programistów.
43
44 %package tools
45 Summary:        NSS command line tools and utilities
46 Summary(pl):    Narzêdzia NSS
47 Group:          Applications
48 Requires:       %{name} = %{version}
49
50 %description tools
51 The NSS Toolkit command line tool.
52
53 %description tools -l pl
54 Narzêdzia NSS obs³ugiwane z linii poleceñ.
55
56 %package static
57 Summary:        NSS - static library
58 Summary(pl):    NSS - biblioteka statyczna
59 Group:          Development/Libraries
60 Requires:       %{name}-devel = %{version}
61
62 %description static
63 Static NSS Toolkit libraries.
64
65 %description static -l pl
66 Statyczne wersje bibliotek z NSS.
67
68 %prep
69 %setup -q
70 %patch0 -p1
71 %patch1 -p1
72 %patch2 -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/security/* $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/security/*  $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 %clean
118 rm -rf $RPM_BUILD_ROOT
119
120 %post   -p /sbin/ldconfig
121 %postun -p /sbin/ldconfig
122
123 %files
124 %defattr(644,root,root,755)
125 %attr(755,root,root) %{_libdir}/lib*.so
126
127 %files devel
128 %defattr(644,root,root,755)
129 %{_includedir}/nss
130 %{_libdir}/libcrmf.a
131
132 %files tools
133 %defattr(644,root,root,755)
134 %attr(755,root,root) %{_bindir}/*
135
136 %files static
137 %defattr(644,root,root,755)
138 %{_libdir}/lib[^c]*.a
139 %{_libdir}/libc[^r]*.a
140 %{_libdir}/libcr[^m]*.a
This page took 0.073097 seconds and 4 git commands to generate.