Summary: Netscape Portable Runtime (NSPR)
Summary(pl): Przeno¶ne biblioteki uruchomieniowe Netscape
Name: nspr
-Version: 4.1.2
-Release: 3
+Version: 4.3
+Release: 1
+Epoch: 1
License: GPL
Group: Libraries
-Source0: ftp://ftp.mozilla.org/pub/nspr/releases/v%{version}/src/%{name}-%{version}.tar.gz
-Patch0: %{name}-moz0.9.9.patch.gz
+Source0: http://ftp.mozilla.org/pub/nspr/releases/v%{version}/src/%{name}-%{version}.tar.gz
+# Source0-md5: df714fd7179508ddd1d2c31abfaa8450
+BuildRequires: autoconf
+Obsoletes: nspr-pthreads
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
Summary(pl): Pliki nag³ówkowe bibliotek NSPR
Group: Development/Libraries
Requires: %{name} = %{version}
+Obsoletes: nspr-pthreads-devel
%description devel
Header files for the NSPR library from Netscape.
Summary(pl): Statyczna biblioteka NSPR
Group: Development/Libraries
Requires: %{name}-devel = %{version}
+Obsoletes: nspr-pthreads-static
%description static
Static NSPR library.
%prep
%setup -q
-%patch0 -p1
%build
cd mozilla/nsprpub
-autoconf
+%{__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