1 # TODO: add SONAME to libstlport_gcc.so*
2 Summary: C++ standard library
3 Summary(pl): Biblioteki standardowe C++
7 License: distributable (see README.gz)
9 Source0: http://www.stlport.com/archive/%{name}-%{version}.tar.gz
10 Patch0: %{name}-nodebug.patch
11 Patch1: %{name}-gcc3.patch
12 Patch2: %{name}-4.5.3-gcc3stdexcept.patch
13 #Patch3: %{name}-4.5.3-nobadlink.patch
14 Patch4: %{name}-4.5.3-extra-cxxflags.patch
15 URL: http://www.stlport.org/
16 BuildRequires: gcc-c++
17 # rationale: the -gcc3.patch
18 %requires_eq libstdc++
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 Implementation of C++ standard library required by OpenOffice.
25 Implementacja standardowej biblioteki C++ wymaganej przez OpenOffice.
28 Summary: STLport heades files, documentation
29 Summary(pl): Pliki nag³ówkowe i dokumentacja do STLport
30 Group: Development/Libraries
31 Requires: %{name} = %{version}
34 Header files and development documentation for STLport.
36 %description devel -l pl
37 Pliki nag³ówkowe i dokumentacja dla STLport.
40 Summary: Static STLport libraries
41 Summary(pl): Biblioteki statyczne do STLport
42 Group: Development/Libraries
43 Requires: %{name}-devel = %{version}
46 Static STLport libraries.
48 %description static -l pl
49 Biblioteki statyczne do STLport.
61 CXXFLAGS="%{rpmcflags}" \
65 rm -rf $RPM_BUILD_ROOT
66 install -d $RPM_BUILD_ROOT{%{_includedir},%{_libdir}}
68 rm -fr stlport/{BC50,old_hp}
69 cp -fr stlport $RPM_BUILD_ROOT%{_includedir}
70 install lib/*.a $RPM_BUILD_ROOT%{_libdir}
71 install lib/*.so.* $RPM_BUILD_ROOT%{_libdir}
72 ln -sf libstlport_gcc.so.4.5 $RPM_BUILD_ROOT%{_libdir}/libstlport_gcc.so
75 rm -rf $RPM_BUILD_ROOT
77 %post -p /sbin/ldconfig
78 %postun -p /sbin/ldconfig
81 %defattr(644,root,root,755)
82 %attr(755,root,root) %{_libdir}/*.so.*.*
83 %attr(755,root,root) %{_libdir}/*.so
86 %defattr(644,root,root,755)
88 %{_includedir}/stlport
92 %defattr(644,root,root,755)