-Summary: C++ standard library
-Summary(pl): Biblioteki standardowe C++
+Summary: Complete C++ standard library
+Summary(pl): Pe³na biblioteka standardowa C++
Name: STLport
-Version: 4.0
-Release: 3
+Version: 4.6
+Release: 0.1
License: distributable (see README.gz)
Group: Libraries
-Group(de): Libraries
-Group(es): Bibliotecas
-Group(fr): Librairies
-Group(pl): Biblioteki
Source0: http://www.stlport.com/archive/%{name}-%{version}.tar.gz
+# Source0-md5: e2308d3b410310168397ad20e8517862
Patch0: %{name}-nodebug.patch
+#Patch1: %{name}-gcc3.patch
+Patch2: %{name}-4.5.3-gcc3stdexcept.patch
+Patch3: %{name}-4.5.3-extra-cxxflags.patch
+Patch4: %{name}-soname.patch
URL: http://www.stlport.org/
-BuildRequires: gcc-c++
+BuildRequires: libstdc++-devel >= 5:3.3.1
+# rationale: the -gcc3.patch
+%requires_eq libstdc++
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
-Implementation of C++ standard library required by OpenOffice.
+STLport is a multiplatform implementation of C++ Standard Template
+Library based on SGI STL. It's used by e.g. OpenOffice.
%description -l pl
-Implementacja standardowej biblioteki C++ wymaganej przez OpenOffice.
+STLport to wieloplatformowa implementacja standardowej biblioteki
+szablonów (Standard Template Library) C++ oparta na SGI STL. Jest
+u¿ywana m.in. przez OpenOffice.
%package devel
Summary: STLport heades files, documentation
Summary(pl): Pliki nag³ówkowe i dokumentacja do STLport
Group: Development/Libraries
-Group(de): Entwicklung/Libraries
-Group(fr): Development/Librairies
-Group(pl): Programowanie/Biblioteki
Requires: %{name} = %{version}
%description devel
Header files and development documentation for STLport.
-%description -l pl devel
+%description devel -l pl
Pliki nag³ówkowe i dokumentacja dla STLport.
%package static
Summary: Static STLport libraries
Summary(pl): Biblioteki statyczne do STLport
Group: Development/Libraries
-Group(de): Entwicklung/Libraries
-Group(fr): Development/Librairies
-Group(pl): Programowanie/Biblioteki
Requires: %{name}-devel = %{version}
%description static
Static STLport libraries.
-%description -l pl static
+%description static -l pl
Biblioteki statyczne do STLport.
%prep
%setup -q
%patch0 -p1
+#%patch1 -p1
+%patch2 -p1
+%patch3 -p1
+%patch4 -p1
%build
cd src
CXXFLAGS="%{rpmcflags}" \
-%{__make} -f gcc.mak
+%{__make} -f gcc.mak
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{%{_includedir},%{_libdir}}
-rm -fr stlport/{BC50,SC5,old_hp,wrap_std}
+rm -fr stlport/{BC50,old_hp,*.orig,*/*.orig,config/new_compiler}
cp -fr stlport $RPM_BUILD_ROOT%{_includedir}
install lib/*.a $RPM_BUILD_ROOT%{_libdir}
-install lib/*.so $RPM_BUILD_ROOT%{_libdir}
+install lib/*.so.* $RPM_BUILD_ROOT%{_libdir}
+ln -sf libstlport_gcc.so.4.6 $RPM_BUILD_ROOT%{_libdir}/libstlport_gcc.so
-gzip -9nf README TODO ChangeLog
+%clean
+rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
-%clean
-rm -rf $RPM_BUILD_ROOT
-
%files
%defattr(644,root,root,755)
+%doc README
+%attr(755,root,root) %{_libdir}/*.so.*.*
%attr(755,root,root) %{_libdir}/*.so
%files devel
%defattr(644,root,root,755)
-%doc doc/* *.gz
+%doc doc/{images,README.gcc.html,[a-z]*.html}
%{_includedir}/stlport
+#%%{_libdir}/*.so
%files static
%defattr(644,root,root,755)