--- /dev/null
+--- 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])
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
%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