Blame SPECS/nspr.spec

a58096
Summary:        Netscape Portable Runtime
a58096
Name:           nspr
a58096
Version:        4.10
a58096
Release:        3%{?dist}
a58096
License:        MPLv2.0
a58096
URL:            http://www.mozilla.org/projects/nspr/
a58096
Group:          System Environment/Libraries
a58096
BuildRoot:      %{_tmppath}/%{name}-%{version}-root
a58096
Conflicts:      filesystem < 3
a58096
a58096
# Sources available at https://ftp.mozilla.org/pub/mozilla.org/nspr/releases/
a58096
# When hg tag based snapshots are being used, refer to documentation at
a58096
# https://wiki.mozilla.org/NSS:UsingHG and check out https://hg.mozilla.org/projects/nspr
a58096
Source0:        %{name}-%{version}.tar.bz2
a58096
Source1:        nspr-config.xml
a58096
a58096
Patch1:         nspr-config-pc.patch
a58096
a58096
%description
a58096
NSPR provides platform independence for non-GUI operating system 
a58096
facilities. These facilities include threads, thread synchronization, 
a58096
normal file and network I/O, interval timing and calendar time, basic 
a58096
memory management (malloc and free) and shared library linking.
a58096
a58096
%package devel
a58096
Summary:        Development libraries for the Netscape Portable Runtime
a58096
Group:          Development/Libraries
a58096
Requires:       nspr = %{version}-%{release}
a58096
Requires:       pkgconfig
a58096
BuildRequires:  xmlto
a58096
Conflicts:      filesystem < 3
a58096
a58096
%description devel
a58096
Header files for doing development with the Netscape Portable Runtime.
a58096
a58096
%prep
a58096
a58096
%setup -q
a58096
a58096
# Original nspr-config is not suitable for our distribution,
a58096
# because on different platforms it contains different dynamic content.
a58096
# Therefore we produce an adjusted copy of nspr-config that will be 
a58096
# identical on all platforms.
a58096
# However, we need to use original nspr-config to produce some variables
a58096
# that go into nspr.pc for pkg-config.
a58096
a58096
cp ./nspr/config/nspr-config.in ./nspr/config/nspr-config-pc.in
a58096
%patch1 -p0 -b flags
a58096
a58096
%build
a58096
a58096
# partial RELRO support as a security enhancement
a58096
LDFLAGS+=-Wl,-z,relro
a58096
export LDFLAGS
a58096
a58096
./nspr/configure \
a58096
                 --prefix=%{_prefix} \
a58096
                 --libdir=%{_libdir} \
a58096
                 --includedir=%{_includedir}/nspr4 \
a58096
%ifarch x86_64 ppc64 ia64 s390x sparc64 aarch64
a58096
                 --enable-64bit \
a58096
%endif
a58096
%ifarch armv7l armv7hl armv7nhl
a58096
                 --enable-thumb2 \
a58096
%endif
a58096
                 --enable-optimize="$RPM_OPT_FLAGS" \
a58096
                 --disable-debug
a58096
a58096
make
a58096
a58096
date +"%e %B %Y" | tr -d '\n' > date.xml
a58096
echo -n %{version} > version.xml
a58096
a58096
for m in %{SOURCE1}; do
a58096
  cp ${m} .
a58096
done
a58096
for m in nspr-config.xml; do
a58096
  xmlto man ${m}
a58096
done
a58096
a58096
%check
a58096
a58096
# Run test suite.
a58096
perl ./nspr/pr/tests/runtests.pl 2>&1 | tee output.log
a58096
a58096
TEST_FAILURES=`grep -c FAILED ./output.log` || :
a58096
if [ $TEST_FAILURES -ne 0 ]; then
a58096
  echo "error: test suite returned failure(s)"
a58096
  exit 1
a58096
fi
a58096
echo "test suite completed"
a58096
a58096
%install
a58096
a58096
%{__rm} -Rf $RPM_BUILD_ROOT
a58096
a58096
DESTDIR=$RPM_BUILD_ROOT \
a58096
  make install
