-
-%define _snap 20030517
-
Summary: Netscape Portable Runtime (NSPR)
Summary(pl): Przeno¶ne biblioteki uruchomieniowe Netscape
Name: nspr
-Version: 4.3
-Release: 2.%{_snap}
+# it's actually 4.5, but leave this .0 because of previous snaps
+Version: 4.5.0
+Release: 1
Epoch: 1
-License: GPL
+License: MPL or GPL
Group: Libraries
-Source0: %{name}-%{_snap}.tar.gz
-# Source0-md5: 3392849244f60ce772ec91c0a5d92546
-BuildRequires: autoconf
+# :pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot mozilla/nsprpub -r NSPR_4_5_RTM
+Source0: %{name}-4.5.tar.bz2
+# Source0-md5: f4bfd5d90ff9ddfcb58bf2b9a1704f91
+#Source0: http://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v%{version}/src/%{name}-%{version}.tar.gz
+Patch0: %{name}-am18.patch
+Patch1: %{name}-acfix.patch
+Patch2: %{name}-libdir.patch
+BuildRequires: autoconf >= 2.12
+BuildRequires: automake
Obsoletes: nspr-pthreads
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
Summary: NSPR library header files for development
Summary(pl): Pliki nag³ówkowe bibliotek NSPR
Group: Development/Libraries
-Requires: %{name} = %{epoch}:%{version}
+Requires: %{name} = %{epoch}:%{version}-%{release}
Obsoletes: nspr-pthreads-devel
%description devel
Summary: Static NSPR library
Summary(pl): Statyczna biblioteka NSPR
Group: Development/Libraries
-Requires: %{name}-devel = %{epoch}:%{version}
+Requires: %{name}-devel = %{epoch}:%{version}-%{release}
Obsoletes: nspr-pthreads-static
%description static
Statyczna biblioteka NSPR.
%prep
-%setup -q -c mozilla
+%setup -q -n %{name}-4.5
+%patch0 -p1
+%patch1 -p1
+%patch2 -p1
%build
cd mozilla/nsprpub
+cp -f /usr/share/automake/config.sub build/autoconf
%{__autoconf}
# don't use "--disable-strip" - it will cause stripping
%configure \
--with-dist-prefix=$RPM_BUILD_ROOT%{_prefix} \
+ --with-dist-libdir=$RPM_BUILD_ROOT%{_libdir} \
--with-mozilla \
--enable-optimize="%{rpmcflags}" \
--%{?debug:en}%{!?debug:dis}able-debug \