SHA256
2
0
gc/gc.spec

129 lines
3.7 KiB
RPMSpec
Raw Normal View History

#
# spec file for package gc
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: gc
Accepting request 266822 from home:posophe:branches:devel:libraries:c_c++ - Update to version 7.4.2 + Add config option to use STGRTMIN-based signals for thread suspend/resume. + Allow parallel mark to be enabled on powerpc-linux systems. + Check for Fujitsu compiler in builtin_unwind logic (enable FX10/K-Computer). + Fix 'Array subscript is above array bounds' GCC warning in GC_new_kind/proc. + Fix 'attribute declaration must precede definition' warning (clang-3.1). + Fix (enable) Cygwin-64 build. + Fix GC_finalized_malloc failure on disclaim_test. + Fix GC_sig_suspend initialization when non-constant SIGRTMIN used. + Fix MS VC redefinition warning for functions declared with GC_ATTR_MALLOC. + Fix TEXT() usage for concatenated strings in GC_CreateLogFile (Win32). + Fix data roots registration for Android/x86 and NDK ARM 'gold' linker. + Fix find stackbottom on BlueGene P/Q systems. + Fix machdep .lo files path in configure (SPARC, IA-64). + Fix ok_init assignment (missing cast) in GC_new_kind_inner. + Fix typos in names in AUTHORS and ChangeLog files. + Remove barrett_diagram file duplicated by tree.html. + Remove non-existing DISCARD_WORDS from GC data structure ASCII diagram. + Restore contribution information for ancient releases in ChangeLog. - Remove aarch64-support.patch; merged on upstream release - gc project has a new home; update Url tag and download source Url OBS-URL: https://build.opensuse.org/request/show/266822 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/gc?expand=0&rev=29
2014-12-29 20:15:49 +01:00
Version: 7.4.2
Release: 0
Summary: A garbage collector for C and C++
License: BSD-3-Clause
Group: Development/Libraries/C and C++
Url: http://www.hboehm.info/gc/
#Git-Clone: git://github.com/ivmai/bdwgc
Accepting request 266822 from home:posophe:branches:devel:libraries:c_c++ - Update to version 7.4.2 + Add config option to use STGRTMIN-based signals for thread suspend/resume. + Allow parallel mark to be enabled on powerpc-linux systems. + Check for Fujitsu compiler in builtin_unwind logic (enable FX10/K-Computer). + Fix 'Array subscript is above array bounds' GCC warning in GC_new_kind/proc. + Fix 'attribute declaration must precede definition' warning (clang-3.1). + Fix (enable) Cygwin-64 build. + Fix GC_finalized_malloc failure on disclaim_test. + Fix GC_sig_suspend initialization when non-constant SIGRTMIN used. + Fix MS VC redefinition warning for functions declared with GC_ATTR_MALLOC. + Fix TEXT() usage for concatenated strings in GC_CreateLogFile (Win32). + Fix data roots registration for Android/x86 and NDK ARM 'gold' linker. + Fix find stackbottom on BlueGene P/Q systems. + Fix machdep .lo files path in configure (SPARC, IA-64). + Fix ok_init assignment (missing cast) in GC_new_kind_inner. + Fix typos in names in AUTHORS and ChangeLog files. + Remove barrett_diagram file duplicated by tree.html. + Remove non-existing DISCARD_WORDS from GC data structure ASCII diagram. + Restore contribution information for ancient releases in ChangeLog. - Remove aarch64-support.patch; merged on upstream release - gc project has a new home; update Url tag and download source Url OBS-URL: https://build.opensuse.org/request/show/266822 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/gc?expand=0&rev=29
2014-12-29 20:15:49 +01:00
Source: http://www.hboehm.info/gc/gc_source/%name-%version.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: autoconf >= 2.64
BuildRequires: gcc-c++
BuildRequires: libtool
BuildRequires: pkg-config
BuildRequires: pkgconfig(atomic_ops)
%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.
%package -n libgc1
Summary: A garbage collector for C and C++
Group: System/Libraries
# bug437293
%ifarch ppc64
Obsoletes: boehm-gc-64bit
%endif
#
%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.
%package devel
Summary: A garbage collector for C and C++
Group: Development/Libraries/C and C++
Provides: gc:/usr/include/gc/gc.h
Requires: glibc-devel
Requires: libgc1 = %version
%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.
%prep
Accepting request 266822 from home:posophe:branches:devel:libraries:c_c++ - Update to version 7.4.2 + Add config option to use STGRTMIN-based signals for thread suspend/resume. + Allow parallel mark to be enabled on powerpc-linux systems. + Check for Fujitsu compiler in builtin_unwind logic (enable FX10/K-Computer). + Fix 'Array subscript is above array bounds' GCC warning in GC_new_kind/proc. + Fix 'attribute declaration must precede definition' warning (clang-3.1). + Fix (enable) Cygwin-64 build. + Fix GC_finalized_malloc failure on disclaim_test. + Fix GC_sig_suspend initialization when non-constant SIGRTMIN used. + Fix MS VC redefinition warning for functions declared with GC_ATTR_MALLOC. + Fix TEXT() usage for concatenated strings in GC_CreateLogFile (Win32). + Fix data roots registration for Android/x86 and NDK ARM 'gold' linker. + Fix find stackbottom on BlueGene P/Q systems. + Fix machdep .lo files path in configure (SPARC, IA-64). + Fix ok_init assignment (missing cast) in GC_new_kind_inner. + Fix typos in names in AUTHORS and ChangeLog files. + Remove barrett_diagram file duplicated by tree.html. + Remove non-existing DISCARD_WORDS from GC data structure ASCII diagram. + Restore contribution information for ancient releases in ChangeLog. - Remove aarch64-support.patch; merged on upstream release - gc project has a new home; update Url tag and download source Url OBS-URL: https://build.opensuse.org/request/show/266822 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/gc?expand=0&rev=29
2014-12-29 20:15:49 +01:00
%setup -q
%build
# refresh auto*/libtool to purge rpaths
rm -f libtool libtool.m4
autoreconf -fi
# see bugzilla.redhat.com/689877
CPPFLAGS="-DUSE_GET_STACKBASE_FOR_MAIN"; export CPPFLAGS
%configure --disable-static \
--with-pic \
--with-gnu-ld \
--enable-cplusplus \
--enable-large-config \
--enable-threads=posix \
--enable-parallel-mark \
--with-libatomic-ops=yes
# --with-libatomic-ops=yes means to use the system library
make %{?_smp_mflags}
%install
%make_install
rm -Rf "%buildroot/%_datadir/gc" "%buildroot/%_libdir"/*.la
%check
%if !0%{?qemu_user_space_build}
make check
%endif
%post -n libgc1 -p /sbin/ldconfig
%postun -n libgc1 -p /sbin/ldconfig
%files -n libgc1
%defattr(-, root, root)
%doc README.QUICK doc/README.*
%_libdir/libcord.so.1*
%_libdir/libgc*.so.1*
%files devel
%defattr(-, root, root)
%doc doc/[a-z]*
%_libdir/libcord.so
%_libdir/libgc*.so
%_libdir/pkgconfig/bdw-gc.pc
%_includedir/gc.h
%_includedir/gc_cpp.h
%_includedir/gc/
%changelog