1 Summary: C++ standard library
2 Summary(pl): Biblioteki standardowe C++
7 License: distributable (see README.gz)
9 Source0: http://dl.sourceforge.net/stlport/%{name}-%{version}.tar.bz2
10 # Source0-md5: dcf079313e7e0d7870307b74b658bb81
11 Patch0: %{name}-endianness.patch
12 Patch1: %{name}-gcc420_dirty_hack.patch
13 Patch2: %{name}-gcc420.patch
14 URL: http://stlport.sourceforge.net/
15 BuildRequires: libstdc++-devel >= 5:3.3.2
16 BuildRequires: sed >= 4.0
17 %requires_eq libstdc++
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 STLport is a multiplatform implementation of C++ Standard Template
22 Library based on SGI STL. It's used by e.g. OpenOffice.
25 STLport to wieloplatformowa implementacja standardowej biblioteki
26 szablonów (Standard Template Library) C++ oparta na SGI STL. Jest
27 u¿ywana m.in. przez OpenOffice.
30 Summary: STLport heades files, documentation
31 Summary(pl): Pliki nag³ówkowe i dokumentacja do STLport
32 Group: Development/Libraries
33 Requires: %{name} = %{epoch}:%{version}-%{release}
36 Header files and development documentation for STLport.
38 %description devel -l pl
39 Pliki nag³ówkowe i dokumentacja dla STLport.
42 Summary: Static STLport libraries
43 Summary(pl): Biblioteki statyczne do STLport
44 Group: Development/Libraries
45 Requires: %{name}-devel = %{epoch}:%{version}-%{release}
48 Static STLport libraries.
50 %description static -l pl
51 Biblioteki statyczne do STLport.
59 sed -i -e 's/= -O2$/= %{rpmcflags}/' build/Makefiles/gmake/gcc.mak
62 %{__make} -C build/lib -f gcc.mak \
69 rm -rf $RPM_BUILD_ROOT
70 install -d $RPM_BUILD_ROOT%{_includedir}
72 %{__make} -C build/lib -f gcc.mak \
73 install-release-shared \
74 install-release-static \
75 INSTALL_BIN_DIR=$RPM_BUILD_ROOT%{_bindir} \
76 INSTALL_LIB_DIR=$RPM_BUILD_ROOT%{_libdir}
78 cp -a stlport $RPM_BUILD_ROOT%{_includedir}
79 rm -rf $RPM_BUILD_ROOT%{_includedir}/stlport/BC50
82 rm -rf $RPM_BUILD_ROOT
84 %post -p /sbin/ldconfig
85 %postun -p /sbin/ldconfig
88 %defattr(644,root,root,755)
90 %attr(755,root,root) %{_libdir}/libstlport.so.*.*.*
91 # libstlport.so points to this one instead of soname or real lib name
92 # to be fixed if nothing tries to dlopen this one (nothing should!)
93 %attr(755,root,root) %{_libdir}/libstlport.so.?
96 %defattr(644,root,root,755)
98 %attr(755,root,root) %{_libdir}/libstlport.so
99 %{_includedir}/stlport
102 %defattr(644,root,root,755)
103 %{_libdir}/libstlport.a