File zenity.spec of Package zenity
#
# spec file for package zenity
#
# Copyright (c) 2024 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: zenity
Version: 4.0.1
Release: 0
Summary: GNOME Command Line Dialog Utility
License: LGPL-2.1-or-later
Group: System/GUI/GNOME
URL: https://wiki.gnome.org/Projects/Zenity
Source0: https://download.gnome.org/sources/zenity/4.0/%{name}-%{version}.tar.xz
BuildRequires: desktop-file-utils
BuildRequires: fdupes
BuildRequires: help2man
BuildRequires: meson
BuildRequires: pkgconfig
BuildRequires: yelp-tools
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(gtk4)
BuildRequires: pkgconfig(libadwaita-1)
%description
Zenity is a basic rewrite of gdialog, without the pain involved of
trying to figure out commandline parsing. Zenity is zen-like; simple
and easy to use.
Zenity Dialogs: Calendar, Text Entry, Error, Informational, File
Selection, List, Progress, Question, Text Information, Warning and
Password.
Zenity is especially useful in scripts.
%lang_package
%prep
%autosetup -p1
%build
%meson
%meson_build
%install
%meson_install
%find_lang %{name} %{?no_lang_C}
%fdupes %{buildroot}%{_datadir}
%check
%meson_test
%files
%doc AUTHORS ChangeLog NEWS README.md
%license COPYING
%doc %{_datadir}/help/C/%{name}/
%{_bindir}/zenity
%{_mandir}/man?/zenity.?%{ext_man}
%{_datadir}/applications/org.gnome.Zenity.desktop
%{_datadir}/icons/hicolor/48x48/apps/zenity.png
%files lang -f %{name}.lang
%changelog