]> git.pld-linux.org Git - packages/STLport.git/blobdiff - STLport.spec
- now it works with minor == 0 too (e.g. gcc-4.0.x).
[packages/STLport.git] / STLport.spec
index 9c3d49bff76495691a68f3d27b82be92b8e9dae2..2a0f3ad542e0653d8f33426ac706605c054354d9 100644 (file)
@@ -1,91 +1,91 @@
 Summary:       C++ standard library
-Summary(pl):   Biblioteki standardowe C++ 
+Summary(pl):   Biblioteki standardowe C++
 Name:          STLport
-Version:       4.5.1
-Release:       1
+Version:       4.6.2
+Release:       3
+Epoch:         2
 License:       distributable (see README.gz)
 Group:         Libraries
-Group(de):     Libraries
-Group(es):     Bibliotecas
-Group(fr):     Librairies
-Group(pl):     Biblioteki
 Source0:       http://www.stlport.com/archive/%{name}-%{version}.tar.gz
+# Source0-md5: 4c01c84f1212369ceb369567ed06d1a2
 Patch0:                %{name}-nodebug.patch
+Patch1:                %{name}-soname.patch
+Patch2:                %{name}-gcc34.patch
+Patch3:                %{name}-4.5.3-gcc3stdexcept.patch
+Patch4:                %{name}-4.5.3-extra-cxxflags.patch
 URL:           http://www.stlport.org/
-BuildRequires: gcc-c++
+BuildRequires: libstdc++-devel >= 5:3.3.2
+%requires_eq   libstdc++
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-Implementation of C++ standard library required 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 standardowej 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}
+Requires:      %{name} = %{epoch}:%{version}-%{release}
 
 %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}
+Requires:      %{name}-devel = %{epoch}:%{version}-%{release}
 
 %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="%{rpmcflags}" \
-%{__make} -f gcc.mak 
+%{__make} -C src -f gcc.mak
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_includedir},%{_libdir}}
 
-rm -fr stlport/{BC50,old_hp}
-cp -fr stlport $RPM_BUILD_ROOT%{_includedir}
-install lib/*.a $RPM_BUILD_ROOT%{_libdir}
-install lib/*.so* $RPM_BUILD_ROOT%{_libdir}
-
-gzip -9nf README
-
-%post   -p /sbin/ldconfig
-%postun -p /sbin/ldconfig
+%{__make} -C src -f gcc.mak install \
+       INSTALLDIR=$RPM_BUILD_ROOT%{_prefix} \
+       INSTALLDIR_LIB=$RPM_BUILD_ROOT%{_libdir}
 
 %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/* *.gz
+%doc doc/{images,README.gcc.html,[a-z]*.html}
 %{_includedir}/stlport
-%{_libdir}/*.so
 
 %files static
 %defattr(644,root,root,755)
This page took 0.074452 seconds and 4 git commands to generate.