From 9dd617cb75f8c61cbd747d1d86020ed8269c30745f79a1045cfd24d67a1fff3e Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Fri, 23 Sep 2011 13:07:42 +0000 Subject: [PATCH] Accepting request 84521 from home:jengelh:bl-new - Implement shlib packaging (is this acceptable?) - Resolve rpmlint warning "no-pkg-config-provides" - Remove redundant/obsolete tags (cf. specfile guidelines; License field is inherited from (main) subpackage) OBS-URL: https://build.opensuse.org/request/show/84521 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/gc?expand=0&rev=5 --- gc.changes | 8 ++++++++ gc.spec | 53 ++++++++++++++++++++++------------------------------- 2 files changed, 30 insertions(+), 31 deletions(-) diff --git a/gc.changes b/gc.changes index 1fd8d57..2a00860 100644 --- a/gc.changes +++ b/gc.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Thu Sep 22 11:26:47 UTC 2011 - jengelh@medozas.de + +- Implement shlib policy +- Resolve rpmlint warning "no-pkg-config-provides" +- Remove redundant/obsolete tags (cf. specfile guidelines; + License field is inherited from (main) subpackage) + ------------------------------------------------------------------- Mon Jun 20 15:08:02 UTC 2011 - pgajdos@novell.com diff --git a/gc.spec b/gc.spec index 4f3ccc4..45e338d 100644 --- a/gc.spec +++ b/gc.spec @@ -15,27 +15,20 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # -# norootforbuild Name: gc Version: 7.1.9.6 Release: 1 %define src_ver 7.2alpha6 -AutoReqProv: on -# bug437293 -%ifarch ppc64 -Obsoletes: boehm-gc-64bit -%endif -# Group: Development/Libraries/C and C++ License: BSD 3-Clause -Url: http://www.hpl.hp.com/personal/Hans_Boehm/gc/ +URL: http://www.hpl.hp.com/personal/Hans_Boehm/gc/ Summary: A garbage collector for C and C++ Source: %{name}-%{src_ver}.tar.bz2 Patch0: %{name}-build.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: gcc-c++ +BuildRequires: gcc-c++ pkg-config %description The Boehm-Demers-Weiser conservative garbage collector can be used as a @@ -45,20 +38,28 @@ deallocating memory that is no longer useful. The collector automatically recycles memory when it determines that it can no longer be otherwise accessed. +%package -n libgc1 +Summary: A garbage collector for C and C++ +Group: System/Libraries +# bug437293 +%ifarch ppc64 +Obsoletes: boehm-gc-64bit +%endif +# - -Authors: --------- - Hans-J. Boehm - Alan J. Demers +%description -n libgc1 +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. %package devel -License: BSD 3-Clause 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 +Requires: libgc1 = %version, glibc-devel %description devel The Boehm-Demers-Weiser conservative garbage collector can be used as a @@ -68,13 +69,6 @@ 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 -q -n %{name}-%{src_ver} %patch0 -p1 @@ -84,7 +78,7 @@ Authors: autoreconf -fi %{__libtoolize} -f %configure --disable-static --with-pic --enable-cplusplus -%{__make} %{?jobs:-j%jobs} +make %{?_smp_mflags} %install make DESTDIR=$RPM_BUILD_ROOT install @@ -94,14 +88,11 @@ rm -fr $RPM_BUILD_ROOT/usr/share/gc # docs %check make check -%clean -rm -rf $RPM_BUILD_ROOT +%post -n libgc1 -p /sbin/ldconfig -%post -p /sbin/ldconfig +%postun -n libgc1 -p /sbin/ldconfig -%postun -p /sbin/ldconfig - -%files +%files -n libgc1 %defattr(-, root, root) %doc README.QUICK doc/README* %{_libdir}/lib*.so.*