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}-type_promotion.patch
13 Patch2: %{name}-gcc420_dirty_hack.patch
14 Patch3: %{name}-gcc420.patch
15 URL: http://stlport.sourceforge.net/
16 BuildRequires: libstdc++-devel >= 5:3.3.2
17 BuildRequires: sed >= 4.0
18 %requires_eq libstdc++
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 STLport is a multiplatform implementation of C++ Standard Template
23 Library based on SGI STL. It's used by e.g. OpenOffice.
26 STLport to wieloplatformowa implementacja standardowej biblioteki
27 szablonów (Standard Template Library) C++ oparta na SGI STL. Jest
28 u¿ywana m.in. przez OpenOffice.
31 Summary: STLport heades files, documentation
32 Summary(pl): Pliki nag³ówkowe i dokumentacja do STLport
33 Group: Development/Libraries
34 Requires: %{name} = %{epoch}:%{version}-%{release}
37 Header files and development documentation for STLport.
39 %description devel -l pl
40 Pliki nag³ówkowe i dokumentacja dla STLport.
43 Summary: Static STLport libraries
44 Summary(pl): Biblioteki statyczne do STLport
45 Group: Development/Libraries
46 Requires: %{name}-devel = %{epoch}:%{version}-%{release}
49 Static STLport libraries.
51 %description static -l pl
52 Biblioteki statyczne do STLport.
57 # UPDATE or DROP (needed?)
62 sed -i -e 's/= -O2$/= %{rpmcflags}/' build/Makefiles/gmake/gcc.mak
65 %{__make} -C build/lib -f gcc.mak \
72 rm -rf $RPM_BUILD_ROOT
73 install -d $RPM_BUILD_ROOT%{_includedir}
75 %{__make} -C build/lib -f gcc.mak \
76 install-release-shared \
77 install-release-static \
78 INSTALL_BIN_DIR=$RPM_BUILD_ROOT%{_bindir} \
79 INSTALL_LIB_DIR=$RPM_BUILD_ROOT%{_libdir}
81 cp -a stlport $RPM_BUILD_ROOT%{_includedir}
82 rm -rf $RPM_BUILD_ROOT%{_includedir}/stlport/BC50
85 rm -rf $RPM_BUILD_ROOT
87 %post -p /sbin/ldconfig
88 %postun -p /sbin/ldconfig
91 %defattr(644,root,root,755)
93 %attr(755,root,root) %{_libdir}/libstlport.so.*.*.*
94 # libstlport.so points to this one instead of soname or real lib name
95 # to be fixed if nothing tries to dlopen this one (nothing should!)
96 %attr(755,root,root) %{_libdir}/libstlport.so.?
99 %defattr(644,root,root,755)
101 %attr(755,root,root) %{_libdir}/libstlport.so
102 %{_includedir}/stlport
105 %defattr(644,root,root,755)
106 %{_libdir}/libstlport.a