]> git.pld-linux.org Git - packages/libredwg.git/commitdiff
- updated to 0.12.4
authorJakub Bogusz <qboosh@pld-linux.org>
Sun, 11 Apr 2021 15:06:34 +0000 (17:06 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Sun, 11 Apr 2021 15:06:34 +0000 (17:06 +0200)
- added sh patch (avoid bashism in configure)

libredwg-sh.patch [new file with mode: 0644]
libredwg.spec

diff --git a/libredwg-sh.patch b/libredwg-sh.patch
new file mode 100644 (file)
index 0000000..0b95646
--- /dev/null
@@ -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])
index c760ea0ab9307a771a95121876206658abc65413..dc47bee9f4968659bea8b5c4c19f16e1a7e4a084 100644 (file)
@@ -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
This page took 0.160048 seconds and 4 git commands to generate.