diff --git a/.gitignore b/.gitignore index 08f1678..e16a1b2 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,6 @@ -boost-*.tar.* +boost*.tar.* boost-*.src.rpm -boost-cmake-soname.patch +cmakeify_boost_1440.patch clog .build* diff --git a/boost.spec b/boost.spec index 946d97a..aaaba16 100644 --- a/boost.spec +++ b/boost.spec @@ -22,17 +22,20 @@ Name: boost Summary: The free peer-reviewed portable C++ source libraries Version: 1.44.0 -Release: 0.5%{?dist} +%define pristine_version 1_44_0 +Release: 1%{?dist} License: Boost -# Temporarily get the source from a clone repository of the upstream maintainer, -# until that latter fixes the compilation bug. A merge request has been made: -# http://gitorious.org/~zeuner/boost/zeuners-boost-cmake/merge_requests/1 -#URL: http://gitorious.org/boost/zeuners-boost-cmake/archive-tarball/%{version} -URL: http://gitorious.org/boost/denisarnauds-zeuners-boost-cmake/archive-tarball/%{version} +# The CMake build framework (set of CMakeLists.txt and module.cmake files) is +# added on top of the official Boost release (http://www.boost.org), thanks to +# a dedicated patch. That CMake framework (and patch) is hosted and maintained +# on Gitorious, for now in the following Git repository: +# http://gitorious.org/boost/denisarnauds-zeuners-boost-cmake +%define full_pristine_version %{name}_%{pristine_version} +%define full_cmake_version %{name}-%{version}.cmake +URL: http://www.boost.org Group: System Environment/Libraries -%define full_version %{name}-%{version}.cmake -Source: %{url}/%{full_version}.tar.bz2 +Source: http://downloads.sourceforge.net/%{name}/%{full_pristine_version}.tar.bz2 # From the version 13 of Fedora, the Boost libraries are delivered # with sonames equal to the Boost version (e.g., 1.41.0). On older @@ -74,7 +77,8 @@ BuildRequires: python-devel BuildRequires: libicu-devel BuildRequires: chrpath -Patch0: boost-cmake-soname.patch +Patch0: cmakeify_boost_1440.patch +#Patch1: boost-cmake-soname.patch %bcond_with tests %bcond_with docs_generated @@ -362,9 +366,10 @@ backend to do the parallel work. %prep -%setup -q -n %{full_version} +%setup -q -n %{full_pristine_version} -sed 's/_FEDORA_SONAME/%{sonamever}/' %{PATCH0} | %{__patch} -p0 --fuzz=0 +# CMake framework (CMakeLists.txt, *.cmake and documentation files) +%patch0 -p1 %build # Support for building tests. @@ -440,14 +445,14 @@ if [ -f testing.log ]; then else echo "error with results" fi -cd %{_builddir}/%{full_version} +cd %{_builddir}/%{full_pristine_version} %endif %install %{__rm} -rf $RPM_BUILD_ROOT -cd %{_builddir}/%{full_version}/ +cd %{_builddir}/%{full_pristine_version}/ %if %{with openmpi} %{_openmpi_load} @@ -501,7 +506,7 @@ find $RPM_BUILD_ROOT/%{_libdir} -name '*.cmake' -exec %{__rm} -f {} \; %{__rm} -rf %{boost_docdir} && %{__mkdir_p} %{boost_docdir}/html # Install documentation files (HTML pages) within the temporary place -cd %{_builddir}/%{full_version} +cd %{_builddir}/%{full_pristine_version} DOCPATH=%{boost_docdir} find libs doc more -type f \( -name \*.htm -o -name \*.html \) \ | sed -n '/\//{s,/[^/]*$,,;p}' \ @@ -737,6 +742,13 @@ find $RPM_BUILD_ROOT%{_includedir}/ \( -name '*.pl' -o -name '*.sh' \) -exec %{_ %endif %changelog +* Sat Aug 21 2010 Denis Arnaud - 1.44.0-1 +- Split the CMake-buildable tar-ball into pristine upstream tar-ball + and CMake framework patch + +* Fri Aug 16 2010 Denis Arnaud - 1.44.0-0.6 +- Merged the latest changes from the now final release of Boost-1.44 + * Fri Aug 6 2010 Denis Arnaud - 1.44.0-0.5 - Patched header file in boost/random/detail. Resolves: #621631 diff --git a/sources b/sources index 01f7f14..d5bb0a7 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -6c99cb8684788c4e0ce1411070f8928d boost-1.44.0.cmake.tar.bz2 -ffcd0af9e29a53107a73e7f2ccc715cc boost-cmake-soname.patch +f02578f5218f217a9f20e9c30e119c6a boost_1_44_0.tar.bz2 +ecfd517994a464060f2bc015e5b4d194 cmakeify_boost_1440.patch