
i want to package the latest version of boost for the LTIB software package so, to make a long story short, here's the RPM packaging spec file for an older version: =========================== cut here ============================ %define pfx /opt/freescale/rootfs/%{_target_cpu} %define __unzip unzip -a Summary : c++ libraries Name : boost Version : 1.31.0 Release : 1 Vendor : Freescale Packager : Stuart Hughes Group : System Environment/Libraries Source : %{name}_1_31_0.tar.bz2 Patch0 : boost-1.31.0-regex-patch-20040503.zip License : Boost (distributable) BuildRoot : %{_tmppath}/%{name} %Description %{summary} %Prep %setup -n %{name}_1_31_0 cd $RPM_BUILD_DIR/%{name}_1_31_0/boost/regex/v4 %{__unzip} -o $RPM_SOURCE_DIR/boost-1.31.0-regex-patch-20040503.zip %Build %Install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT/%{pfx}/%{_prefix} (cd tools/build/jam_src && ./build.sh) 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=%{_prefix} -sPYTHON_VERSION=$PYTHON_VERSION" $BJAM $PYTHON_FLAGS -sTOOLS=gcc -sBUILD="debug release" --prefix=$RPM_BUILD_ROOT/%{pfx} %{_prefix} install %Clean rm -rf $RPM_BUILD_ROOT %Files %defattr(-,root,root) %{pfx}/* ==================== cut here ================= so, a couple short questions that might save me some time before i dig into the source: 1) does 1.37.0 still require a "regex" patch? apparently, the patch mentioned above was to address some regex issues identified after 1.31.0 was released? i'm ready to assume that anything that significant has been resolved since then. 2) i'm also assuming that JAM is required for that final packaging step so that part of the spec file is still relevant. in other words, other than dropping the regex patch and updating the version number, does the above spec file look about right for 1.37.0? i'm about to give it a try. thanks. rday -- ======================================================================== Robert P. J. Day Linux Consulting, Training and Annoying Kernel Pedantry: Have classroom, will lecture. http://crashcourse.ca Waterloo, Ontario, CANADA ========================================================================