File compat.spec of Package compat
#
# spec file for package compat (Version 2010.1.31)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: compat
License: BSD-3-Clause ; Zlib
Group: System/Libraries
Provides: libgpp27
AutoReqProv: on
Version: 2010.1.31
Release: 1
Summary: Libraries from Compatibility Versions
Source: libstdc++.tar.bz2
Source2: libgcc2953.tar.bz2
Source3: baselibs.conf
# dummy, unused, included for reference
Source13: gcc-2.95.2-91.src.rpm
Source14: gcc-2.95.3-234.src.rpm
BuildRoot: %{_tmppath}/%{name}-%{version}-build
ExclusiveArch: %ix86 ia64 ppc s390 s390x
%description
Contains old libraries possibly needed for programs not part of SUSE.
%prep
%setup -c -n compat -T -a0 -a2
%build
%install
%ifarch %ix86
MY_CPU=i386
%else
MY_CPU=%{_target_cpu}
%endif
mkdir -p $RPM_BUILD_ROOT/%_libdir
for i in * ; do
if [ -d $i/$MY_CPU ]; then
cp -pr $i/$MY_CPU/* $RPM_BUILD_ROOT/%_libdir
fi
for f in $(find $RPM_BUILD_ROOT/%_libdir -type f -name '*.so*'); do
chmod 755 $f
strip -p --strip-unneeded $f
done
done
/sbin/ldconfig -n $RPM_BUILD_ROOT/%_libdir
%clean
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%_libdir/lib*
%ifarch %ix86
%dir %_libdir/gcc
%dir %_libdir/gcc/i586-suse-linux
%dir %_libdir/gcc/i586-suse-linux/2.95.3/
%_libdir/gcc/i586-suse-linux/2.95.3/*
%endif
%changelog