1%define MAKEFILE gcc-linux.mak 2 3Summary: Complete C++ standard library 4Name: STLport 5Version: 4.5.3 6Release: 1 7Copyright: free (see license), see /usr/share/doc/%{name}-%{version}/license.html 8URL: http://www.stlport.org/ 9Packager: Levente Farkas <lfarkas@mindmaker.hu> 10Group: System Environment/Languages 11Icon: stlport_powered_white.gif 12Source0: http://www.stlport.org/archive/%{name}-%{version}.tar.gz 13#Patch0: STLport-rename.patch 14#Patch1: STLport-rules.patch 15#Patch2: STLport-install-dir.patch 16Buildroot: %{_tmppath}/%{name}-%{version}-%(id -u -n) 17 18%description 19STLport is a multiplatform STL implementation based on SGI STL. 20This package contains the runtime library for STLport. 21 22%package -n STLport-devel 23Summary: Complete C++ standard library header files and libraries 24Group: Development/Libraries 25Requires: STLport = %{version} 26 27%description -n STLport-devel 28STLport is a multiplatform STL implementation based on SGI STL. Complete 29C++ standard library, including <complex> and SGI STL iostreams. If you 30would like to use your code with STLport add 31"-nostdinc++ -I/usr/include/stlport" when compile and -lstlport_gcc when 32link (eg: gcc -nostdinc++ -I/usr/include/stlport x.cc -lstlport_gcc). 33 34%prep 35%setup 36%patch0 -p1 37#%patch1 -p1 38#%patch2 -p1 39 40%build 41cd src 42make -f %{MAKEFILE} INSTALLDIR=$RPM_BUILD_ROOT/usr clean all 43 44%install 45rm -rf $RPM_BUILD_ROOT 46cd src 47make -f %{MAKEFILE} INSTALLDIR=$RPM_BUILD_ROOT/usr install 48cd $RPM_BUILD_ROOT/usr/include/stlport 49ln -s . ext 50 51%clean 52rm -rf $RPM_BUILD_ROOT 53 54%post -p /sbin/ldconfig 55 56%postun -p /sbin/ldconfig 57 58%post -n STLport-devel 59/sbin/ldconfig 60 61%postun -n STLport-devel 62/sbin/ldconfig 63 64%files 65%defattr(-,root,root) 66%doc doc/license.html 67/usr/lib/libstlport_gcc.so 68#/usr/lib/libstlport_gcc.so.%{version} 69/usr/lib/libstlport_gcc.so.4.5 70 71%files -n STLport-devel 72%defattr(-,root,root) 73%doc INSTALL README doc etc test 74/usr/lib/libstlport_gcc*.a 75/usr/lib/libstlport_gcc_*debug.so* 76/usr/include/* 77 78%changelog 79* Mon Dec 10 2001 Levente Farkas <lfarkas@mindmaker.hu> 80- upgrade to 4.5.1 81 82* Fri Nov 16 2001 Levente Farkas <lfarkas@mindmaker.hu> 83- merge with Harold's changes 84 85* Thu Nov 15 2001 <stlport@lanceerplaats.nl> 86- rebuild for RedHat 7.2, spec file fixes. 87 88* Tue Oct 2 2001 Levente Farkas <lfarkas@mindmaker.hu> 89- upgrade to 4.5 90 91* Thu Oct 26 2000 Levente Farkas <lfarkas@mindmaker.hu> 92- upgrade to 4.1-b3 93 94* Thu Jul 17 2000 Levente Farkas <lfarkas@mindmaker.hu> 95- initial release use STLport-4.0 96 97