From c818fb2ba0e05e2b182cfae74c340bdca9d8f8e5 Mon Sep 17 00:00:00 2001 From: Jonathan Wakely Date: Aug 30 2015 00:19:59 +0000 Subject: Patched and rebuilt for Boost 1.59 --- diff --git a/0001-Fix-for-Boost-1.59.0-compatibility.patch b/0001-Fix-for-Boost-1.59.0-compatibility.patch new file mode 100644 index 0000000..198d805 --- /dev/null +++ b/0001-Fix-for-Boost-1.59.0-compatibility.patch @@ -0,0 +1,38 @@ +From dfb3407046ce37c1f4516d615c65eca94b680048 Mon Sep 17 00:00:00 2001 +From: Jonathan Wakely +Date: Sun, 30 Aug 2015 01:04:37 +0100 +Subject: [PATCH] Fix for Boost 1.59.0 compatibility. + +Boost.Test has major changes in 1.59.0 including renaming the +XML enumerator to OF_XML. +--- + test/airrac/YieldTestSuite.cpp | 5 +++++ + 1 file changed, 5 insertions(+) + +diff --git a/test/airrac/YieldTestSuite.cpp b/test/airrac/YieldTestSuite.cpp +index a0151e5..d08d35a 100644 +--- a/test/airrac/YieldTestSuite.cpp ++++ b/test/airrac/YieldTestSuite.cpp +@@ -14,6 +14,7 @@ + #define BOOST_TEST_MAIN + #define BOOST_TEST_MODULE YieldTestSuite + #include ++#include + // StdAir + #include + #include +@@ -36,7 +37,11 @@ struct UnitTestConfig { + /** Constructor. */ + UnitTestConfig() { + boost_utf::unit_test_log.set_stream (utfReportStream); ++#if BOOST_VERSION >= 105900 ++ boost_utf::unit_test_log.set_format (boost_utf::OF_XML); ++#else + boost_utf::unit_test_log.set_format (boost_utf::XML); ++#endif + boost_utf::unit_test_log.set_threshold_level (boost_utf::log_test_units); + //boost_utf::unit_test_log.set_threshold_level (boost_utf::log_successful_tests); + } +-- +2.4.3 + diff --git a/airrac.spec b/airrac.spec index 8b51cdc..5c717b1 100644 --- a/airrac.spec +++ b/airrac.spec @@ -3,7 +3,7 @@ # Name: airrac Version: 1.00.1 -Release: 5%{?dist} +Release: 6%{?dist} Summary: C++ Simulated Revenue Accounting (RAC) System Library @@ -11,6 +11,7 @@ Group: System Environment/Libraries License: LGPLv2+ URL: http://sourceforge.net/projects/%{name}/ Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2 +Patch0: 0001-Fix-for-Boost-1.59.0-compatibility.patch BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) BuildRequires: cmake, python-devel @@ -59,6 +60,7 @@ online (http://%{name}.org). %prep %setup -q +%patch0 -p1 %build @@ -114,6 +116,9 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Sun Aug 30 2015 Jonathan Wakely 1.00.1-6 +- Patched and rebuilt for Boost 1.59 + * Sat Aug 29 2015 Denis Arnaud - 1.00.1-5 - Mass rebuild