|
@@ -1,6 +1,6 @@
|
|
Name: STLport
|
|
Name: STLport
|
|
-Version: 5.1.5
|
|
|
|
-Release: 2%{?_dist_release}
|
|
|
|
|
|
+Version: 5.2.1
|
|
|
|
+Release: 1%{?_dist_release}
|
|
Summary: C++ STL library compatible with the latest ANSI/ISO C++ specification
|
|
Summary: C++ STL library compatible with the latest ANSI/ISO C++ specification
|
|
Summary(ja): ANSI/ISO C++ 仕様に沿った C++ 標準テンプレートライブラリ
|
|
Summary(ja): ANSI/ISO C++ 仕様に沿った C++ 標準テンプレートライブラリ
|
|
Group: System Environment/Libraries
|
|
Group: System Environment/Libraries
|
|
@@ -32,61 +32,62 @@ Documentarion and headers for STLport
|
|
%prep
|
|
%prep
|
|
%setup -q
|
|
%setup -q
|
|
|
|
|
|
|
|
+
|
|
%build
|
|
%build
|
|
-#cd src
|
|
|
|
-#make -f gcc.mak INSTALLDIR=$RPM_BUILD_ROOT%{_prefix} clean all
|
|
|
|
|
|
+./configure \
|
|
|
|
+ --prefix=%{_prefix} \
|
|
|
|
+ --bindir=%{_bindir} \
|
|
|
|
+ --libdir=%{_libdir} \
|
|
|
|
+ --includedir=%{_includedir} \
|
|
|
|
+ --use-compiler-family=gcc \
|
|
|
|
+ --enable-static \
|
|
|
|
+ ;
|
|
|
|
+
|
|
pushd build/lib
|
|
pushd build/lib
|
|
-export OPT="${RPM_OPT_FLAGS} -fPIC"
|
|
|
|
-make %{?_smp_mflags} -f gcc.mak all
|
|
|
|
|
|
+export OPT="${RPM_OPT_FLAGS}"
|
|
|
|
+make clean all %{?_smp_mflags}
|
|
popd
|
|
popd
|
|
|
|
|
|
-%install
|
|
|
|
-rm -rf %{buildroot}
|
|
|
|
-#cd src
|
|
|
|
-#make -f gcc.mak INSTALLDIR=$RPM_BUILD_ROOT%{_prefix} install
|
|
|
|
-#cd $RPM_BUILD_ROOT/usr/include/stlport
|
|
|
|
-#ln -s . ext
|
|
|
|
|
|
|
|
-pushd build/lib
|
|
|
|
-make -f gcc.mak install
|
|
|
|
-make -f gcc.mak \
|
|
|
|
- install-release-static \
|
|
|
|
- install-dbg-static \
|
|
|
|
- install-stldbg-static
|
|
|
|
-popd
|
|
|
|
|
|
+%check
|
|
|
|
+make check
|
|
|
|
|
|
-echo "Installing libs"
|
|
|
|
-install -d $RPM_BUILD_ROOT%{_libdir}
|
|
|
|
-#install -m0755 lib/* $RPM_BUILD_ROOT%{_libdir}
|
|
|
|
-cp -a lib/* $RPM_BUILD_ROOT%{_libdir}
|
|
|
|
|
|
|
|
-echo "Installing includes"
|
|
|
|
-install -d $RPM_BUILD_ROOT%{_includedir}/stlport
|
|
|
|
-cp -a stlport $RPM_BUILD_ROOT%{_includedir}/stlport
|
|
|
|
|
|
+%install
|
|
|
|
+rm -rf $RPM_BUILD_ROOT
|
|
|
|
+make DESTDIR=$RPM_BUILD_ROOT install
|
|
|
|
|
|
|
|
+# fix library path
|
|
|
|
+mv $RPM_BUILD_ROOT$RPM_BUILD_ROOT%{_prefix}/lib/* $RPM_BUILD_ROOT%{_libdir}/
|
|
|
|
+rm -rf $RPM_BUILD_ROOT/home
|
|
|
|
|
|
-%post -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
+%post -p /sbin/ldconfig
|
|
%postun -p /sbin/ldconfig
|
|
%postun -p /sbin/ldconfig
|
|
-
|
|
|
|
|
|
+%post devel -p /sbin/ldconfig
|
|
|
|
+%postun devel -p /sbin/ldconfig
|
|
%clean
|
|
%clean
|
|
rm -rf %{buildroot}
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
+
|
|
%files
|
|
%files
|
|
%defattr(-,root,root)
|
|
%defattr(-,root,root)
|
|
-%doc INSTALL README
|
|
|
|
-%defattr(0644,root,root,0755)
|
|
|
|
-%{_libdir}/*.so.*
|
|
|
|
|
|
+%doc INSTALL INSTALL.unixes README doc etc
|
|
|
|
+%{_libdir}/libstlport.so.*
|
|
|
|
+%{_libdir}/libstlportg.so.*
|
|
|
|
+%{_libdir}/libstlportstlg.so.*
|
|
|
|
|
|
%files devel
|
|
%files devel
|
|
-%defattr(0644,root,root,0755)
|
|
|
|
-%doc doc/*
|
|
|
|
|
|
+%defattr(-,root,root)
|
|
%{_includedir}/stlport
|
|
%{_includedir}/stlport
|
|
-%{_libdir}/*.a
|
|
|
|
-%{_libdir}/*.so
|
|
|
|
|
|
+%{_libdir}/libstlport*.a
|
|
|
|
+%{_libdir}/libstlport*.so
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Tue Dec 14 2010 Shu KONNO <owa@bg.wakwak.com> 5.2.1-1
|
|
|
|
+- updated STLport to 5.2.1
|
|
|
|
+
|
|
* Sun Oct 12 2008 Shu KONNO <owa@bg.wakwak.com> 5.1.5-2vl5
|
|
* Sun Oct 12 2008 Shu KONNO <owa@bg.wakwak.com> 5.1.5-2vl5
|
|
- fixed copy option for symlink at %%install
|
|
- fixed copy option for symlink at %%install
|
|
|
|
|