]> git.pld-linux.org Git - packages/nspr.git/blobdiff - nspr.spec
- merged 4.6-beta snap from DEVEL
[packages/nspr.git] / nspr.spec
index 326967e924dbf88e7a26368b10da411681d8df9d..2802108eae17461b540f83667601fdf35730fa35 100644 (file)
--- a/nspr.spec
+++ b/nspr.spec
@@ -1,13 +1,23 @@
 Summary:       Netscape Portable Runtime (NSPR)
 Summary(pl):   Przeno¶ne biblioteki uruchomieniowe Netscape
 Name:          nspr
-Version:       4.2.2
-Release:       1
-License:       GPL
+Version:       4.6
+%define        snap    20041030
+Release:       0.%{snap}.1
+Epoch:         1
+License:       MPL v1.1 or GPL v2+ or LGPL v2.1+
 Group:         Libraries
-Source0:       http://ftp.mozilla.org/pub/nspr/releases/v%{version}/src/%{name}-%{version}.tar.gz
-Patch0:                %{name}-alpha.patch
-BuildRequires: autoconf
+# :pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot mozilla/nsprpub -A
+# (still waiting for -r NSPR_4_6_RTM)
+Source0:       %{name}-%{version}-%{snap}.tar.bz2
+# Source0-md5: b8b224d015b28ed47cbad573e0a3d363
+# releases
+#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)
 
@@ -22,7 +32,7 @@ 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}-%{release}
 Obsoletes:     nspr-pthreads-devel
 
 %description devel
@@ -35,7 +45,7 @@ Pliki nag
 Summary:       Static NSPR library
 Summary(pl):   Statyczna biblioteka NSPR
 Group:         Development/Libraries
-Requires:      %{name}-devel = %{version}
+Requires:      %{name}-devel = %{epoch}:%{version}-%{release}
 Obsoletes:     nspr-pthreads-static
 
 %description static
@@ -45,18 +55,23 @@ Static NSPR library.
 Statyczna biblioteka NSPR.
 
 %prep
-%setup -q
-#%patch -p1
+%setup -q -n %{name}-%{version}.HEAD
+%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}" \
-       --disable-debug \
-       --enable-strip \
+       --%{?debug:en}%{!?debug:dis}able-debug \
+       %{!?debug:--enable-strip} \
        --with-pthreads \
        --enable-ipv6
 
This page took 0.030998 seconds and 4 git commands to generate.