]> git.pld-linux.org Git - packages/nspr.git/blobdiff - nspr.spec
- ashes to ashes, dust to dust
[packages/nspr.git] / nspr.spec
index 0426bb1fd800feee9eaa41c24002aebcef04dc61..d9afdbe8f80d2939b48940d6a49683d58d59eef4 100644 (file)
--- a/nspr.spec
+++ b/nspr.spec
@@ -1,12 +1,15 @@
 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
@@ -21,6 +24,7 @@ Summary:      NSPR library header files for development
 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.
@@ -33,6 +37,7 @@ Summary:      Static NSPR library
 Summary(pl):   Statyczna biblioteka NSPR
 Group:         Development/Libraries
 Requires:      %{name}-devel = %{version}
+Obsoletes:     nspr-pthreads-static
 
 %description static
 Static NSPR library.
@@ -42,17 +47,17 @@ Statyczna biblioteka NSPR.
 
 %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
 
This page took 0.111119 seconds and 4 git commands to generate.