2 # probably doesn't build with libstdc++ < 4.2.0-200612 (<= 4.1.2 should be OK)
3 Summary: C++ standard library
4 Summary(pl): Biblioteki standardowe C++
9 License: distributable (see README.gz)
11 Source0: http://dl.sourceforge.net/stlport/%{name}-%{version}.tar.bz2
12 # Source0-md5: 784be5e0499009aeea6e9ec8f7259c41
13 Patch0: %{name}-endianness.patch
14 Patch1: %{name}-type_promotion.patch
15 Patch2: %{name}-gcc420_dirty_hack.patch
16 URL: http://stlport.sourceforge.net/
17 BuildRequires: libstdc++-devel >= 5:3.3.2
18 BuildRequires: sed >= 4.0
19 %requires_eq libstdc++
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 STLport is a multiplatform implementation of C++ Standard Template
24 Library based on SGI STL. It's used by e.g. OpenOffice.
27 STLport to wieloplatformowa implementacja standardowej biblioteki
28 szablonów (Standard Template Library) C++ oparta na SGI STL. Jest
29 u¿ywana m.in. przez OpenOffice.
32 Summary: STLport heades files, documentation
33 Summary(pl): Pliki nag³ówkowe i dokumentacja do STLport
34 Group: Development/Libraries
35 Requires: %{name} = %{epoch}:%{version}-%{release}
38 Header files and development documentation for STLport.
40 %description devel -l pl
41 Pliki nag³ówkowe i dokumentacja dla STLport.
44 Summary: Static STLport libraries
45 Summary(pl): Biblioteki statyczne do STLport
46 Group: Development/Libraries
47 Requires: %{name}-devel = %{epoch}:%{version}-%{release}
50 Static STLport libraries.
52 %description static -l pl
53 Biblioteki statyczne do STLport.
61 sed -i -e 's/= -O2$/= %{rpmcflags}/' build/Makefiles/gmake/gcc.mak
64 %{__make} -C build/lib -f gcc.mak \
71 rm -rf $RPM_BUILD_ROOT
72 install -d $RPM_BUILD_ROOT%{_includedir}
74 %{__make} -C build/lib -f gcc.mak \
75 install-release-shared \
76 install-release-static \
77 INSTALL_BIN_DIR=$RPM_BUILD_ROOT%{_bindir} \
78 INSTALL_LIB_DIR=$RPM_BUILD_ROOT%{_libdir}
80 cp -a stlport $RPM_BUILD_ROOT%{_includedir}
81 rm -rf $RPM_BUILD_ROOT%{_includedir}/stlport/BC50
84 rm -rf $RPM_BUILD_ROOT
86 %post -p /sbin/ldconfig
87 %postun -p /sbin/ldconfig
90 %defattr(644,root,root,755)
92 %attr(755,root,root) %{_libdir}/*.so.*
95 %defattr(644,root,root,755)
97 %{_includedir}/stlport
98 %attr(755,root,root) %{_libdir}/*.so
101 %defattr(644,root,root,755)