+
+%define _snap 20030517
+
Summary: Netscape Portable Runtime (NSPR)
Summary(pl): Przeno¶ne biblioteki uruchomieniowe Netscape
Name: nspr
-Version: 4.1.2
-Release: 2
+Version: 4.3
+Release: 2.%{_snap}
+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.6.patch.gz
+#Source0: http://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v%{version}/src/%{name}-%{version}.tar.gz
+Source0: %{name}-%{_snap}.tar.gz
+# Source0-md5: 3392849244f60ce772ec91c0a5d92546
+BuildRequires: autoconf
+Obsoletes: nspr-pthreads
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
Summary: NSPR library header files for development
Summary(pl): Pliki nag³ówkowe bibliotek NSPR
Group: Development/Libraries
-Requires: %{name} = %{version}
+Requires: %{name} = %{epoch}:%{version}
+Obsoletes: nspr-pthreads-devel
%description devel
Header files for the NSPR library from Netscape.
Summary: Static NSPR library
Summary(pl): Statyczna biblioteka NSPR
Group: Development/Libraries
-Requires: %{name}-devel = %{version}
+Requires: %{name}-devel = %{epoch}:%{version}
+Obsoletes: nspr-pthreads-static
%description static
Static NSPR library.
Statyczna biblioteka NSPR.
%prep
-%setup -q
-%patch0 -p1
+%setup -q -c mozilla
%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
-%{__make}
+%{__make}
%install
rm -rf $RPM_BUILD_ROOT