From 912a32227753b76b70426655e69c22dc4cd24811 Mon Sep 17 00:00:00 2001 From: Jakub Bogusz Date: Sun, 11 Apr 2021 17:06:34 +0200 Subject: [PATCH] - updated to 0.12.4 - added sh patch (avoid bashism in configure) --- libredwg-sh.patch | 19 +++++++++++++++++++ libredwg.spec | 6 ++++-- 2 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 libredwg-sh.patch diff --git a/libredwg-sh.patch b/libredwg-sh.patch new file mode 100644 index 0000000..0b95646 --- /dev/null +++ b/libredwg-sh.patch @@ -0,0 +1,19 @@ +--- libredwg-0.12.4/configure.ac.orig 2021-04-11 15:41:32.582128469 +0200 ++++ libredwg-0.12.4/configure.ac 2021-04-11 16:42:30.718977307 +0200 +@@ -407,13 +407,9 @@ + if test -n "$GPERF" + then + AC_MSG_CHECKING([GPERF version]) +- [GPERF_VERSION=`"$GPERF" --version | head -n1 2>&1 | sed 's,GNU gperf ,,'`] +- case $GPERF_VERSION in +- 1.*) GPERF_VERSION=$((100+${GPERF_VERSION:2:1})) ;; +- 2.*) GPERF_VERSION=$((200+${GPERF_VERSION:2:1})) ;; +- 3.*) GPERF_VERSION=$((300+${GPERF_VERSION:2:1})) ;; +- 4.*) GPERF_VERSION=$((400+${GPERF_VERSION:2:1})) ;; +- esac ++ [GPERF_MAJOR=`"$GPERF" --version | head -n1 2>&1 | sed 's,GNU gperf ,,' | cut -d. -f1`] ++ [GPERF_MINOR=`"$GPERF" --version | head -n1 2>&1 | sed 's,GNU gperf ,,' | cut -d. -f2`] ++ GPERF_VERSION=$((GPERF_MAJOR * 100 + GPERF_MINOR)) + AC_MSG_RESULT([$GPERF_VERSION]) + AC_DEFINE_UNQUOTED([GPERF_VERSION],[$GPERF_VERSION], + [versions earlier than 301 will have no size_t]) diff --git a/libredwg.spec b/libredwg.spec index c760ea0..dc47bee 100644 --- a/libredwg.spec +++ b/libredwg.spec @@ -1,14 +1,15 @@ Summary: LibreDWG - free implementation of the DWG file format Summary(pl.UTF-8): LibreDWG - wolnodostępna implementacja formatu plików DWG Name: libredwg -Version: 0.12.3 +Version: 0.12.4 Release: 1 License: GPL v3+ Group: Libraries Source0: https://ftp.gnu.org/gnu/libredwg/%{name}-%{version}.tar.xz -# Source0-md5: 58124d482d73a385c664b2aad196a87b +# Source0-md5: 9aba1400b02db931f4ee8a1155fd2376 Patch0: %{name}-info.patch Patch1: %{name}-python.patch +Patch2: %{name}-sh.patch URL: http://www.gnu.org/software/libredwg/ BuildRequires: autoconf >= 2.61 BuildRequires: automake >= 1:1.14 @@ -97,6 +98,7 @@ Interfejs Pythona do biblioteki LibreDWG. %setup -q %patch0 -p1 %patch1 -p1 +%patch2 -p1 # no git-version-gen in release tarball %{__sed} -i -e 's/m4_esyscmd.*git-version-gen.*/[%{version}],/' configure.ac -- 2.44.0