]> git.pld-linux.org Git - packages/nspr.git/blobdiff - nspr.spec
- updated Source0 URL to one that gives reliable results (ftp does not)
[packages/nspr.git] / nspr.spec
index bcb65d0efd93e563a92a5ee3f775ac525d657538..df0556554783926f952b6129862fc3fd10add508 100644 (file)
--- a/nspr.spec
+++ b/nspr.spec
@@ -1,12 +1,19 @@
+
+%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
@@ -20,7 +27,8 @@ Biblioteki z wieloplatformow
 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.
@@ -32,7 +40,8 @@ Pliki nag
 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.
@@ -41,22 +50,22 @@ 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
This page took 0.045525 seconds and 4 git commands to generate.