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
|
|
|
#
|
2021-10-07 10:07:04 +02:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
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.
|
|
|
|
|
2019-01-08 08:47:36 +01:00
|
|
|
# Please submit bugfixes or comments via https://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
|
2021-10-16 11:53:04 +02:00
|
|
|
Version: 8.2.0
|
2011-12-25 17:02:10 +01:00
|
|
|
Release: 0
|
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++
|
2019-01-08 08:47:36 +01:00
|
|
|
URL: http://www.hboehm.info/gc/
|
2013-05-27 09:35:17 +02:00
|
|
|
|
2021-10-07 10:07:04 +02:00
|
|
|
#Git-Clone: https://github.com/ivmai/bdwgc
|
2019-03-15 11:28:12 +01:00
|
|
|
Source: https://github.com/ivmai/bdwgc/releases/download/v%version/%name-%version.tar.gz
|
2013-03-06 19:42:57 +01:00
|
|
|
BuildRequires: autoconf >= 2.64
|
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
|
2013-05-27 09:35:17 +02:00
|
|
|
BuildRequires: pkgconfig(atomic_ops)
|
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++
|
2018-01-31 13:01:48 +01:00
|
|
|
Group: System/Libraries
|
2011-09-23 15:07:42 +02:00
|
|
|
%ifarch ppc64
|
2019-03-15 11:28:12 +01:00
|
|
|
# bug437293
|
2011-09-23 15:07:42 +02:00
|
|
|
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
|
2012-08-07 21:22:16 +02:00
|
|
|
Requires: glibc-devel
|
2019-01-14 10:52:18 +01:00
|
|
|
Requires: libatomic_ops-devel
|
2012-08-07 21:22:16 +02:00
|
|
|
Requires: libgc1 = %version
|
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.
|
|
|
|
|
2007-01-16 00:13:31 +01:00
|
|
|
%prep
|
2021-10-07 10:07:04 +02:00
|
|
|
%autosetup -p1
|
2007-01-16 00:13:31 +01:00
|
|
|
|
|
|
|
%build
|
2011-07-13 09:00:01 +02:00
|
|
|
autoreconf -fi
|
2011-12-25 17:02:10 +01:00
|
|
|
|
|
|
|
# see bugzilla.redhat.com/689877
|
2019-03-15 11:28:12 +01:00
|
|
|
export CPPFLAGS="-DUSE_GET_STACKBASE_FOR_MAIN"
|
|
|
|
export CXXFLAGS="%optflags -std=gnu++98"
|
2018-01-31 13:01:48 +01:00
|
|
|
%configure --disable-static --docdir="%_docdir/%name" \
|
2011-12-13 10:58:37 +01:00
|
|
|
--with-gnu-ld \
|
|
|
|
--enable-cplusplus \
|
|
|
|
--enable-large-config \
|
|
|
|
--enable-threads=posix \
|
2011-12-25 17:02:10 +01:00
|
|
|
--enable-parallel-mark \
|
2013-05-27 09:35:17 +02:00
|
|
|
--with-libatomic-ops=yes
|
|
|
|
# --with-libatomic-ops=yes means to use the system library
|
2011-12-25 17:02:10 +01:00
|
|
|
|
2011-09-23 15:07:42 +02:00
|
|
|
make %{?_smp_mflags}
|
2007-01-16 00:13:31 +01:00
|
|
|
|
|
|
|
%install
|
2015-03-05 10:47:26 +01:00
|
|
|
%make_install
|
2013-05-27 09:35:17 +02:00
|
|
|
rm -Rf "%buildroot/%_datadir/gc" "%buildroot/%_libdir"/*.la
|
2021-10-07 10:07:04 +02:00
|
|
|
for i in README.Mac README.OS2 README.win32; do
|
|
|
|
rm -f "%buildroot/%_docdir/%name/$i"
|
|
|
|
done
|
2009-04-02 16:07:38 +02:00
|
|
|
|
|
|
|
%check
|
2013-05-27 09:35:17 +02:00
|
|
|
%if !0%{?qemu_user_space_build}
|
2021-10-16 11:53:04 +02:00
|
|
|
make check -j1
|
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
|
|
|
|
%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
|
2013-05-27 09:35:17 +02:00
|
|
|
%_libdir/libcord.so.1*
|
|
|
|
%_libdir/libgc*.so.1*
|
2007-05-27 00:13:56 +02:00
|
|
|
|
|
|
|
%files devel
|
2018-01-31 13:01:48 +01:00
|
|
|
%_docdir/%name/
|
2013-05-27 09:35:17 +02:00
|
|
|
%_libdir/libcord.so
|
|
|
|
%_libdir/libgc*.so
|
|
|
|
%_libdir/pkgconfig/bdw-gc.pc
|
2019-01-08 08:47:36 +01:00
|
|
|
%_mandir/man3/gc.3*
|
2013-05-27 09:35:17 +02:00
|
|
|
%_includedir/gc.h
|
|
|
|
%_includedir/gc_cpp.h
|
|
|
|
%_includedir/gc/
|
2007-01-16 00:13:31 +01:00
|
|
|
|
2007-05-27 00:13:56 +02:00
|
|
|
%changelog
|