File yad.spec of Package yad

#
# spec file for package yad
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#


Name:           yad
Version:        0.40.3+51
Release:        0
Summary:        Display graphical dialogs from shell scripts or command line
License:        GPL-3.0-only
Group:          Development/Tools/GUI Builders
URL:            https://github.com/v1cont/yad
Source0:        %{name}-%{version}.tar.xz
BuildRequires:  intltool >= 0.40.0
BuildRequires:  libtool
BuildRequires:  pkgconfig
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(enchant)
BuildRequires:  pkgconfig(gtk+-3.0)
BuildRequires:  pkgconfig(gtksourceview-3.0)
BuildRequires:  pkgconfig(gtkspell3-3.0)
BuildRequires:  pkgconfig(webkit2gtk-4.0)
Recommends:     %{name}-lang = %{version}

%description
Yad (yet another dialog) is a fork of Zenity with many improvements, such as
custom buttons, additional dialogs, pop-up menu in notification icon and more.

%lang_package

%prep
%setup -q

%build
autoreconf -ivf && intltoolize
%configure \
    --with-gtk=gtk3     \
    --enable-html       \
    --enable-gio        \
    --enable-spell      \
    --enable-sourceview \
    --enable-icon-browser
make %{?_smp_mflags}

%install
%make_install
%find_lang %{name}
%suse_update_desktop_file -r %{name}-icon-browser Utility DesktopUtility

%files
%doc AUTHORS NEWS README.md
%license COPYING
%{_bindir}/%{name}
%{_bindir}/%{name}-icon-browser
%{_datadir}/applications/%{name}-icon-browser.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.png
%{_datadir}/aclocal/%{name}.m4
%{_mandir}/man1/%{name}.1%{?ext_man}

%files lang -f %{name}.lang

%changelog
openSUSE Build Service is sponsored by