--- /dev/null
+--- libnsgif-0.2.0/src/lzw.c.orig 2017-10-13 10:55:06.000000000 +0200
++++ libnsgif-0.2.0/src/lzw.c 2017-10-30 11:35:43.430506835 +0100
+@@ -168,7 +168,9 @@ static inline lzw_result lzw__next_code(
+ const uint8_t *data = ctx->sb_data + (ctx->sb_bit >> 3);
+ switch (byte_advance) {
+ case 2: code |= data[2] << 16;
++ /* Fall through */
+ case 1: code |= data[1] << 8;
++ /* Fall through */
+ case 0: code |= data[0] << 0;
+ }
+ ctx->sb_bit += code_size;
Summary: Decoding library for the GIF format
Summary(pl.UTF-8): Biblioteka dekodujÄ…ca pliki w formacie GIF
Name: libnsgif
-Version: 0.1.4
+Version: 0.2.0
Release: 1
License: MIT
Group: Libraries
Source0: http://download.netsurf-browser.org/libs/releases/%{name}-%{version}-src.tar.gz
-# Source0-md5: c4608d944f3a10ae236c8993c2d3b6d0
+# Source0-md5: 108d6103d198baf270a8993d5ebfb9e2
+Patch0: fall_through.patch
URL: http://www.netsurf-browser.org/projects/libnsgif/
-BuildRequires: netsurf-buildsystem >= 1.5
+BuildRequires: netsurf-buildsystem >= 1.6
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
%prep
%setup -q
+%patch0 -p1
%build
export AR="%{__ar}"