File yad.spec of Package yad
#
# spec file for package yad
#
# Copyright (c) 2020 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 https://bugs.opensuse.org/
#
Name: yad
Version: 10.1
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: https://github.com/v1cont/yad/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.xz
BuildRequires: intltool >= 0.40.0
BuildRequires: libtool
BuildRequires: pkgconfig
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(enchant)
BuildRequires: pkgconfig(gspell-1)
BuildRequires: pkgconfig(gtk+-3.0)
BuildRequires: pkgconfig(gtk+-unix-print-3.0)
BuildRequires: pkgconfig(gtksourceview-3.0)
BuildRequires: pkgconfig(webkit2gtk-4.0)
%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 \
--enable-html \
--enable-spell \
--enable-sourceview \
--enable-icon-browser
%make_build
%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}-tools
%{_bindir}/%{name}-settings
%{_bindir}/%{name}-icon-browser
%{_datadir}/applications/%{name}-settings.desktop
%{_datadir}/applications/%{name}-icon-browser.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.png
%{_datadir}/aclocal/%{name}.m4
%{_mandir}/man1/%{name}.1%{?ext_man}
%{_mandir}/man1/%{name}-tools.1%{?ext_man}
%{_datadir}/glib-2.0/schemas/yad.gschema.xml
%files lang -f %{name}.lang
%changelog