diff --git a/.gitignore b/.gitignore index b42dd5a..b8db559 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,2 @@ -SOURCES/nspr-4.10.6.tar.bz2 +SOURCES/nspr-4.10.6.tar.gz SOURCES/nspr-config.xml diff --git a/.nspr.metadata b/.nspr.metadata index 754b312..cb541c1 100644 --- a/.nspr.metadata +++ b/.nspr.metadata @@ -1,2 +1,2 @@ -dfc780578c26df9531c0c094e754c174bf11bcb1 SOURCES/nspr-4.10.6.tar.bz2 +9f3f278f7f31574b2cdbb99d9703c58e51cd3e1c SOURCES/nspr-4.10.6.tar.gz f748a225d13fc55d8843c93002a6e8b79cd3779d SOURCES/nspr-config.xml diff --git a/SOURCES/nspr-config.xml b/SOURCES/nspr-config.xml deleted file mode 100644 index 9e3f99c..0000000 --- a/SOURCES/nspr-config.xml +++ /dev/null @@ -1,127 +0,0 @@ -<?xml version='1.0' encoding='utf-8'?> -<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" - "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" [ -<!ENTITY date SYSTEM "date.xml"> -<!ENTITY version SYSTEM "version.xml"> -]> - -<refentry id="nspr-config"> - - <refentryinfo> - <date>&date;</date> - <title>Netscape Portable Runtime</title> - <productname>nspr</productname> - <productnumber>&version;</productnumber> - </refentryinfo> - - <refmeta> - <refentrytitle>nspr-config</refentrytitle> - <manvolnum>1</manvolnum> - </refmeta> - - <refnamediv> - <refname>nspr-config</refname> - <refpurpose>Return meta information about nspr libraries</refpurpose> - </refnamediv> - - <refsynopsisdiv> - <cmdsynopsis> - <command>nspr-config</command> - <arg><option>--prefix</option></arg> - <arg><option>--exec-prefix</option></arg> - <arg><option>--includedir</option></arg> - <arg><option>--libs</option></arg> - <arg><option>--cflags</option></arg> - <arg><option>--libdir</option></arg> - <arg><option>--version</option></arg> - </cmdsynopsis> - </refsynopsisdiv> - -<refsection id="description"> - <title>Description</title> - <para><command>nspr-config</command> is a shell script which can be used to obtain gcc options for building client pacakges of nspr.</para> - </refsection> - - <refsection> - <title>Options</title> - - <variablelist> - <varlistentry> - <term><option>--prefix</option></term> - <listitem><simpara>Returns the top level system directory under which the nspr libraries are installed.</simpara></listitem> - </varlistentry> - - <varlistentry> - <term><option>--exec-prefix</option></term> - <listitem><simpara>Returns the top level system directory under which any nspr binaries would be installed.</simpara></listitem> - </varlistentry> - - <varlistentry> - <term><option>--includedir</option> <replaceable>count</replaceable></term> - <listitem><simpara>Returns the path to the directory were the nspr headers are installed.</simpara></listitem> - </varlistentry> - - <varlistentry> - <term><option>--version</option></term> - <listitem><simpara>Returns the upstream version of nspr in the form major_version-minor_version-patch_version.</simpara></listitem> - </varlistentry> - - <varlistentry> - <term><option>--libs</option></term> - <listitem><simpara>Returns the compiler linking flags.</simpara></listitem> - </varlistentry> - - <varlistentry> - <term><option>--cflags</option></term> - <listitem><simpara>Returns the compiler include flags.</simpara></listitem> - </varlistentry> - - <varlistentry> - <term><option>--libdir</option></term> - <listitem><simpara>Returns the path to the directory were the nspr libraries are installed.</simpara></listitem> - </varlistentry> - - </variablelist> - </refsection> - - <refsection> - <title>Examples</title> - - <para>The following example will query for both include path and linkage flags: - <programlisting> - /usr/bin/nspr-config --cflags --libs - </programlisting> - </para> - - - </refsection> - - <refsection> - <title>Files</title> - - <para><filename>/usr/bin/nspr-config</filename></para> - - </refsection> - - <refsection> - <title>See also</title> - <para>pkg-config(1)</para> - </refsection> - - <refsection id="authors"> - <title>Authors</title> - <para>The NSPR liraries were written and maintained by developers with Netscape, Red Hat, Sun, Oracle, Mozilla, and Google.</para> - <para> - Authors: Elio Maldonado <emaldona@redhat.com>. - </para> - </refsection> - -<!-- don't change --> - <refsection id="license"> - <title>LICENSE</title> - <para>Licensed under the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/. - </para> - </refsection> - -</refentry> - diff --git a/SPECS/nspr.spec b/SPECS/nspr.spec index cc32c03..55a3a98 100644 --- a/SPECS/nspr.spec +++ b/SPECS/nspr.spec @@ -1,7 +1,7 @@ Summary: Netscape Portable Runtime Name: nspr Version: 4.10.6 -Release: 1%{?dist} +Release: 3%{?dist} License: MPLv2.0 URL: http://www.mozilla.org/projects/nspr/ Group: System Environment/Libraries @@ -11,7 +11,7 @@ Conflicts: filesystem < 3 # Sources available at https://ftp.mozilla.org/pub/mozilla.org/nspr/releases/ # When hg tag based snapshots are being used, refer to documentation at # https://wiki.mozilla.org/NSS:UsingHG and check out https://hg.mozilla.org/projects/nspr -Source0: %{name}-%{version}.tar.bz2 +Source0: %{name}-%{version}.tar.gz Source1: nspr-config.xml Patch1: nspr-config-pc.patch @@ -56,11 +56,12 @@ cp ./nspr/config/nspr-config.in ./nspr/config/nspr-config-pc.in LDFLAGS+=-Wl,-z,relro export LDFLAGS -./nspr/configure \ +%define _configure ./nspr/configure +%configure \ --prefix=%{_prefix} \ --libdir=%{_libdir} \ --includedir=%{_includedir}/nspr4 \ -%ifarch x86_64 ppc64 ia64 s390x sparc64 aarch64 +%if %{__isa_bits} == 64 --enable-64bit \ %endif %ifarch armv7l armv7hl armv7nhl @@ -142,9 +143,17 @@ done %{_mandir}/man*/* %changelog +* Mon Dec 01 2014 Elio Maldonado <emaldona@redhat.com> - 4.10.6-3 +- Restore s390x related patch as it hasn't been applied upstream yet +- Resolves: Bug 1103250 - Rebase RHEL 7.1 to NSPR 4.10.6 (for FF 31) + +* Tue Aug 05 2014 Elio Maldonado <emaldona@redhat.com> 4.10.6-2 +- Generic 32/64 bit platform detection (fix ppc64le build) +- Resolves: Bug 1126243 - Ensure nspr is built for 64 bit on ppc64le + * Tue Jul 08 2014 Elio Maldonado <emaldona@redhat.com> - 4.10.6-1 - Rebase to nspr-4.10.6 -- Resolves: Bug 1116201 +- Resolves: Bug 1103250 - Rebase RHEL 7.1 to NSPR 4.10.6 (for FF 31) * Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 4.10.2-4 - Mass rebuild 2014-01-24