# # spec file for package mozilla-nspr (Version 4.7.1) # # Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany. # This file and all modifications and additions to the pristine # package are under the same license as the package itself. # # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild Name: mozilla-nspr BuildRequires: gcc-c++ License: GPL v2 or later; LGPL v2.1 or later; MOZILLA PUBLIC LICENSE (MPL/NPL) Version: 4.7.1 Release: 6 Summary: Netscape Portable Runtime Url: http://www.mozilla.org/projects/nspr/ Group: System/Libraries # NSPR head snapshot 20080325 Source: nspr-%{version}.tar.bz2 Patch1: prdtoa.patch Patch3: pkgconfig.patch # Remove remnant traces from the package split. Provides: libnspr4 = %{version}-%{release} Obsoletes: libnspr4 <= %{version}-%{release} BuildRoot: %{_tmppath}/%{name}-%{version}-build %description NSPR provides platform independence for non-GUI operating system facilities. These facilities include threads, thread synchronization, normal file and network I/O, interval timing and calendar time, basic memory management (malloc and free), and shared library linking. Authors: -------- Mozilla Foundation %package devel License: GPL v2 or later; LGPL v2.1 or later; MOZILLA PUBLIC LICENSE (MPL/NPL) Summary: Netscape Portable Runtime development files Group: Development/Libraries/Other Requires: mozilla-nspr = %{version} %description devel NSPR provides platform independence for non-GUI operating system facilities. These facilities include threads, thread synchronization, normal file and network I/O, interval timing and calendar time, basic memory management (malloc and free), and shared library linking. Authors: -------- Mozilla Foundation %prep %setup -n nspr-%{version} -q cd mozilla %patch1 %patch3 -p2 %build cd mozilla/nsprpub export CFLAGS="$RPM_OPT_FLAGS -g -fno-strict-aliasing" ./configure --enable-optimize="$CFLAGS" \ --disable-debug \ %ifarch x86_64 --enable-64bit \ %endif --libdir=%{_libdir} \ --includedir=%{_includedir}/nspr4 \ --prefix=%{_prefix} make %{?jobs:-j%jobs} %install mkdir -p $RPM_BUILD_ROOT%{_bindir} mkdir -p $RPM_BUILD_ROOT%{_libdir}/nspr mkdir -p $RPM_BUILD_ROOT%{_libdir}/pkgconfig mkdir -p $RPM_BUILD_ROOT%{_includedir}/nspr4 cp mozilla/nsprpub/config/nspr-config $RPM_BUILD_ROOT%{_bindir}/ cp mozilla/nsprpub/config/nspr.pc $RPM_BUILD_ROOT/%{_libdir}/pkgconfig cp -L mozilla/nsprpub/dist/lib/*.so $RPM_BUILD_ROOT/%{_libdir} cp -L mozilla/nsprpub/dist/lib/*.a $RPM_BUILD_ROOT/%{_libdir}/nspr/ cp -rL mozilla/nsprpub/dist/include/nspr/* $RPM_BUILD_ROOT/%{_includedir}/nspr4/ # #31667 chmod -x $RPM_BUILD_ROOT/%{_includedir}/nspr4/prvrsion.h %clean rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-, root, root) %{_libdir}/*.so %files devel %defattr(-, root, root) %{_bindir}/nspr-config %{_libdir}/pkgconfig/nspr.pc %{_includedir}/nspr4/ %exclude %{_includedir}/nspr4/md/* %{_libdir}/nspr/ %changelog * Mon Mar 31 2008 maw@suse.de - Undo the shared library package split, per discussion in opensuse-packaging. * Wed Mar 26 2008 wr@rosenauer.org - update to 4.7.1beta2-20080325 snapshot * Wed Mar 26 2008 maw@suse.de - Merge changes from the build service (thanks, Wolfgang) - Update to the 4.7.1beta1-20080225 snapshot - Split out a shared library subpackage. * Thu Feb 07 2008 maw@suse.de - Merge changes from the build service (thanks, Wolfgang). - Remove strcstr.patch, which has been upstreamed. * Thu Feb 07 2008 wr@rosenauer.org - update to 4.7.0 (requirement for Firefox 3) - added a %%clean section * Thu Nov 22 2007 wr@rosenauer.org - update to version 4.6.8 * Mon Jun 11 2007 ro@suse.de - update to NSPR 4.6.7 (pull in from wr from opensuse BS) * Thu Feb 22 2007 maw@suse.de - Update to version 4.6.5 * Wed Feb 07 2007 wr@rosenauer.org - fixed crasher in PL_strcaserstr() (strcstr.patch) (bmo #369467) * Wed Jan 31 2007 maw@suse.de - Don't install %%{_includedir}/nspr4/prvrsion.h with the executable bit set. * Sat Oct 21 2006 aj@suse.de - from openSUSE BuildService (thanks Wolfgang Rosenauer): - update to version 4.6.3: Bug fix release. * Tue Aug 01 2006 stark@suse.de - version is still 4.6.2 * Sat Jul 15 2006 stark@suse.de - added PR_SI_HOSTNAME_UNTRUNCATED flag to get the hostname as FQDN with PR_GetSystemInfo() if configured on a system (bmo #322956) * Mon May 15 2006 stark@suse.de - update to 4.6.2 RTM version bugs fixed: * PR_ParseTimeString use PR_Assert and it calls abort on invalid date (bmo #247896) * PR_SetSysfdTableSize and PR_GetSysfdTableMax are not exported (bmo #326110) * Add a UTF-16 API to load a library (bmo #326168) * various changes for non-Linux platforms * Wed Jan 25 2006 mls@suse.de - converted neededforbuild to BuildRequires * Fri Dec 16 2005 stark@suse.de - update to final 4.6.1 RTM version * Wed Dec 07 2005 stark@suse.de - moved headers to nspr4 sub-directories and removed some unneeded headers * Sat Nov 26 2005 stark@suse.de - changed ldconfig call in install-scripts * Tue Nov 15 2005 stark@suse.de - current 4.6.1pre (20051114) * Tue Oct 11 2005 stark@suse.de - next official release will most likely be 4.6.1 (20051010) * Mon Sep 26 2005 mls@suse.de - make devel package require base package * Thu Sep 22 2005 stark@suse.de - update to 4.7.0pre (20050921) * Tue May 31 2005 stark@suse.de - update to final 4.6 * Thu May 19 2005 stark@suse.de - renamed mozilla-nspr.pc to nspr.pc as decided upstream - latest snapshots which integrates hidden.patch * Wed May 18 2005 stark@suse.de - workaround for gcc bug (bmo #293438, bnc #83908) - provide its own pkgconfig file (mozilla-nspr.pc) * Tue May 10 2005 stark@suse.de - update to current HEAD (upstreamed two patches) * Tue Apr 26 2005 stark@suse.de - moved static libs to sub-directory (almost nobody should link against them statically) * Mon Apr 25 2005 stark@suse.de - fix nspr-config for biarch * Tue Mar 22 2005 stark@suse.de - update to HEAD for mozilla compatibility * Sat Mar 19 2005 stark@suse.de - update to 4.5.2beta1 * Tue Mar 08 2005 stark@suse.de - initial standalone package