File mingw64-gc.spec of Package mingw64-gc
#
# spec file for package mingw64-gc
#
# Copyright (c) 2014 SUSE LINUX Products 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: mingw64-gc
Version: 7.6.0
Release: 0
Summary: GC garbage collector for C and C++
License: BSD-3-Clause
Group: Development/Libraries/C and C++
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
BuildRequires: mingw64-cross-binutils
BuildRequires: mingw64-cross-gcc
BuildRequires: mingw64-cross-gcc-c++
BuildRequires: mingw64-cross-pkg-config
BuildRequires: mingw64-filesystem
BuildRequires: mingw64-libatomic_ops-devel
%_mingw64_package_header_debug
BuildArch: noarch
#!BuildIgnore: post-build-checks
%description
The Boehm-Demers-Weiser conservative garbage collector can be
used as a garbage collecting replacement for C malloc or C++ new.
%package -n mingw64-libgc1
Summary: MinGW Windows port of the Boehm Garbage Collector
Group: System/Libraries
Obsoletes: mingw64-gc
%description -n mingw64-libgc1
The Boehm-Demers-Weiser conservative garbage collector can be
used as a garbage collecting replacement for C malloc or C++ new.
%package devel
Summary: GC garbage collector for C and C++
Group: Development/Libraries/C and C++
%description devel
The Boehm-Demers-Weiser conservative garbage collector can be
used as a garbage collecting replacement for C malloc or C++ new.
%_mingw64_debug_package
%prep
%setup -q -n gc-%{version}
%build
MINGW64_CFLAGS="-DGC_BUILD=1 %{_mingw64_cflags} -fcommon" \
%{_mingw64_configure} \
--disable-dependency-tracking \
--disable-static \
--enable-cplusplus \
--enable-large-config \
--enable-parallel-mark \
--enable-threads=win32
make %{?_smp_mflags} || make
%install
mkdir -p %{buildroot}%{_mingw64_includedir}/gc
make DESTDIR=%{buildroot} install %{?_smp_mflags}
%files -n mingw64-libgc1
%defattr(-,root,root)
%{_mingw64_bindir}/libcord-1.dll
%{_mingw64_bindir}/libgc-1.dll
%{_mingw64_bindir}/libgccpp-1.dll
%files devel
%defattr(-,root,root)
%{_mingw64_libdir}/libcord.dll.a
%{_mingw64_libdir}/libgc.dll.a
%{_mingw64_libdir}/libgccpp.dll.a
%{_mingw64_libdir}/pkgconfig/bdw-gc.pc
%{_mingw64_includedir}/gc.h
%{_mingw64_includedir}/gc_cpp.h
%{_mingw64_includedir}/gc/
%{_mingw64_datadir}/doc/gc
%{_mingw64_datadir}/man/man3
%changelog