Sprout from master 2002-10-21 11:11:08 UTC Jakub Bogusz <qboosh@pld-linux.org> '- fixes from nspr 4.2.1 from mozilla1.2b for nspr 4.2.2'
Cherrypick from unlabeled-1.18.2 2003-06-19 12:43:17 UTC Paweł Gołaszewski <blues@pld-linux.org> '- md5':
nspr.spec -> 1.18.2.1
Summary: Netscape Portable Runtime (NSPR)
Summary(pl): Przeno¶ne biblioteki uruchomieniowe Netscape
Name: nspr
-Version: 4.2.2
-Release: 2
+Version: 4.3
+Release: 1
Epoch: 1
License: GPL
Group: Libraries
Source0: http://ftp.mozilla.org/pub/nspr/releases/v%{version}/src/%{name}-%{version}.tar.gz
-Patch0: %{name}-%{version}-mozilla1.2b.patch
+# Source0-md5: df714fd7179508ddd1d2c31abfaa8450
BuildRequires: autoconf
Obsoletes: nspr-pthreads
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%prep
%setup -q
-%patch -p1
%build
cd mozilla/nsprpub
%{__autoconf}
+# don't use "--disable-strip" - it will cause stripping
%configure \
--with-dist-prefix=$RPM_BUILD_ROOT%{_prefix} \
--with-mozilla \
--enable-optimize="%{rpmcflags}" \
- --disable-debug \
- --enable-strip \
+ --%{?debug:en}%{!?debug:dis}able-debug \
+ %{!?debug:--enable-strip} \
--with-pthreads \
--enable-ipv6