SHA256
2
0

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
This commit is contained in:
Marcus Meissner 2011-09-23 13:07:42 +00:00 committed by Git OBS Bridge
parent a9e05d0b1b
commit 9dd617cb75
2 changed files with 30 additions and 31 deletions

View File

@ -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 Mon Jun 20 15:08:02 UTC 2011 - pgajdos@novell.com

53
gc.spec
View File

@ -15,27 +15,20 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via http://bugs.opensuse.org/
# #
# norootforbuild
Name: gc Name: gc
Version: 7.1.9.6 Version: 7.1.9.6
Release: 1 Release: 1
%define src_ver 7.2alpha6 %define src_ver 7.2alpha6
AutoReqProv: on
# bug437293
%ifarch ppc64
Obsoletes: boehm-gc-64bit
%endif
#
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
License: BSD 3-Clause 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++ Summary: A garbage collector for C and C++
Source: %{name}-%{src_ver}.tar.bz2 Source: %{name}-%{src_ver}.tar.bz2
Patch0: %{name}-build.patch Patch0: %{name}-build.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: gcc-c++ BuildRequires: gcc-c++ pkg-config
%description %description
The Boehm-Demers-Weiser conservative garbage collector can be used as a 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 automatically recycles memory when it determines that it can no longer
be otherwise accessed. 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
#
%description -n libgc1
Authors: The Boehm-Demers-Weiser conservative garbage collector can be used as a
-------- garbage collecting replacement for C malloc or C++ new. It allows you
Hans-J. Boehm to allocate memory basically as you normally would, without explicitly
Alan J. Demers 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 %package devel
License: BSD 3-Clause
Summary: A garbage collector for C and C++ Summary: A garbage collector for C and C++
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
Provides: gc:/usr/include/gc/gc.h Provides: gc:/usr/include/gc/gc.h
Requires: gc = %{version} glibc-devel Requires: libgc1 = %version, glibc-devel
AutoReqProv: on
%description devel %description devel
The Boehm-Demers-Weiser conservative garbage collector can be used as a 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 automatically recycles memory when it determines that it can no longer
be otherwise accessed. be otherwise accessed.
Authors:
--------
Hans-J. Boehm
Alan J. Demers
%prep %prep
%setup -q -n %{name}-%{src_ver} %setup -q -n %{name}-%{src_ver}
%patch0 -p1 %patch0 -p1
@ -84,7 +78,7 @@ Authors:
autoreconf -fi autoreconf -fi
%{__libtoolize} -f %{__libtoolize} -f
%configure --disable-static --with-pic --enable-cplusplus %configure --disable-static --with-pic --enable-cplusplus
%{__make} %{?jobs:-j%jobs} make %{?_smp_mflags}
%install %install
make DESTDIR=$RPM_BUILD_ROOT install make DESTDIR=$RPM_BUILD_ROOT install
@ -94,14 +88,11 @@ rm -fr $RPM_BUILD_ROOT/usr/share/gc # docs
%check %check
make check make check
%clean %post -n libgc1 -p /sbin/ldconfig
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig %postun -n libgc1 -p /sbin/ldconfig
%postun -p /sbin/ldconfig %files -n libgc1
%files
%defattr(-, root, root) %defattr(-, root, root)
%doc README.QUICK doc/README* %doc README.QUICK doc/README*
%{_libdir}/lib*.so.* %{_libdir}/lib*.so.*