114 lines
2.8 KiB
RPMSpec
114 lines
2.8 KiB
RPMSpec
#
|
|
# spec file for package gc (Version 6.6)
|
|
#
|
|
# Copyright (c) 2007 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: 49
|
|
Autoreqprov: on
|
|
Group: Development/Libraries/C and C++
|
|
License: BSD License and BSD-like
|
|
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
|
|
|
|
%package devel
|
|
Summary: A garbage collector for C and C++
|
|
Group: Development/Libraries/C and C++
|
|
Provides: gc:/usr/include/gc/gc.h
|
|
Requires: gc = %{version}
|
|
Autoreqprov: on
|
|
|
|
%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.
|
|
|
|
|
|
|
|
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*
|
|
%{_libdir}/lib*.so.*
|
|
|
|
%files devel
|
|
%defattr(-, root, root)
|
|
%doc doc/[a-z]*
|
|
%{_libdir}/lib*.so
|
|
%{_libdir}/lib*a
|
|
%{_includedir}/*
|
|
|
|
%changelog
|
|
* Sat May 26 2007 - ro@suse.de
|
|
- split off devel package
|
|
* 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
|