%define tarball_name boost_1_33_1 Name: boost Summary: The Boost C++ Libraries Version: 1.33.1 Release: 1 License: Boost Software License URL: http://www.boost.org/ Group: System Environment/Libraries Source: %{tarball_name}.tar.bz2 Patch0: boost-base.patch Patch1: boost-wave.patch Patch2: boost-mt.patch Patch3: boost-ublas.patch BuildRoot: %{_tmppath}/boost-%{version}-root Prereq: /sbin/ldconfig BuildRequires: libstdc++-devel python Obsoletes: boost-doc <= 1.30.2 Obsoletes: boost-python <= 1.30.2 %description Boost provides free peer-reviewed portable C++ source libraries. The emphasis is on libraries which work well with the C++ Standard Library. One goal is to establish "existing practice" and provide reference implementations so that the Boost libraries are suitable for eventual standardization. (Some of the libraries have already been proposed for inclusion in the C++ Standards Committee's upcoming C++ Standard Library Technical Report.) %package devel Summary: The Boost C++ Headers Group: System Environment/Libraries Requires: boost = %{version}-%{release} Obsoletes: boost-python-devel <= 1.30.2 Provides: boost-python-devel = %{version}-%{release} %description devel Headers for the Boost C++ libraries %package doc Summary: The Boost C++ docs Group: System Environment/Libraries Requires: boost = %{version}-%{release} #Obsoletes: boost-python-devel <= 1.30.2 Provides: boost-python-docs = %{version}-%{release} %description doc HTML doc files for Boost C++ libraries %prep rm -rf $RPM_BUILD_ROOT %setup -n %{tarball_name} -q %patch0 -p0 %patch1 -p1 %patch2 -p0 %patch3 -p0 %build #check for icu if icu-config --ldflags ; then export ICU_PATH=/usr ICU_LINK=\"$(icu-config --ldflags | sed 's/-lpthread//g')\"; fi #build bjam (cd tools/build/jam_src && ./build.sh) #build boost with bjam BJAM=`find tools/build/jam_src/ -name bjam -a -type f` PYTHON_VERSION=`python -V 2>&1 |sed 's,.* \([0-9]\.[0-9]\)\(\.[0-9]\)\?.*,\1,'` PYTHON_FLAGS="-sPYTHON_ROOT=/usr -sPYTHON_VERSION=$PYTHON_VERSION" #$BJAM $PYTHON_FLAGS "-sTOOLS=gcc" "-sBUILD=release 1" stage #ICU_PATH=/usr ICU_LINK="-licuuc -licui18n" $BJAM $PYTHON_FLAGS "-sTOOLS=gcc" "-sBUILD=release 1" stage #ICU_PATH=/usr ICU_LINK="-licuuc -licui18n" $BJAM $PYTHON_FLAGS "-sTOOLS=gcc" "-sBUILD=release" -d2 stage #ICU_PATH=/usr ICU_LINK="-licuuc -licui18n" $BJAM $PYTHON_FLAGS "-sTOOLS=gcc" -d2 --no-objcopy stage $BJAM $PYTHON_FLAGS "-sTOOLS=gcc" -d2 --no-objcopy stage %install mkdir -p $RPM_BUILD_ROOT%{_libdir} mkdir -p $RPM_BUILD_ROOT%{_includedir} # install lib for i in `find stage -type f -name \*.a`; do NAME=`basename $i`; install -m 755 $i $RPM_BUILD_ROOT%{_libdir}/$NAME; done; for i in `find stage -type f -name \*.so.*`; do NAME=`basename $i`; install -m 755 $i $RPM_BUILD_ROOT%{_libdir}/$NAME; done; for i in `find stage -type l -name \*.so`; do NAME=`basename $i`; mv $i $RPM_BUILD_ROOT%{_libdir}/$NAME; done; # install include files for i in `find boost -type d`; do mkdir -p $RPM_BUILD_ROOT%{_includedir}/$i done #for i in `find boost -type f`; do # install -m 644 $i $RPM_BUILD_ROOT%{_includedir}/$i #done find boost | cpio -p --make-directories $RPM_BUILD_ROOT/%{_includedir} find $RPM_BUILD_ROOT/%{_includedir} -type d | xargs chmod 755 find $RPM_BUILD_ROOT/%{_includedir} -type f | xargs chmod 644 # doc mkdir -p $RPM_BUILD_ROOT/usr/share/doc/boost-%{version} #cp -a doc/html $RPM_BUILD_ROOT/%{_docdir}/boost-%{version} find . -name '*.html' -o -name '*.css' -o -name '*.htm' | cpio -p --make-directories $RPM_BUILD_ROOT/%{_docdir}/boost-%{version} find $RPM_BUILD_ROOT/%{_docdir}/boost-%{version} -type d | xargs chmod 755 find $RPM_BUILD_ROOT/%{_docdir}/boost-%{version} -type f | xargs chmod 644 # make lists find ${RPM_BUILD_ROOT}/%{_libdir} -not -type d -and -not -name '*-d*' -and -name '*.so*' | sed -n -e "s#^$RPM_BUILD_ROOT/##p" > notdevelfiles find ${RPM_BUILD_ROOT}/%{_libdir} -not -type d -and \( -name '*-d*' -or -not -name '*.so*' \) | sed -n -e "s#^$RPM_BUILD_ROOT/##p" > develfiles find ${RPM_BUILD_ROOT}/%{_includedir}/boost -not -type d | sed -n -e "s#^$RPM_BUILD_ROOT/##p" >> develfiles %clean rm -rf $RPM_BUILD_ROOT %post /sbin/ldconfig %postun /sbin/ldconfig %files -f notdevelfiles %defattr(-, root, root) #%{_libdir}/*.so.%{version} %files devel -f develfiles #%files devel %defattr(-, root, root) #%{_includedir}/boost #%{_libdir}/*.a #%{_libdir}/*.so %files doc %defattr(-, root, root) %{_docdir}/boost-%{version} %changelog * Thu Nov 10 2005 nbecker - 1.33.1-1 - 1.33.1-beta1 * Thu Aug 18 2005 Neal Becker - 1.33.0-10 - Add ublas patch * Sat Aug 13 2005 Neal Becker - 1.33.0-8 - Install all html docs * Fri Aug 12 2005 nbecker - 1.33.0-6 - Use 1.33 - Build single/multi thread debug/release - Add icu support - Don't mess with soname - Add --no-objcopy. Don't think we need it, do we? - Add doc package - Build shared version of wave. NOT FULLY TESTED. * Tue May 24 2005 Benjamin Kosnik 1.32.0-6 - (#153093: boost warns that gcc 4.0.0 is an unknown compiler) - (#152205: development .so symlinks should be in -devel subpackage) - (#154783: linker .so symlinks missing from boost-devel package) * Fri Mar 18 2005 Benjamin Kosnik 1.32.0-5 - Revert boost-base.patch to old behavior. - Use SONAMEVERSION instead of dllversion. * Wed Mar 16 2005 Benjamin Kosnik 1.32.0-4 - (#142612: Compiling Boost 1.32.0 Failed in RHEL 3.0 on Itanium2) - (#150069: libboost_python.so is missing) - (#141617: bad patch boost-base.patch) - (#122817: libboost_*.so symlinks missing) - Re-add boost-thread.patch. - Change boost-base.patch to show thread tags. - Change boost-gcc-tools.patch to use SOTAG, compile with dllversion. - Add symbolic links to files. - Sanity check can compile with gcc-3.3.x, gcc-3.4.2, gcc-4.0.x., gcc-4.1.x. * Thu Dec 02 2004 Benjamin Kosnik 1.32.0-3 - (#122817: libboost_*.so symlinks missing) - (#141574: half of the package is missing) - (#141617: bad patch boost-base.patch) * Wed Dec 01 2004 Benjamin Kosnik 1.32.0-2 - Remove bogus Obsoletes. * Mon Nov 29 2004 Benjamin Kosnik 1.32.0-1 - Update to 1.32.0 * Wed Sep 22 2004 Than Ngo 1.31.0-9 - cleanup specfile - fix multiarch problem * Tue Jun 15 2004 Elliot Lee - rebuilt * Wed May 05 2004 Warren Togami 1.31.0-7 - missing Obsoletes boost-python * Mon May 03 2004 Benjamin Kosnik - (#121630: gcc34 patch needed) * Wed Apr 21 2004 Warren Togami - #121415 FC2 BLOCKER: Obsoletes boost-python-devel, boost-doc - other cleanups * Tue Mar 30 2004 Benjamin Kosnik - Remove bjam dependency. (via Graydon). - Fix installed library names. - Fix SONAMEs in shared libraries. - Fix installed header location. - Fix installed permissions. * Fri Feb 13 2004 Elliot Lee - rebuilt * Mon Feb 09 2004 Benjamin Kosnik 1.31.0-2 - Update to boost-1.31.0 * Thu Jan 22 2004 Benjamin Kosnik 1.31.0-1 - Update to boost-1.31.0.rc2 - (#109307: Compile Failure with boost libraries) - (#104831: Compile errors in apps using Boost.Python...) - Unify into boost, boost-devel rpms. - Simplify installation using bjam and prefix install. * Tue Sep 09 2003 Nalin Dahyabhai 1.30.2-2 - require boost-devel instead of devel in subpackages which require boost-devel - remove stray Prefix: tag * Mon Sep 08 2003 Benjamin Kosnik 1.30.2-1 - change license to Freely distributable - verify installation of libboost_thread - more boost-devel removals - deal with lack of _REENTRANT on ia64/s390 - (#99458) rpm -e fixed via explict dir additions - (#103293) update to 1.30.2 * Wed Jun 04 2003 Elliot Lee - rebuilt * Tue May 13 2003 Florian La Roche - remove packager, change to new Group: * Tue May 06 2003 Tim Powers 1.30.0-3 - add deffattr's so we don't have unknown users owning files