File yad.spec of Package yad
Name: yad
Version: 14.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/releases/download/v%{version}/%{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)
%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
%configure \
--with-gtk=gtk3 \
--enable-html \
--enable-gio \
--enable-spell \
--enable-sourceview \
--enable-icon-browser
make %{?_smp_mflags} CFLAGS="%{optflags} -Wno-error=deprecated-declarations -Wno-error=return-type"
%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}-*
%{_datadir}/applications/%{name}-*.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.png
%{_datadir}/aclocal/%{name}.m4
%{_datadir}/glib-2.0/schemas/yad.gschema.xml
%{_mandir}/man1/%{name}*.1%{?ext_man}
%files lang -f %{name}.lang