File pan.spec of Package pan

# spec file for package pan
# Copyright (c) 2021 SUSE LLC
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via

Name:           pan
Version:        0.146
Release:        0
Summary:        A Newsreader for GNOME
License:        GPL-2.0-or-later
Group:          Productivity/Networking/News/Clients
# PATCH-FIX-UPSTREAM pan-fix-sending-with-gmime30.patch boo#1166404 -- Fix message sending when using gmime 3.0
Patch0:         pan-fix-sending-with-gmime30.patch
# PATCH-FIX-UPSTREAM pan-glib-2.68.patch glgo#GNOME/pan#128 -- Fix compilation with glib 2.68+; patch taken from upstream merge request with additional fixes for current version
Patch1:         pan-glib-2.68.patch
# PATCH-FIX-UPSTREAM pan-signed-pointer-zero-comparison.patch -- Fix comparison of pointer with int 0
Patch2:         pan-signed-pointer-zero-comparison.patch
BuildRequires:  fdupes
BuildRequires:  gcc-c++
BuildRequires:  gettext >= 0.19.7
BuildRequires:  itstool
BuildRequires:  libxml2-tools
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(enchant) >= 1.6.0
BuildRequires:  pkgconfig(gcr-3)
BuildRequires:  pkgconfig(gmime-3.0)
BuildRequires:  pkgconfig(gnutls) >= 2.12.10
BuildRequires:  pkgconfig(gtk+-3.0)
BuildRequires:  pkgconfig(gtkspell3-3.0) >= 2.0.16
BuildRequires:  pkgconfig(libnotify) >= 0.4.1
BuildRequires:  pkgconfig(libsecret-1)
Recommends:     %{name}-lang

Pan is a Usenet newsreader that's good at both text and binaries.
It supports offline reading, scoring and killfiles, yEnc, NZB, PGP
handling, multiple servers, and secure connections.


%autosetup -p1

%configure \
	--with-gtk3 \
	--with-gnutls \
	--with-dbus \
	--enable-gkr \
	--enable-manual \
	--enable-libnotify \
	--with-gmime30 \

%find_lang %{name} %{?no_lang_C}
%fdupes %{buildroot}/%{_prefix}

%doc %{_datadir}/help/C/%{name}/
%dir %{_datadir}/appdata

%files lang -f %{name}.lang

openSUSE Build Service is sponsored by