---- nspr-4.9/mozilla/nsprpub/configure.in.orig 2012-02-14 20:06:00.000000000 +0100
-+++ nspr-4.9/mozilla/nsprpub/configure.in 2012-02-22 19:51:15.304052833 +0100
-@@ -596,7 +596,8 @@
-
- AC_MSG_CHECKING([whether the $host compiler ($HOST_CC $HOST_CFLAGS $HOST_LDFLAGS) works])
- AC_TRY_COMPILE([], [return(0);],
-- [ac_cv_prog_host_cc_works=1 AC_MSG_RESULT([yes])],
-+ [ac_cv_prog_host_cc_works=1
-+ AC_MSG_RESULT([yes])],
- AC_MSG_ERROR([installation or configuration problem: $host compiler $HOST_CC cannot create executables.]) )
-
- CC=$_SAVE_CC
-@@ -2708,8 +2709,8 @@
- ;;
- *)
- AC_CHECK_LIB(dl, dlopen,
-- AC_CHECK_HEADER(dlfcn.h,
-- OS_LIBS="-ldl $OS_LIBS"))
-+ [AC_CHECK_HEADER(dlfcn.h,
-+ OS_LIBS="-ldl $OS_LIBS")])
- ;;
- esac
-
-@@ -3350,7 +3351,7 @@
+--- nspr-4.10/nspr/configure.in.orig 2013-05-28 23:39:29.000000000 +0200
++++ nspr-4.10/nspr/configure.in 2013-06-08 06:25:10.860289567 +0200
+@@ -3193,7 +3193,7 @@
dnl ========================================================
dnl Generate output files.
dnl ========================================================
Makefile
config/Makefile
config/autoconf.mk
-@@ -3380,41 +3381,17 @@
+@@ -3224,41 +3224,17 @@
pr/src/threads/Makefile
pr/tests/Makefile
pr/tests/dll/Makefile
---- nspr-4.9.1/mozilla/nsprpub/config/nspr.pc.in.orig 2012-05-19 00:26:17.000000000 +0200
-+++ nspr-4.9.1/mozilla/nsprpub/config/nspr.pc.in 2012-06-03 08:08:25.428360499 +0200
+--- nspr-4.10/nspr/config/nspr.pc.in.orig 2012-05-19 00:26:17.000000000 +0200
++++ nspr-4.10/nspr/config/nspr.pc.in 2012-06-03 08:08:25.428360499 +0200
@@ -7,4 +7,5 @@
Description: The Netscape Portable Runtime
Version: @MOD_MAJOR_VERSION@.@MOD_MINOR_VERSION@.@MOD_PATCH_VERSION@
+++ /dev/null
---- mozilla/nsprpub/pr/include/md/_linux.cfg.orig 2008-01-09 15:24:27.000000000 +0000
-+++ mozilla/nsprpub/pr/include/md/_linux.cfg 2008-01-09 15:24:45.000000000 +0000
-@@ -322,6 +322,51 @@
- #define PR_BYTES_PER_WORD_LOG2 2
- #define PR_BYTES_PER_DWORD_LOG2 3
-
-+#elif (defined(__sparc__) && defined(__arch64__))
-+
-+#undef IS_LITTLE_ENDIAN
-+#define IS_BIG_ENDIAN 1
-+
-+#define PR_BYTES_PER_BYTE 1
-+#define PR_BYTES_PER_SHORT 2
-+#define PR_BYTES_PER_INT 4
-+#define PR_BYTES_PER_INT64 8
-+#define PR_BYTES_PER_LONG 8
-+#define PR_BYTES_PER_FLOAT 4
-+#define PR_BYTES_PER_DOUBLE 8
-+#define PR_BYTES_PER_WORD 8
-+#define PR_BYTES_PER_DWORD 8
-+
-+#define PR_BITS_PER_BYTE 8
-+#define PR_BITS_PER_SHORT 16
-+#define PR_BITS_PER_INT 32
-+#define PR_BITS_PER_INT64 64
-+#define PR_BITS_PER_LONG 64
-+#define PR_BITS_PER_FLOAT 32
-+#define PR_BITS_PER_DOUBLE 64
-+#define PR_BITS_PER_WORD 64
-+
-+#define PR_BITS_PER_BYTE_LOG2 3
-+#define PR_BITS_PER_SHORT_LOG2 4
-+#define PR_BITS_PER_INT_LOG2 5
-+#define PR_BITS_PER_INT64_LOG2 6
-+#define PR_BITS_PER_LONG_LOG2 6
-+#define PR_BITS_PER_FLOAT_LOG2 5
-+#define PR_BITS_PER_DOUBLE_LOG2 6
-+#define PR_BITS_PER_WORD_LOG2 6
-+
-+#define PR_ALIGN_OF_SHORT 2
-+#define PR_ALIGN_OF_INT 4
-+#define PR_ALIGN_OF_LONG 8
-+#define PR_ALIGN_OF_INT64 8
-+#define PR_ALIGN_OF_FLOAT 4
-+#define PR_ALIGN_OF_DOUBLE 8
-+#define PR_ALIGN_OF_POINTER 8
-+#define PR_ALIGN_OF_WORD 8
-+
-+#define PR_BYTES_PER_WORD_LOG2 3
-+#define PR_BYTES_PER_DWORD_LOG2 3
-+
- #elif defined(__sparc__)
-
- #undef IS_LITTLE_ENDIAN
Summary: Netscape Portable Runtime (NSPR)
Summary(pl.UTF-8): PrzenoĊne biblioteki uruchomieniowe Netscape
Name: nspr
-Version: 4.9.6
+Version: 4.10
Release: 1
Epoch: 1
License: MPL v1.1 or GPL v2+ or LGPL v2.1+
Group: Libraries
Source0: http://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v%{version}/src/%{name}-%{version}.tar.gz
-# Source0-md5: 62b1e9d376d503d972f90c3c0031d879
+# Source0-md5: f5466def95726b3c900d8a0227bdd034
Patch0: %{name}-acfix.patch
-Patch1: %{name}-sparc64.patch
-Patch2: %{name}-pc.patch
+Patch1: %{name}-pc.patch
URL: http://www.mozilla.org/projects/nspr/
BuildRequires: autoconf >= 2.12
BuildRequires: automake
%prep
%setup -q
%patch0 -p1
-%patch1 -p0
-%patch2 -p1
+%patch1 -p1
# Win32-specific, requires autoconf2.13
-%{__rm} mozilla/nsprpub/build/autoconf/acwinpaths.m4 \
- mozilla/nsprpub/aclocal.m4
+%{__rm} nspr/build/autoconf/acwinpaths.m4 \
+ nspr/aclocal.m4
%build
-cd mozilla/nsprpub
+cd nspr
cp -f /usr/share/automake/config.sub build/autoconf
%{__autoconf}
%configure \
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_pkgconfigdir}
-%{__make} -C mozilla/nsprpub install \
+%{__make} -C nspr install \
DESTDIR=$RPM_BUILD_ROOT
# for compatibility (upstream installs only nspr.nc); to be dropped sometime?