SHA256
2
0
gc/gc.spec

84 lines
2.0 KiB
RPMSpec
Raw Normal View History

#
# spec file for package gc (Version 6.6)
#
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org
#
# norootforbuild
Name: gc
Version: 6.6
Release: 2
Autoreqprov: on
Group: Development/Libraries/C and C++
License: BSD
URL: http://www.hpl.hp.com/personal/Hans_Boehm/gc/
Summary: A garbage collector for C and C++
Source: %{name}%{version}.tar.bz2
#Patch: %{name}-%{version}-shared.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: gcc-c++
Patch: gcc4.patch
Patch1: configure.patch
%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.
Authors:
--------
Hans-J. Boehm
Alan J. Demers
%prep
%setup -n %name%version
%patch
%patch1
%build
#%{suse_update_config -f}
#autoreconf -fi
#%{__libtoolize} -f
CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" \
./configure \
--prefix=%{_prefix} \
--sysconfdir=%{_sysconfdir} \
--libdir=%{_libdir} \
--infodir=%{_infodir} \
--mandir=%{_mandir} \
--enable-redirect-malloc \
--enable-cplusplus
make
%install
make DESTDIR=$RPM_BUILD_ROOT install
rm -fr $RPM_BUILD_ROOT/usr/share/gc # docs
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-, root, root)
%doc README.QUICK doc/README* doc/[a-z]*
%{_libdir}/lib*
%{_includedir}/*
%changelog -n gc
* Mon Jan 30 2006 - uli@suse.de
- enabled malloc redirection, C++ support
- fixed shared libs
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Wed Jan 11 2006 - uli@suse.de
- initial package