Sophie

Sophie

distrib > Mandriva > 10.0-com > x86_64 > by-pkgid > 6d09d5abb791379473dc1b36b76d5bde > files > 2

libgc-6.2-2mdk.src.rpm

%define	name		libgc
%define	version		6.2
%define release		2mdk
%define	major		1
%define finalname	%mklibname gc %{major}

Summary:		Conservative garbage collector for C
Name:			%name
Version:		%version
Release:		%release
Epoch:			0
URL:			http://www.hpl.hp.com/personal/Hans_Boehm/gc/
License:		BSD
Source0:		%{url}gc_source/gc%{version}.tar.bz2
Group:			System/Libraries
Obsoletes:		%finalname  = %version
Obsoletes:		libgc
Provides:		%finalname = %version
Provides:		libgc
BuildRoot:		%_tmppath/%name-%version-root

%description
Boehm's GC is a garbage collecting storage allocator that is
intended to be used as a plug-in replacement for C's malloc.

%package -n		%finalname
Summary:		Conservative garbage collector for C
Group:          	System/Libraries
Obsoletes:		%finalname  = %version
Obsoletes:		libgc
Provides:		%finalname = %version
Provides:		libgc

%description -n		%finalname
Boehm's GC is a garbage collecting storage allocator that is
intended to be used as a plug-in replacement for C's malloc.

%package -n		%finalname-devel
Summary:		Development files and documentation for Bohem's GC
Group:			Development/C
License: 		BSD
Obsoletes:		%finalname-devel  = %version
Obsoletes:		libgc-devel
Provides:		%finalname-devel = %version
Provides:		libgc-devel
Requires:		%finalname = %version-%release

%description -n		%finalname-devel
Header files and documentation needed to develop programs that use
Bohem's GC 

%package -n		%finalname-static-devel
Summary:		Static libraries for Bohem's GC
Group:			Development/C
License: 		BSD
Obsoletes:		%finalname-static-devel  = %version
Obsoletes:		libgc-static-devel
Provides:		%finalname-static-devel = %version
Provides:		libgc-static-devel
Requires:		%finalname = %version-%release

%description -n		%finalname-static-devel
Static libraries neded to develop programs that use Bohem's GC


%prep

%setup -q -n gc%{version}

%build

LIBS="-ldl" %configure2_5x \
    --enable-threads=pthreads \
    --enable-static \
    --enable-shared

%make

%install
rm -rf %buildroot

%makeinstall_std

install -d %buildroot%_libdir

rm -rf %buildroot%_includedir
install -d %buildroot%_includedir/gc

install -m 644 include/*.h %buildroot%_includedir/gc

rm -rf %buildroot%_datadir

install -D -m 644 doc/gc.man %buildroot%_mandir/man3/gc.3
rm -f doc/gc.man

%clean
rm -rf %buildroot

%post -n %finalname -p /sbin/ldconfig
%postun -n %finalname -p /sbin/ldconfig

%post -n %finalname-devel -p /sbin/ldconfig
%postun -n %finalname-devel -p /sbin/ldconfig

%files -n %finalname
%defattr(-, root, root)
%doc README.QUICK
%_libdir/*.so.*

%files -n %finalname-devel
%defattr(-, root, root)
%doc doc/*
%_libdir/*.la
%_libdir/*.so
%_includedir/gc/*
%_mandir/man?/*

%files -n %finalname-static-devel
%defattr(-, root, root)
%_libdir/*.a

%changelog
* Fri Oct 24 2003 Götz Waschk <waschk@linux-mandrake.com> 6.2-2mdk
- small spec cleanup
- use configure2_5x macro
- fix man page location

* Wed Oct 01 2003 David Walluck <walluck@linux-mandrake.com> 0:6.2-1mdk
- 6.2

* Wed Jul 16 2003 Marcel Pol <mpol@gmx.net> 6.1-3mdk
- rebuild for new rpm provides

* Thu Jan 16 2003 Oden Eriksson <oden.eriksson@kvikkjokk.net> 6.1-2mdk
- build release

* Thu Dec 12 2002 Lenny Cartier <lenny@mandrakesoft.com> 6.1-1mkd
- from Quel Qun <kelk1@hotmail.com> :
	- 6.1 final.

* Thu Sep  5 2002 Oden Eriksson <oden.eriksson@kvikkjokk.net> 6.1-0.alpha5.1mdk
- initial cooker contrib
- used and fixed the provided spec file
- libifiction

* Tue Aug 20 2002 Miguel de Icaza <miguel@ximian.com>
- Moved to alpha 5

* Mon Aug 19 2002 Daniel Resare <noa@resare.com> 6.1-1
- updated to version 6.1
- changed package name to more generic libgc
- Added ldconfig invocation
- Added REAME.QUICK
- Merged devel package
- Removed private headerfiles from devel
- Removed broken manpages
- Removed nonstandard _build and _tmppath definitions (redhat specific
  _build breaks compilation in other dists and if anyone needs to move
  _tmpppath, it is better to do that system-wide in .rpmrc)
- Added URL header
- Changed group to standard one
- Removed i386 exclusivity (At least it seems to work on my ppc box)

* Sun Jun 16 2002 <richard.torkar@htu.se>
- Upgraded to 6.1alpha5
- Mono:: works on Red Hat 7.3 now

* Fri Apr 19 2002  <cvg@baselabs.org>
- Initial build.