gc/gc.spec

349 lines
10 KiB
RPMSpec
Raw Normal View History

2012-10-29 08:55:40 +00:00
Summary: A garbage collector for C and C++
Name: gc
2012-05-31 00:17:49 +00:00
%global base_ver 7.2
2013-11-15 13:23:42 +00:00
Version: 7.2e
Release: 1%{?dist}
Group: System Environment/Libraries
License: BSD
2012-10-29 08:55:40 +00:00
Url: http://www.hpl.hp.com/personal/Hans_Boehm/gc/
Source0: http://www.hpl.hp.com/personal/Hans_Boehm/gc/gc_source/gc-%{version}%{?pre}.tar.gz
2013-11-15 13:23:42 +00:00
Patch2: gc-7.2e-aarch64.patch
2005-08-08 15:42:01 +00:00
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
2009-07-19 01:41:27 +00:00
## upstreamable patches
## upstream patches
2012-10-29 08:55:40 +00:00
BuildRequires: automake libtool
2008-12-12 20:14:45 +00:00
BuildRequires: pkgconfig
2007-07-09 19:26:47 +00:00
# rpmforge compatibility
Obsoletes: libgc < %{version}-%{release}
Provides: libgc = %{version}-%{release}
%description
2012-10-29 08:55:40 +00:00
The Boehm-Demers-Weiser conservative garbage collector can be
2007-07-09 19:26:47 +00:00
used as a garbage collecting replacement for C malloc or C++ new.
%package devel
2012-10-29 08:55:40 +00:00
Summary: Libraries and header files for %{name} development
Group: Development/Libraries
Requires: %{name}%{?_isa} = %{version}-%{release}
Obsoletes: libgc-devel < %{version}-%{release}
Provides: libgc-devel = %{version}-%{release}
%description devel
2006-07-13 14:44:30 +00:00
%{summary}.
%package -n libatomic_ops-devel
Summary: Atomic memory update operations
Group: Development/Libraries
2012-10-29 08:55:40 +00:00
# libatomic_ops.a is MIT
# libatomic_ops_gpl.a is GPLv2+
2012-05-15 00:54:08 +00:00
License: MIT and GPLv2+
Provides: libatomic_ops-static = %{version}-%{release}
2012-10-29 08:55:40 +00:00
%description -n libatomic_ops-devel
Provides implementations for atomic memory update operations on a
number of architectures. This allows direct use of these in reasonably
portable code. Unlike earlier similar packages, this one explicitly
considers memory barrier semantics, and allows the construction of code
that involves minimum overhead across a variety of architectures.
%prep
2012-05-31 00:17:49 +00:00
%setup -q -n gc-%{base_ver}%{?pre}
%patch2 -p1 -b .aarch64
2008-05-05 02:32:47 +00:00
# refresh auto*/libtool to purge rpaths
rm -f libtool libtool.m4
2011-02-09 18:36:58 +00:00
autoreconf -i -f
%build
# see bugzilla.redhat.com/689877
CPPFLAGS="-DUSE_GET_STACKBASE_FOR_MAIN"; export CPPFLAGS
%configure \
--disable-static \
--enable-cplusplus \
2008-07-13 00:27:02 +00:00
--enable-large-config \
%ifarch %{ix86}
2008-07-13 00:27:02 +00:00
--enable-parallel-mark \
%endif
2011-06-20 17:25:32 +00:00
--enable-threads=posix \
--with-libatomic-ops=no
make %{?_smp_mflags}
make %{?_smp_mflags} -C libatomic_ops
%install
rm -rf %{buildroot}
2012-10-29 08:55:40 +00:00
make install DESTDIR=%{buildroot}
make install DESTDIR=%{buildroot} -C libatomic_ops
2012-10-29 08:55:40 +00:00
install -p -D -m644 doc/gc.man %{buildroot}%{_mandir}/man3/gc.3
## Unpackaged files
2012-05-15 01:02:38 +00:00
rm -rfv %{buildroot}%{_datadir}/gc/
rm -rfv %{buildroot}%{_datadir}/libatomic_ops/{COPYING,*.txt}
2012-05-15 00:54:08 +00:00
rm -fv %{buildroot}%{_libdir}/lib*.la
2007-07-09 19:26:47 +00:00
%check
make check
# ignore results on powerpc - the atomic stack feature is not working correctly
# there (#883748)
%ifarch ppc ppc64
%global arch_ignore ||:
%endif
make check -C libatomic_ops %{?arch_ignore}
2007-07-09 19:26:47 +00:00
%clean
rm -rf %{buildroot}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
2012-10-29 08:55:40 +00:00
%files
2006-07-13 14:44:30 +00:00
%defattr(-,root,root,-)
2007-07-09 19:26:47 +00:00
%doc doc/README
2012-10-29 08:55:40 +00:00
%doc doc/README.changes doc/README.contributors
%doc doc/README.environment doc/README.linux
%{_libdir}/libcord.so.1*
%{_libdir}/libgc.so.1*
%{_libdir}/libgccpp.so.1*
%files devel
2006-07-13 14:44:30 +00:00
%defattr(-,root,root,-)
%doc doc/*.html
%{_includedir}/gc.h
%{_includedir}/gc_cpp.h
%{_includedir}/gc/
%{_libdir}/libcord.so
%{_libdir}/libgc.so
%{_libdir}/libgccpp.so
%{_libdir}/pkgconfig/bdw-gc.pc
%{_mandir}/man3/gc.3*
%files -n libatomic_ops-devel
%defattr(-,root,root,-)
%doc libatomic_ops/AUTHORS libatomic_ops/ChangeLog libatomic_ops/COPYING libatomic_ops/NEWS libatomic_ops/README
%doc libatomic_ops/doc/*.txt
%{_includedir}/atomic_ops.h
%{_includedir}/atomic_ops/
%{_libdir}/libatomic_ops.a
2012-05-15 00:54:08 +00:00
%{_libdir}/pkgconfig/atomic_ops.pc
# GPLv2+ bits
%{_includedir}/atomic_ops_malloc.h
%{_includedir}/atomic_ops_stack.h
%{_libdir}/libatomic_ops_gpl.a
%changelog
2013-11-15 13:23:42 +00:00
* Fri Nov 15 2013 Rex Dieter <rdieter@fedoraproject.org> 7.2e-1
- gc-7.2e (#892559)
* Wed Oct 30 2013 Pavel Raiskup <praiskup@redhat.com> - 7.2d-4
- add support for aarch64 (#969817)
- ignore testsuite results only for powerpc
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 7.2d-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 7.2d-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
2013-01-07 12:51:06 +00:00
* Mon Jan 07 2013 Rex Dieter <rdieter@fedoraproject.org> 7.2d-1
- gc-7.2d
* Mon Oct 29 2012 Pavel Raiskup <praiskup@redhat.com> - 7.2c-5
- fix possible infinite loop in test suite (#871067)
2012-10-29 08:55:40 +00:00
* Mon Oct 29 2012 Pavel Raiskup <praiskup@redhat.com> - 7.2c-4
- trim lines, s/[tabs]/[spaces]/
* Fri Jul 27 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 7.2c-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
2012-07-25 00:46:29 +00:00
* Tue Jul 24 2012 Rex Dieter <rdieter@fedoraproject.org> 7.2c-2
- rebuild
2012-06-26 15:35:35 +00:00
* Tue Jun 26 2012 Rex Dieter <rdieter@fedoraproject.org> 7.2c-1
- 7.2c
* Fri Jun 15 2012 Rex Dieter <rdieter@fedoraproject.org>
- 7.2b-2
- backport patches from gc-7_2-hotfix-2 branch in lieu of 7.2c release
- gc 7.2 final abi broken when changing several symbols to hidden (#825473)
2012-06-17 18:18:42 +00:00
- CVE-2012-2673 gc: malloc() and calloc() overflows (#828878)
2012-05-31 00:17:49 +00:00
* Wed May 30 2012 Rex Dieter <rdieter@fedoraproject.org> 7.2b-1
- gc-7.2b
2012-05-15 00:54:08 +00:00
* Mon May 14 2012 Rex Dieter <rdieter@fedoraproject.org>
- 7.2-1
2012-10-29 08:55:40 +00:00
- gc-7.2 (final)
2012-05-15 00:54:08 +00:00
* Fri Mar 02 2012 Rex Dieter <rdieter@fedoraproject.org> 7.2-0.7.alpha6
- libatomic_ops: use -DAO_USE_PTHREAD_DEFS on ARMv5
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 7.2-0.6.alpha6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
2011-10-26 23:46:55 +00:00
* Wed Oct 26 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 7.2-0.5.alpha6
- Rebuilt for glibc bug#747377
* Mon Jun 20 2011 Rex Dieter <rdieter@fedoraproject.rog> 7.2-0.4.alpha6.20110107
- gc-7.2alpha6
- build with -DUSE_GET_STACKBASE_FOR_MAIN (#689877)
2011-02-09 18:36:58 +00:00
* Wed Feb 09 2011 Rex Dieter <rdieter@fedoraproject.org> 7.2-0.3.alpha5.20110107
- bdwgc-7.2alpha4 20110107 snapshot
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 7.2-0.2.alpha4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
* Fri Dec 11 2009 Rex Dieter <rdieter@fedoraproject.org> - 7.2-0.1.alpha4
- gc-7.2alpha4
- use/package internal libatomic_ops
* Tue Dec 8 2009 Michael Schwendt <mschwendt@fedoraproject.org> - 7.1-10
- Explicitly BR libatomic_ops-static in accordance with the Packaging
Guidelines (libatomic_ops-devel is still static-only).
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 7.1-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
* Sun Jul 19 2009 Rex Dieter <rdieter@fedoraproject.org. - 7.1-8
2009-07-19 01:41:27 +00:00
- FTBFS gc-7.1-7.fc11 (#511365)
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 7.1-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
2008-12-12 20:14:13 +00:00
* Fri Dec 12 2008 Rex Dieter <rdieter@fedoraproject.org> 7.1-6
- rebuild for pkgconfig deps
2008-10-15 13:09:00 +00:00
* Wed Oct 15 2008 Rex Dieter <rdieter@fedoraproject.org> 7.1-5
- forward-port patches (gcinit, sparc)
2008-10-03 17:13:38 +00:00
* Fri Oct 03 2008 Rex Dieter <rdieter@fedoraproject.org> 7.1-4
- BR: libatomic_ops-devel
* Mon Sep 08 2008 Rex Dieter <rdieter@fedoraproject.org> 7.1-3
- upstream DONT_ADD_BYTE_AT_END patch
- spec cosmetics
2008-07-13 00:27:02 +00:00
* Sat Jul 12 2008 Rex Dieter <rdieter@fedoraproject.org> 7.1-2
- --enable-large-config (#453972)
2008-05-05 02:32:47 +00:00
* Sun May 04 2008 Rex Dieter <rdieter@fedoraproject.org> 7.1-1
- gc-7.1
- purge rpaths
2012-10-29 08:55:40 +00:00
* Fri Feb 08 2008 Rex Dieter <rdieter@fedoraproject.org> 7.0-7
2008-02-08 21:26:17 +00:00
- respin (gcc43)
* Wed Aug 29 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 7.0-6
- BR: gawk
- fixup compat_header patch to avoid needing auto* tools
* Wed Aug 29 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 7.0-5
- compat_header patch (supercedes previous pkgconfig patch)
* Tue Aug 21 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 7.0-4
- pkgconfig patch (cflags += -I%%_includedir/gc)
2007-08-21 20:31:37 +00:00
* Tue Aug 21 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 7.0-3
- respin (ppc32)
* Tue Jul 24 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 7.0-2
- gcinit patch, ABI compatibility (#248700)
2007-07-09 19:26:47 +00:00
* Mon Jul 09 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 7.0-1
- gc-7.0
* Mon Dec 11 2006 Rex Dieter <rexdieter[AT]users.sf.net> 6.8-3
- Obsoletes/Provides: libgc(-devel) (rpmforge compatibility)
2006-08-28 14:56:53 +00:00
* Mon Aug 28 2006 Rex Dieter <rexdieter[AT]users.sf.net> 6.8-2
- fc6 respin
2006-07-13 14:44:30 +00:00
* Thu Jul 13 2006 Rex Dieter <rexdieter[AT]users.sf.net> 6.8-1
- 6.8
2006-03-04 04:59:22 +00:00
* Fri Mar 03 2006 Rex Dieter <rexdieter[AT]users.sf.net> 6.7-1
- 6.7
2012-10-29 08:55:40 +00:00
* Wed Mar 1 2006 Rex Dieter <rexdieter[AT]users.sf.net>
2006-03-01 15:54:09 +00:00
- fc5: gcc/glibc respin
2006-02-10 13:15:41 +00:00
* Fri Feb 10 2006 Rex Dieter <rexdieter[AT]users.sf.net> 6.6-5
2012-10-29 08:55:40 +00:00
- gcc(4.1) patch
2006-02-10 13:00:14 +00:00
Summary: C++ Garbage Collector Name: gc Version: 6.6 Release: 4%{?dist} Group: System Environment/Libraries License: BSD Url: http://www.hpl.hp.com/personal/Hans_Boehm/gc/ Source: http://www.hpl.hp.com/personal/Hans_Boehm/gc/gc_source/gc%{version}.tar .gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) # force no undefined symbols (#166344) Patch1: gc-6.6-no-undefined.patch BuildRequires: libtool BuildRequires: automake Provides: libgc = %{version}-%{release} %description The Boehm-Demers-Weiser conservative garbage collector can be used as a garbage collecting replacement for C malloc or C++ new. %package devel Summary: Libraries and header files for %{name} development Group: Development/Libraries Requires: %{name} = %{version}-%{release} Provides: libgc-devel = %{version}-%{release} %description devel Libraries and header files for %{name} development. %prep %setup -q -n %{name}%{version} %patch1 -p1 -b .no-undefined cp -f %{_datadir}/aclocal/libtool.m4 . libtoolize --copy --force aclocal automake autoconf #autoheader %build %configure \ --disable-static \ --enable-cplusplus \ --enable-threads=posix \ %ifarch %{ix86} --enable-parallel-mark %endif make %{?_smp_mflags} %check || : make check %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT install -p -D -m644 doc/gc.man $RPM_BUILD_ROOT%{_mandir}/man3/gc.3 ## Unpackaged files rm -rf $RPM_BUILD_ROOT%{_datadir}/gc rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.la %clean rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root) %doc doc/README doc/README.changes doc/README.contributors %doc doc/README.environment doc/README.linux %{_libdir}/lib*.so.* %files devel %defattr(-,root,root) %doc doc/*.html %{_includedir}/* %{_libdir}/lib*.so %{_mandir}/man?/* %changelog Thu Dec 01 2005 Rex Dieter <rexdieter[AT]users.sf.net> 6.6-4 - Provides: libgc(-devel) Wed Sep 14 2005 Rex Dieter <rexdieter[AT]users.sf.net> 6.6-3 - no-undefined patch, libtool madness (#166344) Mon Sep 12 2005 Rex Dieter <rexdieter[AT]users.sf.net> 6.6-2 - drop opendl patch (doesn't appear to be needed anymore) Fri Sep 09 2005 Rex Dieter <rexdieter[AT]users.sf.net> 6.6-1 - 6.6 Wed May 25 2005 Rex Dieter <rexdieter[AT]users.sf.net> 6.5-1 - 6.5 Fri Apr 7 2005 Michael Schwendt <mschwendt[AT]users.sf.net> - rebuilt 6.4-2 - --enable-threads unconditionally - --enable-parallel-mark only on %%ix86 (#144681) 6.4-1 - 6.4 - update opendl patch 6.3-0.fdr.1 - 6.3(final) 6.3-0.fdr.0.4.alpha6 - dlopen patch 6.3-0.fdr.0.3.alpha6 - explictly --enable-threads ('n friends) 6.3-0.fdr.0.2.alpha6 - 6.3alpha6 - --disable-static - --enable-parallel-mark 6.3-0.fdr.0.1.alpha2 - 6.3alpha2 6.2-0.fdr.3 - OK, put manpage in man3. 6.2-0.fdr.2 - drop manpage pending feedback from developer. 6.2-0.fdr.1 - fix manpage location - remove .la file (it appears unnecessary after all, thanks to opendl patch) - remove cvs tag from description - touchup -devel desc/summary. - macro update to support Fedora Core 6.2-0.fdr.0 - 6.2 release. - update license (BSD) - Consider building with: --enable-parallel-mark (for now, no).
2005-12-01 15:10:35 +00:00
* Thu Dec 01 2005 Rex Dieter <rexdieter[AT]users.sf.net> 6.6-4
- Provides: libgc(-devel)
* Wed Sep 14 2005 Rex Dieter <rexdieter[AT]users.sf.net> 6.6-3
- no-undefined patch, libtool madness (#166344)
* Mon Sep 12 2005 Rex Dieter <rexdieter[AT]users.sf.net> 6.6-2
- drop opendl patch (doesn't appear to be needed anymore)
* Fri Sep 09 2005 Rex Dieter <rexdieter[AT]users.sf.net> 6.6-1
2005-09-09 19:29:11 +00:00
- 6.6
2005-08-08 15:42:01 +00:00
* Wed May 25 2005 Rex Dieter <rexdieter[AT]users.sf.net> 6.5-1
- 6.5
* Wed Apr 6 2005 Michael Schwendt <mschwendt[AT]users.sf.net>
- rebuilt
* Wed Jan 26 2005 Rex Dieter <rexdieter[AT]users.sf.net> 0:6.4-2
- --enable-threads unconditionally
- --enable-parallel-mark only on %%ix86 (#144681)
* Mon Jan 10 2005 Rex Dieter <rexdieter[AT]users.sf.net> 0:6.4-1
- 6.4
- update opendl patch
* Fri Jul 09 2004 Rex Dieter <rexdieter at sf.net> 0:6.3-0.fdr.1
- 6.3(final)
* Tue Jun 01 2004 Rex Dieter <rexdieter at sf.net> 0:6.3-0.fdr.0.4.alpha6
- dlopen patch
* Wed May 26 2004 Rex Dieter <rexdieter at sf.net> 0:6.3-0.fdr.0.3.alpha6
- explictly --enable-threads ('n friends)
* Tue May 25 2004 Rex Dieter <rexdieter at sf.net> 0:6.3-0.fdr.0.2.alpha6
- 6.3alpha6
- --disable-static
- --enable-parallel-mark
* Wed Dec 17 2003 Rex Dieter <rexdieter at sf.net> 0:6.3-0.fdr.0.1.alpha2
- 6.3alpha2
* Thu Oct 02 2003 Rex Dieter <rexdieter at sf.net> 0:6.2-0.fdr.3
- OK, put manpage in man3.
* Thu Oct 02 2003 Rex Dieter <rexdieter at sf.net> 0:6.2-0.fdr.2
2012-10-29 08:55:40 +00:00
- drop manpage pending feedback from developer.
* Tue Sep 30 2003 Rex Dieter <rexdieter at sf.net> 0:6.2-0.fdr.1
2012-10-29 08:55:40 +00:00
- fix manpage location
- remove .la file (it appears unnecessary after all, thanks to opendl patch)
- remove cvs tag from description
- touchup -devel desc/summary.
- macro update to support Fedora Core
2012-10-29 08:55:40 +00:00
* Thu Sep 11 2003 Rex Dieter <rexdieter at sf.net> 0:6.2-0.fdr.0
- 6.2 release.
- update license (BSD)
- Consider building with: --enable-parallel-mark
(for now, no).