X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=STLport.spec;h=b66e7bc69dfdfb1507223a96905935e9b7919022;hb=bce180c2f4ffcd28e3d294a82763ff6910d7fed8;hp=30696b8dd26254955cfd8c9a8c8972f6edb8dd8a;hpb=c54781945fcb4cbf7705d87213c3ed8c080971b9;p=packages%2FSTLport.git diff --git a/STLport.spec b/STLport.spec index 30696b8..b66e7bc 100644 --- a/STLport.spec +++ b/STLport.spec @@ -1,86 +1,96 @@ -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: 1 -Copyright: Propably OpenSource +Version: 4.6 +Release: 0.1 +License: distributable (see README.gz) Group: Libraries -Group(de): Libraries -Group(fr): Librairies -Group(pl): Biblioteki -Source: http://www.stlport.com/archive/%{name}-%{version}.tar.gz +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: 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 reqiured 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 standradowej 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="%{?debug:-O0 -g}%{!?debug:$RPM_OPT_FLAGS}" \ -%{__make} -f gcc.mak +CXXFLAGS="%{rpmcflags}" \ +%{__make} -f gcc.mak %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT{%{_includedir},%{_libdir}} -rm -fr stlport/{BC50,SC5,config,old_hp,stl,using,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} - -%post -p /sbin/ldconfig -%postun -p /sbin/ldconfig +install lib/*.so.* $RPM_BUILD_ROOT%{_libdir} +ln -sf libstlport_gcc.so.4.6 $RPM_BUILD_ROOT%{_libdir}/libstlport_gcc.so %clean rm -rf $RPM_BUILD_ROOT +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + %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/* +%doc doc/{images,README.gcc.html,[a-z]*.html} %{_includedir}/stlport +#%%{_libdir}/*.so %files static %defattr(644,root,root,755)