2007-01-16 00:13:31 +01:00
|
|
|
#
|
2011-07-13 09:00:13 +02:00
|
|
|
# spec file for package gc
|
2007-01-16 00:13:31 +01:00
|
|
|
#
|
2012-02-12 13:52:44 +01:00
|
|
|
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-16 00:13:31 +01:00
|
|
|
#
|
2008-11-17 16:49:37 +01:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2007-05-27 00:13:56 +02:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
2007-01-16 00:13:31 +01:00
|
|
|
#
|
|
|
|
|
2012-02-12 13:52:44 +01:00
|
|
|
|
2007-05-27 00:13:56 +02:00
|
|
|
Name: gc
|
2011-07-13 09:00:01 +02:00
|
|
|
Version: 7.1.9.6
|
2011-12-25 17:02:10 +01:00
|
|
|
Release: 0
|
2011-07-13 09:00:01 +02:00
|
|
|
%define src_ver 7.2alpha6
|
2011-09-30 21:22:46 +02:00
|
|
|
Url: http://www.hpl.hp.com/personal/Hans_Boehm/gc/
|
2007-05-27 00:13:56 +02:00
|
|
|
Summary: A garbage collector for C and C++
|
2011-12-25 17:02:10 +01:00
|
|
|
License: BSD-3-Clause
|
|
|
|
Group: Development/Libraries/C and C++
|
2011-07-13 09:00:01 +02:00
|
|
|
Source: %{name}-%{src_ver}.tar.bz2
|
|
|
|
Patch0: %{name}-build.patch
|
2007-05-27 00:13:56 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2011-12-25 17:02:10 +01:00
|
|
|
BuildRequires: gcc-c++
|
2011-10-02 16:35:18 +02:00
|
|
|
BuildRequires: libtool
|
2011-12-25 17:02:10 +01:00
|
|
|
BuildRequires: pkg-config
|
2007-01-16 00:13:31 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
The Boehm-Demers-Weiser conservative garbage collector can be used as a
|
|
|
|
garbage collecting replacement for C malloc or C++ new. It allows you
|
|
|
|
to allocate memory basically as you normally would, without explicitly
|
|
|
|
deallocating memory that is no longer useful. The collector
|
|
|
|
automatically recycles memory when it determines that it can no longer
|
|
|
|
be otherwise accessed.
|
|
|
|
|
2011-09-23 15:07:42 +02:00
|
|
|
%package -n libgc1
|
|
|
|
Summary: A garbage collector for C and C++
|
|
|
|
Group: System/Libraries
|
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: boehm-gc-64bit
|
|
|
|
%endif
|
|
|
|
#
|
2007-01-16 00:13:31 +01:00
|
|
|
|
2011-09-23 15:07:42 +02:00
|
|
|
%description -n libgc1
|
|
|
|
The Boehm-Demers-Weiser conservative garbage collector can be used as a
|
|
|
|
garbage collecting replacement for C malloc or C++ new. It allows you
|
|
|
|
to allocate memory basically as you normally would, without explicitly
|
|
|
|
deallocating memory that is no longer useful. The collector
|
|
|
|
automatically recycles memory when it determines that it can no longer
|
|
|
|
be otherwise accessed.
|
2007-05-27 00:13:56 +02:00
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: A garbage collector for C and C++
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Provides: gc:/usr/include/gc/gc.h
|
2011-09-23 15:07:42 +02:00
|
|
|
Requires: libgc1 = %version, glibc-devel
|
2007-05-27 00:13:56 +02:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
The Boehm-Demers-Weiser conservative garbage collector can be used as a
|
|
|
|
garbage collecting replacement for C malloc or C++ new. It allows you
|
|
|
|
to allocate memory basically as you normally would, without explicitly
|
|
|
|
deallocating memory that is no longer useful. The collector
|
|
|
|
automatically recycles memory when it determines that it can no longer
|
|
|
|
be otherwise accessed.
|
|
|
|
|
2011-12-25 17:02:10 +01:00
|
|
|
%package -n libatomic_ops-devel
|
|
|
|
Summary: Atomic memory update operations
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Provides: libatomic_ops-static = %{version}-%{release}
|
2012-02-12 13:52:44 +01:00
|
|
|
Obsoletes: libatomic-ops-devel <= 1.2
|
|
|
|
Provides: libatomic-ops-devel = %{version}
|
2011-12-25 17:02:10 +01: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.
|
|
|
|
|
2007-01-16 00:13:31 +01:00
|
|
|
%prep
|
2011-07-13 09:00:01 +02:00
|
|
|
%setup -q -n %{name}-%{src_ver}
|
|
|
|
%patch0 -p1
|
2007-01-16 00:13:31 +01:00
|
|
|
|
|
|
|
%build
|
2011-12-25 17:02:10 +01:00
|
|
|
# refresh auto*/libtool to purge rpaths
|
|
|
|
rm -f libtool libtool.m4
|
2011-07-13 09:00:01 +02:00
|
|
|
autoreconf -fi
|
2011-12-25 17:02:10 +01:00
|
|
|
|
|
|
|
# see bugzilla.redhat.com/689877
|
|
|
|
CPPFLAGS="-DUSE_GET_STACKBASE_FOR_MAIN"; export CPPFLAGS
|
|
|
|
|
2011-12-13 10:58:37 +01:00
|
|
|
%configure --disable-static \
|
|
|
|
--with-pic \
|
|
|
|
--with-gnu-ld \
|
|
|
|
--enable-cplusplus \
|
|
|
|
--enable-large-config \
|
|
|
|
--enable-threads=posix \
|
2011-12-25 17:02:10 +01:00
|
|
|
--enable-parallel-mark \
|
|
|
|
--with-libatomic-ops=no
|
|
|
|
|
2011-09-23 15:07:42 +02:00
|
|
|
make %{?_smp_mflags}
|
2011-12-25 17:02:10 +01:00
|
|
|
make %{?_smp_mflags} -C libatomic_ops
|
2007-01-16 00:13:31 +01:00
|
|
|
|
|
|
|
%install
|
2011-12-25 17:02:10 +01:00
|
|
|
|
|
|
|
%makeinstall
|
|
|
|
%makeinstall -C libatomic_ops
|
|
|
|
|
|
|
|
rm -rf $RPM_BUILD_ROOT/usr/share/gc # docs
|
|
|
|
rm -rf %{buildroot}%{_datadir}/libatomic_ops/{COPYING,*.txt}
|
|
|
|
rm -f %{buildroot}%{_libdir}/*.la
|
2009-04-02 16:07:38 +02:00
|
|
|
|
|
|
|
%check
|
2011-09-30 23:26:42 +02:00
|
|
|
%if ! 0%{?qemu_user_space_build}
|
2009-04-02 16:07:38 +02:00
|
|
|
make check
|
2011-12-25 17:02:10 +01:00
|
|
|
# fails on i586
|
|
|
|
make check -C libatomic_ops ||:
|
2011-09-30 21:22:46 +02:00
|
|
|
%endif
|
2007-01-16 00:13:31 +01:00
|
|
|
|
2011-09-23 15:07:42 +02:00
|
|
|
%post -n libgc1 -p /sbin/ldconfig
|
2008-02-25 17:08:38 +01:00
|
|
|
|
2011-09-23 15:07:42 +02:00
|
|
|
%postun -n libgc1 -p /sbin/ldconfig
|
2008-02-25 17:08:38 +01:00
|
|
|
|
2011-09-23 15:07:42 +02:00
|
|
|
%files -n libgc1
|
2007-01-16 00:13:31 +01:00
|
|
|
%defattr(-, root, root)
|
2011-12-25 17:02:10 +01:00
|
|
|
%doc README.QUICK doc/README.*
|
2007-05-27 00:13:56 +02:00
|
|
|
%{_libdir}/lib*.so.*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%doc doc/[a-z]*
|
|
|
|
%{_libdir}/lib*.so
|
2011-07-13 09:00:01 +02:00
|
|
|
%{_libdir}/pkgconfig/*.pc
|
2011-12-25 17:02:10 +01:00
|
|
|
%{_includedir}/gc.h
|
|
|
|
%{_includedir}/gc_cpp.h
|
|
|
|
%{_includedir}/gc
|
|
|
|
|
|
|
|
%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_malloc.h
|
|
|
|
%{_includedir}/atomic_ops_stack.h
|
|
|
|
%{_includedir}/atomic_ops/
|
|
|
|
%{_libdir}/libatomic_ops.a
|
|
|
|
%{_libdir}/libatomic_ops_gpl.a
|
2007-01-16 00:13:31 +01:00
|
|
|
|
2007-05-27 00:13:56 +02:00
|
|
|
%changelog
|