sl@0: %define MAKEFILE gcc-linux.mak sl@0: sl@0: Summary: Complete C++ standard library sl@0: Name: STLport sl@0: Version: 4.5.1 sl@0: Release: 1 sl@0: Copyright: free (see license), see /usr/share/doc/%{name}-%{version}/license.html sl@0: URL: http://www.stlport.org/ sl@0: Packager: Levente Farkas sl@0: Group: System Environment/Languages sl@0: Icon: stlport_powered_white.gif sl@0: Source0: http://www.stlport.org/archive/%{name}-%{version}.tar.gz sl@0: Patch0: STLport-rename.patch sl@0: #Patch1: STLport-rules.patch sl@0: #Patch2: STLport-install-dir.patch sl@0: Buildroot: %{_tmppath}/%{name}-%{version}-%(id -u -n) sl@0: sl@0: %description sl@0: STLport is a multiplatform STL implementation based on SGI STL. sl@0: This package contains the runtime library for STLport. sl@0: sl@0: %package -n STLport-devel sl@0: Summary: Complete C++ standard library header files and libraries sl@0: Group: Development/Libraries sl@0: Requires: STLport = %{version} sl@0: sl@0: %description -n STLport-devel sl@0: STLport is a multiplatform STL implementation based on SGI STL. Complete sl@0: C++ standard library, including and SGI STL iostreams. If you sl@0: would like to use your code with STLport add sl@0: "-nostdinc++ -I/usr/include/stlport" when compile and -lstlport_gcc when sl@0: link (eg: gcc -nostdinc++ -I/usr/include/stlport x.cc -lstlport_gcc). sl@0: sl@0: %prep sl@0: %setup sl@0: %patch0 -p1 sl@0: #%patch1 -p1 sl@0: #%patch2 -p1 sl@0: sl@0: %build sl@0: cd src sl@0: make -f %{MAKEFILE} INSTALLDIR=$RPM_BUILD_ROOT/usr clean all sl@0: sl@0: %install sl@0: rm -rf $RPM_BUILD_ROOT sl@0: cd src sl@0: make -f %{MAKEFILE} INSTALLDIR=$RPM_BUILD_ROOT/usr install sl@0: cd $RPM_BUILD_ROOT/usr/include/stlport sl@0: ln -s . ext sl@0: sl@0: %clean sl@0: rm -rf $RPM_BUILD_ROOT sl@0: sl@0: %post -p /sbin/ldconfig sl@0: sl@0: %postun -p /sbin/ldconfig sl@0: sl@0: %post -n STLport-devel sl@0: /sbin/ldconfig sl@0: sl@0: %postun -n STLport-devel sl@0: /sbin/ldconfig sl@0: sl@0: %files sl@0: %defattr(-,root,root) sl@0: %doc doc/license.html sl@0: /usr/lib/libstlport_gcc.so sl@0: #/usr/lib/libstlport_gcc.so.%{version} sl@0: /usr/lib/libstlport_gcc.so.4.5 sl@0: sl@0: %files -n STLport-devel sl@0: %defattr(-,root,root) sl@0: %doc INSTALL README doc etc test sl@0: /usr/lib/libstlport_gcc*.a sl@0: /usr/lib/libstlport_gcc_*debug.so* sl@0: /usr/include/* sl@0: sl@0: %changelog sl@0: * Mon Dec 10 2001 Levente Farkas sl@0: - upgrade to 4.5.1 sl@0: sl@0: * Fri Nov 16 2001 Levente Farkas sl@0: - merge with Harold's changes sl@0: sl@0: * Thu Nov 15 2001 sl@0: - rebuild for RedHat 7.2, spec file fixes. sl@0: sl@0: * Tue Oct 2 2001 Levente Farkas sl@0: - upgrade to 4.5 sl@0: sl@0: * Thu Oct 26 2000 Levente Farkas sl@0: - upgrade to 4.1-b3 sl@0: sl@0: * Thu Jul 17 2000 Levente Farkas sl@0: - initial release use STLport-4.0 sl@0: