Summary: Old versions of GNU C++ library
Summary(pl.UTF-8): Stare wersje bibliotek GNU C++
Name: compat-libstdc++
-Version: 3.3
-Release: 4
+Version: 4.6
+Release: 3
License: GPL
Group: Libraries
-#Source0: libstdc++-compat.tar.gz
-Source0: http://pld-nptl.ds14.agh.edu.pl/libstdc++-compat.tar.gz
-# Source0-md5: 98ab37235f8cf0d20251716dabd40690
+Source0: libstdc++-compat-%{version}.tar.bz2
+# Source0-md5: 6fd4b43281ced8c3511a10957b3a3f38
+BuildRequires: /sbin/ldconfig
BuildRequires: rpmbuild(macros) >= 1.213
ExclusiveArch: %{x8664} %{ix86} alpha ppc sparc
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+%define no_install_post_check_so 1
+%define _enable_debug_packages 0
+
%description
This is the GNU implementation of the standard C++ libraries, along
with additional GNU tools. This package includes the compatibility
%package 3.3
Summary: Old version of GNU C++ library - gcc 3.3
Summary(pl.UTF-8): Stara wersja biblioteki GNU C++ - gcc 3.3
-Version: 3.3.5
+Version: 3.3.6
Group: Libraries
Conflicts: compat-libstdc++
Conflicts: libstdc++-compat
+%if "%{pld_release}" == "ac"
+Provides: libstdc++ = 5:3.3.6-10
+Obsoletes: libstdc++ < 5:3.3.6-10
+%endif
%description 3.3
-Old, compatibility version of GNU C++ library - from gcc 3.3.5, needed
+Old, compatibility version of GNU C++ library - from gcc 3.3.6, needed
to run some old C++ applications.
%description 3.3 -l pl.UTF-8
-Stara wersja biblioteki GNU C++ - z gcc 3.3.5, potrzebna dla
+Stara wersja biblioteki GNU C++ - z gcc 3.3.6, potrzebna dla
kompatybilności z niektórymi starymi programami w C++.
+%package 4.6
+Summary: Old version of GNU C++ library - gcc 4.6
+Summary(pl.UTF-8): Stara wersja biblioteki GNU C++ - gcc 4.6
+Version: 4.6.3
+Group: Libraries
+Conflicts: compat-libstdc++
+Conflicts: libstdc++-compat
+Provides: libstdc++ = 6:4.6.3-5
+Obsoletes: libstdc++ < 6:4.6.3-5
+
+%description 4.6
+Old, compatibility version of GNU C++ library - from gcc 4.6.3, needed
+to run some old C++ applications.
+
+%description 4.6 -l pl.UTF-8
+Stara wersja biblioteki GNU C++ - z gcc 4.6.3, potrzebna dla
+kompatybilności z niektórymi starymi programami w C++.
%prep
%setup -q -n libstdc++-compat
%endif
%ifarch %{ix86}
-cp -a i386/* $RPM_BUILD_ROOT%{_libdir}
+cp -a i[34]86/* $RPM_BUILD_ROOT%{_libdir}
%endif
%ifarch ppc
cp -a ppc/* $RPM_BUILD_ROOT%{_libdir}
%endif
+/sbin/ldconfig -n $RPM_BUILD_ROOT%{_libdir}
+
%clean
rm -rf $RPM_BUILD_ROOT
%post 3.3 -p /sbin/ldconfig
%postun 3.3 -p /sbin/ldconfig
+%post 4.6 -p /sbin/ldconfig
+%postun 4.6 -p /sbin/ldconfig
+
%ifarch alpha %{ix86}
%files -n compat-libg++-2.7
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/libg++.so.2.7.2.8
+%attr(755,root,root) %ghost %{_libdir}/libg++.so.2.7.2
%endif
%ifarch alpha %{ix86}
%files 2.7
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/libstdc++.so.2.7.2.8
+%attr(755,root,root) %ghost %{_libdir}/libstdc++.so.2.7.2
%endif
%ifarch alpha %{ix86} ppc sparc
%files 2.8
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/libstdc++.so.2.8.0
+%attr(755,root,root) %ghost %{_libdir}/libstdc++.so.2.8
%ifarch ppc
%attr(755,root,root) %{_libdir}/libstdc++.so.27
%endif
%files 2.9
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/libstdc++-2-libc6.1-1-2.9.0.so
+%attr(755,root,root) %ghost %{_libdir}/libstdc++-libc6.1-1.so.2
%ifarch alpha sparc
%attr(755,root,root) %{_libdir}/libstdc++.so.2.9.0
+%attr(755,root,root) %ghost %{_libdir}/libstdc++.so.2.9
%endif
%ifarch %{ix86}
%attr(755,root,root) %{_libdir}/libstdc++.so.2.9.dummy
+%attr(755,root,root) %ghost %{_libdir}/libstdc++.so.2.9
%endif
%endif
%defattr(644,root,root,755)
%ifarch %{ix86}
%attr(755,root,root) %{_libdir}/libstdc++-3-libc6.2-2-2.10.0.so
-%endif
+%attr(755,root,root) %ghost %{_libdir}/libstdc++-libc6.2-2.so.3
+%endif
%ifarch ppc
%attr(755,root,root) %{_libdir}/libstdc++-3-libc6.1-2-2.10.0.so
-%attr(755,root,root) %{_libdir}/libstdc++-libc6.1-2.so.3
+%attr(755,root,root) %ghost %{_libdir}/libstdc++-libc6.1-2.so.3
%endif
%endif
%defattr(644,root,root,755)
%ifarch alpha
%attr(755,root,root) %{_libdir}/libstdc++.so.3.0.2
+%attr(755,root,root) %ghost %{_libdir}/libstdc++.so.3
%endif
%ifarch %{ix86} sparc
%attr(755,root,root) %{_libdir}/libstdc++.so.3.0.4
+%attr(755,root,root) %ghost %{_libdir}/libstdc++.so.3
%endif
%endif
%files 3.1
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/libstdc++.so.4.0.1
+%attr(755,root,root) %ghost %{_libdir}/libstdc++.so.4
%endif
%ifarch alpha %{x8664} %{ix86} ppc sparc
%files 3.3
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/libstdc++.so.5.0.7
+%attr(755,root,root) %ghost %{_libdir}/libstdc++.so.5
+%endif
+
+%if "%{pld_release}" != "th"
+%ifarch %{x8664} %{ix86}
+%files 4.6
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libstdc++.so.6.0.16
+%attr(755,root,root) %ghost %{_libdir}/libstdc++.so.6
+%endif
%endif