SHA256
2
0
gc/gc.spec

122 lines
3.0 KiB
RPMSpec

#
# spec file for package gc (Version 6.6)
#
# Copyright (c) 2008 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: 96
AutoReqProv: on
Group: Development/Libraries/C and C++
License: BSD 3-Clause
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} glibc-devel
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-cplusplus
make
%install
make DESTDIR=$RPM_BUILD_ROOT install
rm -fr $RPM_BUILD_ROOT/usr/share/gc # docs
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%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
* Mon Feb 25 2008 crrodriguez@suse.de
- fix library-without-ldconfig-postin errors
* Wed Nov 21 2007 uli@suse.de
- implicit malloc() redirection breaks some apps (bug #335123)
* Sun May 27 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