From 03f610e4d7b9e94e369ac67096b378e3ab76dd35 Mon Sep 17 00:00:00 2001 From: David Tardon Date: Sun, 30 Aug 2015 11:23:27 +0200 Subject: [PATCH] drop dependency on boost --- 0001-add-missing-include.patch | 24 ++++++++++++++++++++++++ libwps.spec | 6 ++++-- 2 files changed, 28 insertions(+), 2 deletions(-) create mode 100644 0001-add-missing-include.patch diff --git a/0001-add-missing-include.patch b/0001-add-missing-include.patch new file mode 100644 index 0000000..842bcf5 --- /dev/null +++ b/0001-add-missing-include.patch @@ -0,0 +1,24 @@ +From bc6f0f3a006123a89d1321038edeb75f2fd67c6f Mon Sep 17 00:00:00 2001 +From: David Tardon +Date: Sun, 30 Aug 2015 11:21:29 +0200 +Subject: [PATCH] add missing include + +--- + src/lib/WPS8.cpp | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/lib/WPS8.cpp b/src/lib/WPS8.cpp +index 04c1e57..8d39fa8 100644 +--- a/src/lib/WPS8.cpp ++++ b/src/lib/WPS8.cpp +@@ -19,6 +19,7 @@ + * applicable instead of those above. + */ + ++#include + #include + #include + #include +-- +2.4.3 + diff --git a/libwps.spec b/libwps.spec index 4ea2bbb..a8cff81 100644 --- a/libwps.spec +++ b/libwps.spec @@ -9,11 +9,12 @@ License: LGPLv2+ or MPLv2.0 URL: http://libwps.sourceforge.net/ Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.xz -BuildRequires: boost-devel BuildRequires: doxygen BuildRequires: help2man BuildRequires: pkgconfig(librevenge-0.0) +Patch0: 0001-add-missing-include.patch + %description %{name} is a library for import of Microsoft Works text documents, spreadsheets and (in a limited way) databases. @@ -45,7 +46,8 @@ The %{name}-doc package contains documentation files for %{name} %autosetup -p1 %build -%configure --disable-silent-rules --disable-static --disable-werror +export CXXFLAGS=-std=c++11 +%configure --disable-silent-rules --disable-static --disable-werror --with-sharedptr=c++11 sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool make %{?_smp_mflags}