From 49e8e8b0141019ac7a9e5daf2e587fab03c6a919 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 05:00:47 +0100 Subject: [PATCH] update to 3.0.15 [release 3.0.15-1mamba;Sat Oct 21 2017] --- libmapnik-3.0.15-icu-59.patch | 45 +++++++++++++++++++++++++++++++++++ libmapnik.spec | 19 +++++++++++---- 2 files changed, 59 insertions(+), 5 deletions(-) create mode 100644 libmapnik-3.0.15-icu-59.patch diff --git a/libmapnik-3.0.15-icu-59.patch b/libmapnik-3.0.15-icu-59.patch new file mode 100644 index 0000000..7237daa --- /dev/null +++ b/libmapnik-3.0.15-icu-59.patch @@ -0,0 +1,45 @@ +From 4c8f4faae92393d5949115d9767b1b5eec041762 Mon Sep 17 00:00:00 2001 +From: artemp +Date: Wed, 19 Jul 2017 16:07:39 +0200 +Subject: [PATCH] Add support for U_ICU_VERSION_MAJOR_NUM >= 59 (#3729) + +--- + include/mapnik/text/harfbuzz_shaper.hpp | 4 +++- + include/mapnik/unicode.hpp | 2 ++ + 2 files changed, 5 insertions(+), 1 deletion(-) + +diff --git a/include/mapnik/text/harfbuzz_shaper.hpp b/include/mapnik/text/harfbuzz_shaper.hpp +index 8b574b095f..14151cf7d8 100644 +--- a/include/mapnik/text/harfbuzz_shaper.hpp ++++ b/include/mapnik/text/harfbuzz_shaper.hpp +@@ -40,6 +40,7 @@ + #include + #include + #include ++#include + #include + #pragma GCC diagnostic pop + +@@ -55,7 +56,8 @@ static inline hb_script_t _icu_script_to_script(UScriptCode script) + static inline const uint16_t * uchar_to_utf16(const UChar* src) + { + static_assert(sizeof(UChar) == sizeof(uint16_t),"UChar is eq size to uint16_t"); +-#if defined(_MSC_VER) ++#if defined(_MSC_VER) || (U_ICU_VERSION_MAJOR_NUM >= 59) ++ // ^^ http://site.icu-project.org/download/59#TOC-ICU4C-char16_t1 + return reinterpret_cast(src); + #else + return src; +diff --git a/include/mapnik/unicode.hpp b/include/mapnik/unicode.hpp +index f3b270cb93..83ed3b126e 100644 +--- a/include/mapnik/unicode.hpp ++++ b/include/mapnik/unicode.hpp +@@ -31,6 +31,8 @@ + // std + #include + #include ++// icu ++#include + + struct UConverter; + diff --git a/libmapnik.spec b/libmapnik.spec index 4b7a131..7324416 100644 --- a/libmapnik.spec +++ b/libmapnik.spec @@ -1,5 +1,5 @@ Name: libmapnik -Version: 3.0.10 +Version: 3.0.15 Release: 1mamba Summary: A Free Toolkit for developing mapping applications Group: System/Tools @@ -7,8 +7,10 @@ Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: http://mapnik.org/ -Source: https://mapnik.s3.amazonaws.com/dist/v%{version}/mapnik-v%{version}.tar.bz2 +Source: https://github.com/mapnik/mapnik/releases/download/v%{version}/mapnik-v%{version}.tar.bz2 +#Source: https://mapnik.s3.amazonaws.com/dist/v%{version}/mapnik-v%{version}.tar.bz2 Patch0: libmapnik-3.0.9-boost-mt.patch +Patch1: libmapnik-3.0.15-icu-59.patch License: LGPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel @@ -46,12 +48,13 @@ Mapnik is a Free Toolkit for developing mapping applications. Above all Mapnik i This is the devel package. %prep -%setup -q -n mapnik-v%{version} -D -T +%setup -q -n mapnik-v%{version} +#-D -T #:<< _EOF -#% patch0 -p1 +%patch1 -p1 %build -:<< _EOF +#:<< _EOF %{__python} scons/scons.py configure \ PREFIX=%{_prefix} \ LIBDIR_SCHEMA=%{_lib} \ @@ -98,6 +101,12 @@ sed -i "s|max-drift=1 install|max-drift=1 install DESTDIR=%{buildroot}|" Makefil #%doc README %changelog +* Sat Oct 21 2017 Silvan Calarco 3.0.15-1mamba +- update to 3.0.15 + +* Tue Nov 22 2016 Silvan Calarco 3.0.12-1mamba +- update to 3.0.12 + * Sun Jul 10 2016 Automatic Build System 3.0.10-1mamba - automatic version update by autodist