a58096
a58096
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1 
a58096
a58096
NSPR_LIBS=`./config/nspr-config --libs`
a58096
NSPR_CFLAGS=`./config/nspr-config --cflags`
a58096
NSPR_VERSION=`./config/nspr-config --version`
a58096
%{__mkdir_p} $RPM_BUILD_ROOT/%{_libdir}/pkgconfig
a58096
a58096
# Get rid of the things we don't want installed (per upstream)
a58096
%{__rm} -rf \
a58096
   $RPM_BUILD_ROOT/%{_bindir}/compile-et.pl \
a58096
   $RPM_BUILD_ROOT/%{_bindir}/prerr.properties \
a58096
   $RPM_BUILD_ROOT/%{_libdir}/libnspr4.a \
a58096
   $RPM_BUILD_ROOT/%{_libdir}/libplc4.a \
a58096
   $RPM_BUILD_ROOT/%{_libdir}/libplds4.a \
a58096
   $RPM_BUILD_ROOT/%{_datadir}/aclocal/nspr.m4 \
a58096
   $RPM_BUILD_ROOT/%{_includedir}/nspr4/md
a58096
a58096
for f in nspr-config; do 
a58096
   install -c -m 644 ${f}.1 $RPM_BUILD_ROOT%{_mandir}/man1/${f}.1
