# Conditional build:
%bcond_without dotnet # without .net support
-%ifarch i386
+%ifarch i386 x32
%undefine with_dotnet
%endif
Summary(pl.UTF-8): Biblioteka GMIME
Name: gmime22
Version: 2.2.27
-Release: 2
+Release: 4
License: LGPL v2.1+
Group: Libraries
Source0: http://ftp.gnome.org/pub/GNOME/sources/gmime/2.2/gmime-%{version}.tar.bz2
# Source0-md5: 16d89accbe5c79ba22e3dfabf53e3b7e
Patch0: %{name}-link.patch
Patch1: %{name}-dont-delay-sign.patch
+Patch2: format-security.patch
URL: http://spruce.sourceforge.net/gmime/
BuildRequires: autoconf
BuildRequires: automake
%setup -q -n gmime-%{version}
%patch0 -p1
%patch1 -p1
+%patch2 -p1
%build
touch config.rpath
%{__aclocal}
%{__autoconf}
%{__automake}
+CFLAGS="%{rpmcflags} -UG_DISABLE_DEPRECATED"
%configure \
--enable-largefile \
--%{?with_dotnet:enable}%{!?with_dotnet:disable}-mono \