diff --git a/zimlib-fix-flags.patch b/zimlib-fix-flags.patch deleted file mode 100644 index 63a16b0..0000000 --- a/zimlib-fix-flags.patch +++ /dev/null @@ -1,25 +0,0 @@ -From f28658b6dd722e548e93f5d45a03ac7c8d078501 Mon Sep 17 00:00:00 2001 -From: Vitaly Zaitsev -Date: Wed, 10 Apr 2019 14:57:47 +0200 -Subject: [PATCH 2/2] Removed Werror build flag. - ---- - meson.build | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/meson.build b/meson.build -index 2d38684..42e5253 100644 ---- a/meson.build -+++ b/meson.build -@@ -1,7 +1,7 @@ - project('libzim', ['c', 'cpp'], - version : '4.0.6', - license : 'GPL2', -- default_options : ['c_std=c11', 'cpp_std=c++11', 'werror=true']) -+ default_options : ['c_std=c11', 'cpp_std=c++11']) - - if build_machine.system() != 'windows' - add_project_arguments('-D_LARGEFILE64_SOURCE=1', '-D_FILE_OFFSET_BITS=64', language: 'cpp') --- -2.20.1 - diff --git a/zimlib.spec b/zimlib.spec index 5b766d1..6e7d5db 100644 --- a/zimlib.spec +++ b/zimlib.spec @@ -9,7 +9,6 @@ Summary: Reference implementation of the ZIM specification URL: https://github.com/openzim/%{appname} Source0: %{url}/archive/%{version}.tar.gz -Patch0: %{name}-fix-flags.patch BuildRequires: xapian-core-devel BuildRequires: libicu-devel @@ -35,6 +34,7 @@ Requires: %{name}%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release} %prep %autosetup -n %{appname}-%{version} -p1 +sed -e "s/, 'werror=true'//" -i meson.build %build %meson