a58096
done
a58096
a58096
%clean
a58096
%{__rm} -Rf $RPM_BUILD_ROOT
a58096
a58096
%post -p /sbin/ldconfig
a58096
a58096
%postun -p /sbin/ldconfig
a58096
a58096
%files
a58096
%defattr(-,root,root)
a58096
%{_libdir}/libnspr4.so
a58096
%{_libdir}/libplc4.so
a58096
%{_libdir}/libplds4.so
a58096
a58096
%files devel
a58096
%defattr(-, root, root)
a58096
%{_includedir}/nspr4
a58096
%{_libdir}/pkgconfig/nspr.pc
a58096
%{_bindir}/nspr-config
a58096
%{_mandir}/man*/*
a58096
a58096
%changelog
a58096
* Fri Aug 02 2013 Elio Maldonado <emaldona@redhat.com> - 4.10-3
a58096
- Update information on the provenance of the upstream sources
a58096
a58096
* Tue Jun 18 2013 Elio Maldonado <emaldona@redhat.com> - 4.10-2
a58096
- Install man page for the nspr-config script
a58096
a58096
* Wed May 29 2013 Elio Maldonado <emaldona@redhat.com> - 4.10-1
a58096
- Update to NSPR_4_10_RTM
a58096
a58096
* Mon May 06 2013 Elio Maldonado <emaldona@redhat.com> - 4.9.6-1
a58096
- Update to NSPR_4_9_6_RTM
a58096
a58096
* Mon Feb 18 2013 Elio Maldonado <emaldona@redhat.com> - 4.9.5-2
a58096
- Resolves: rhbz#912483 - Add spec file support for AArch64
a58096
a58096
* Fri Feb 01 2013 Elio Maldonado <emaldona@redhat.com> - 4.9.5-1
a58096
- Update to NSPR_4_9_5_RTM
a58096
a58096
* Mon Dec 17 2012 Elio Maldonado <emaldona@redhat.com> - 4.9.4-1
a58096
- Update to NSPR_4_9_4_RTM
a58096
a58096
* Mon Oct 01 2012 Elio Maldonado <emaldona@redhat.com> - 4.9.3-0.1.beta1.1
a58096
- Update to NSPR_4_9_5_BETA1
a58096
a58096
* Sun Aug 26 2012 Elio Maldonado <emaldona@redhat.com> - 4.9.2-1
a58096
- Update to NSPR_4_9_2_RTM
a58096
a58096
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.9.1-6
a58096
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
a58096
a58096
* Wed Jul 11 2012 Elio Maldonado <emaldona@redhat.com> - 4.9.1-5
a58096
- Updated License: to MPLv2.0 per upstream
a58096
a58096
* Fri Jun 22 2012 Elio Maldonado <emaldona@redhat.com> - 4.9.1-4
a58096
- Update the nspr-config-pc.patch to prevent multilib regressions
a58096
a58096
* Thu Jun 21 2012 Elio Maldonado <emaldona@redhat.com> - 4.9.1-3
a58096
- Bump the release tag
a58096
a58096
* Thu Jun 21 2012 Elio Maldonado <emaldona@redhat.com> - 4.9.1-3
a58096
- Resolves: rhbz#833529 - restore the good changes to nspr.pc
a58096
a58096
* Thu Jun 21 2012 Elio Maldonado <emaldona@redhat.com> - 4.9.1-2
a58096
- Resolves: rhbz#833529 - revert unwanted change to nspr.pc
a58096
- Removed nspr-config.pc.in.patch
a58096
a58096
* Mon Jun 18 2012 Elio Maldonado <emaldona@redhat.com> - 4.9.1-1
a58096
- Update to NSPR_4_9_1_RTM
a58096
a58096
* Wed Mar 21 2012 Elio Maldonado <emaldona@redhat.com> - 4.9-2
a58096
- Resolves: Bug 805672 - Library needs partial RELRO support added
a58096
a58096
* Wed Feb 29 2012 Elio Maldonado <emaldona@redhat.com> - 4.9-1
a58096
- Update to NSPR_4_9_RTM
a58096
a58096
* Wed Jan 25 2012 Harald Hoyer <harald@redhat.com> 4.9-0.2.beta3.1
a58096
- install everything in /usr
a58096
  https://fedoraproject.org/wiki/Features/UsrMove
a58096
a58096
* Wed Jan 25 2012 Harald Hoyer <harald@redhat.com> 4.9-0.2.beta3.1
a58096
- 
a58096
a58096
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.9-0.2.beta3
a58096
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
a58096
a58096
* Thu Oct 06 2011 Elio Maldonado <emaldona@redhat.com> - 4.9-0.1.beta3
a58096
- Update to NSPR_4_9_BETA3
a58096
a58096
* Thu Sep  8 2011 Ville Skyttä <ville.skytta@iki.fi> - 4.8.9-2
a58096
- Avoid %%post/un shell invocations and dependencies.
a58096
a58096
* Tue Aug 09 2011 Elio Maldonado <emaldona@redhat.com> - 4.8.9-1
a58096
- Update to NSPR_4_8_9_RTM
a58096
a58096
* Mon Jul 18 2011 Elio Maldonado <emaldona@redhat.com> - 4.8.8-4
a58096
- The tests must pass for the build to succeed
a58096
a58096
* Mon Jul 18 2011 Elio Maldonado <emaldona@redhat.com> - 4.8.8-3
a58096
- Run the nspr test suite in the %%check section
a58096
a58096
* Wed Jul 06 2011 Elio Maldonado <emaldona@redhat.com> - 4.8.8-2
a58096
- Conditionalize Thumb2 build support on right Arm arches
a58096
a58096
* Fri May 06 2011 Elio Maldonado <emaldona@redhat.com> - 4.8.8-1
a58096
- Update to NSPR_4_8_8_RTM
a58096
a58096
* Mon Apr 25 2011 Elio Maldonado Batiz <emaldona@redhat.com> - 4.8.8-0.1.beta3
a58096
- Update to NSPR_4_8_8_BETA3
a58096
a58096
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.8.7-2
a58096
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
a58096
a58096
* Wed Jan 12 2011 Elio Maldonado <emaldona@redhat.com> - 4.8.7-1
a58096
- Update to 4.8.7
a58096
a58096
* Mon Dec 27 2010 Elio Maldonado <emaldona@redhat.com> - 4.8.7-0.1beta2
a58096
- Rebuilt according to fedora pre-release naming guidelines
a58096
a58096
* Fri Dec 10 2010 Elio Maldonado <emaldona@redhat.com> - 4.8.6.99.2-1
a58096
- Update to NSPR_4_8_7_BETA2
a58096
a58096
* Tue Dec 07 2010 Elio Maldonado <emaldona@redhat.com> - 4.8.6.99.1-1
a58096
- Update to NSPR_4_8_7_BETA1
a58096
a58096
* Mon Aug 16 2010 Elio Maldonado <emaldona@redhat.com> - 4.8.6-1
a58096
- Update to 4.8.6
a58096
a58096
* Fri Mar 12 2010 Till Maas <opensource@till.name> - 4.8.4-2
a58096
- Fix release value
a58096
a58096
* Tue Feb 23 2010 Elio Maldonado <emaldona@redhat.com> - 4.8.4-1
a58096
- Update to 4.8.4
a58096
a58096
* Sat Nov 14 2009 Elio Maldonado<emaldona@redhat.com> - 4.8.2-3
a58096
- update to 4.8.2
a58096
a58096
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.8-2
a58096
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
a58096
a58096
* Tue Jun 30 2009 Christopher Aillon <caillon@redhat.com> 4.8-1
a58096
- update to 4.8
a58096
a58096
* Fri Jun 05 2009 Kai Engert <kaie@redhat.com> - 4.7.4-2
a58096
- update to 4.7.4
a58096
a58096
* Wed Mar 04 2009 Kai Engert <kaie@redhat.com> - 4.7.3-5
a58096
- add a workaround for bug 487844
a58096
a58096
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.7.3-4
a58096
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
a58096
a58096
* Wed Dec  3 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 4.7.3-3
a58096
- Rebuild for pkgconfig
a58096
a58096
* Wed Nov 19 2008 Kai Engert <kaie@redhat.com> - 4.7.3-2
a58096
- update to 4.7.3
a58096
* Thu Oct 23 2008 Kai Engert <kaie@redhat.com> - 4.7.2-2
a58096
- update to 4.7.2
a58096
a58096
* Thu Oct  9 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 4.7.1-5
a58096
- forgot to cvs add patch... whoops. :/
a58096
a58096
* Thu Oct  9 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 4.7.1-4
a58096
- properly handle sparc64 in nspr code
a58096
a58096
* Tue Sep 30 2008 Dennis Gilmore <dennis@ausil.us> - 4.7.1-3
a58096
- add sparc64 to the list of 64 bit arches
a58096
a58096
* Mon Jun 02 2008 Kai Engert <kengert@redhat.com> - 4.7.1-2
a58096
- Update to 4.7.1
a58096
a58096
* Thu Mar 20 2008 Jesse Keating <jkeating@redhat.com> - 4.7.0.99.2-2
a58096
- Drop the old obsoletes/provides that aren't needed anymore.
a58096
a58096
* Mon Mar 17 2008 Kai Engert <kengert@redhat.com> - 4.7.0.99.2-1
a58096
- Update to NSPR_4_7_1_BETA2
a58096
* Tue Feb 26 2008 Kai Engert <kengert@redhat.com> - 4.7.0.99.1-2
a58096
- Addressed cosmetic review comments from bug 226202
a58096
* Fri Feb 22 2008 Kai Engert <kengert@redhat.com> - 4.7.0.99.1-1
a58096
- Update to NSPR 4.7.1 Beta 1
a58096
- Use /usr/lib{64} as devel libdir, create symbolic links.
a58096
* Sat Feb 09 2008 Kai Engert <kengert@redhat.com> - 4.7-1
a58096
- Update to NSPR 4.7
a58096
a58096
* Thu Jan 24 2008 Kai Engert <kengert@redhat.com> - 4.6.99.3-1
a58096
* NSPR 4.7 beta snapshot 20080120
a58096
a58096
* Mon Jan 07 2008 Kai Engert <kengert@redhat.com> - 4.6.99-2
a58096
- move .so files to /lib
a58096
a58096
* Wed Nov 07 2007 Kai Engert <kengert@redhat.com> - 4.6.99-1
a58096
- NSPR 4.7 alpha
a58096
a58096
* Tue Aug 28 2007 Kai Engert <kengert@redhat.com> - 4.6.7-3
a58096
- Updated license tag
a58096
a58096
* Fri Jul 06 2007 Kai Engert <kengert@redhat.com> - 4.6.7-2
a58096
- Update to 4.6.7
a58096
a58096
* Fri Jul 06 2007 Kai Engert <kengert@redhat.com> - 4.6.6-2
a58096
- Update thread-cleanup patch to latest upstream version
a58096
- Add upstream patch to support PR_STATIC_ASSERT
a58096
a58096
* Wed Mar 07 2007 Kai Engert <kengert@redhat.com> - 4.6.6-1
a58096
- Update to 4.6.6
a58096
- Adjust IPv6 patch to latest upstream version
a58096
a58096
* Sat Feb 24 2007 Kai Engert <kengert@redhat.com> - 4.6.5-2
a58096
- Update to latest ipv6 upstream patch
a58096
- Add upstream patch to fix a thread cleanup issue
a58096
- Now requires pkgconfig
a58096
a58096
* Mon Jan 22 2007 Wan-Teh Chang <wtchang@redhat.com> - 4.6.5-1
a58096
- Update to 4.6.5
a58096
a58096
* Tue Jan 16 2007 Kai Engert <kengert@redhat.com> - 4.6.4-2
a58096
- Include upstream patch to fix ipv6 support (rhbz 222554)
a58096
a58096
* Tue Nov 21 2006 Kai Engert <kengert@redhat.com> - 4.6.4-1
a58096
- Update to 4.6.4
a58096
a58096
* Thu Sep 14 2006 Kai Engert <kengert@redhat.com> - 4.6.3-1
a58096
- Update to 4.6.3
a58096
a58096
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 4.6.2-1.1
a58096
- rebuild
a58096
a58096
* Fri May 26 2006 Kai Engert <kengert@redhat.com> - 4.6.2-1
a58096
- Update to 4.6.2
a58096
- Tweak nspr-config to be identical on all platforms.
a58096
a58096
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 4.6.1-2.2
a58096
- bump again for double-long bug on ppc(64)
a58096
a58096
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 4.6.1-2.1
a58096
- rebuilt for new gcc4.1 snapshot and glibc changes
a58096
a58096
* Thu Jan  5 2006 Kai Engert <kengert@redhat.com> 4.6.1-2
a58096
- Do not use -ansi when compiling, because of a compilation
a58096
  problem with latest glibc and anonymous unions.
a58096
  See also bugzilla.mozilla.org # 322427.
a58096
a58096
* Wed Jan  4 2006 Kai Engert <kengert@redhat.com>
a58096
- Add an upstream patch to fix gcc visibility issues.
a58096
a58096
* Tue Jan  3 2006 Christopher Aillon <caillon@redhat.com>
a58096
- Stop shipping static libraries; NSS and dependencies no longer
a58096
  require static libraries to build.
a58096
a58096
* Thu Dec 15 2005 Christopher Aillon <caillon@redhat.com> 4.6.1-1
a58096
- Update to 4.6.1
a58096
a58096
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
a58096
- rebuilt
a58096
a58096
* Fri Jul 15 2005 Christopher Aillon <caillon@redhat.com> 4.6-4
a58096
- Use the NSPR version numbering scheme reported by NSPR,
a58096
  which unfortunately is not exactly the same as the real
a58096
  version (4.6 != 4.6.0 according to RPM and pkgconfig).
a58096
a58096
* Fri Jul 15 2005 Christopher Aillon <caillon@redhat.com> 4.6-3
a58096
- Correct the CFLAGS reported by pkgconfig
a58096
a58096
* Tue Jul 12 2005 Christopher Aillon <caillon@redhat.com> 4.6-2
a58096
- Temporarily include the static libraries allowing nss and 
a58096
  its dependencies to build. 
a58096
a58096
* Tue Jul 12 2005 Christopher Aillon <caillon@redhat.com> 4.6-1
a58096
- Update to NSPR 4.6
a58096
a58096
* Wed Apr 20 2005 Christopher Aillon <caillon@redhat.com> 4.4.1-2
a58096
- NSPR doesn't have make install, but it has make real_install.  Use it.
a58096
a58096
* Thu Apr 14 2005 Christopher Aillon <caillon@redhat.com> 4.4.1-1
a58096
- Let's make an RPM.