1 # TODO: use gtk4-update-icon-cache
4 %bcond_without webkit # WebKitGtk support
6 Summary: The GNOME port of dialog
7 Summary(pl.UTF-8): Port programu dialog dla GNOME
12 Group: X11/Applications
13 Source0: https://download.gnome.org/sources/zenity/4.0/%{name}-%{version}.tar.xz
14 # Source0-md5: 665328fa51a1d87b4c211cbbbdbe5043
15 URL: https://wiki.gnome.org/Projects/Zenity
16 BuildRequires: gettext-tools >= 0.19.4
17 %{?with_webkit:BuildRequires: gtk-webkit6-devel >= 2.40}
18 BuildRequires: libadwaita-devel >= 1.2
19 BuildRequires: meson >= 0.57.0
20 BuildRequires: ninja >= 1.5
21 BuildRequires: perl-base
22 BuildRequires: pkgconfig
23 BuildRequires: rpmbuild(find_lang) >= 1.23
24 BuildRequires: rpmbuild(macros) >= 1.736
25 BuildRequires: tar >= 1:1.22
26 BuildRequires: xorg-lib-libX11-devel
28 BuildRequires: yelp-tools
29 Requires(post,postun): gtk-update-icon-cache
30 %{?with_webkit:Requires: gtk-webkit6 >= 2.40}
31 Requires: hicolor-icon-theme
32 Requires: libadwaita >= 1.2
33 Conflicts: gnome-utils < 2.3.3
34 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
37 zenity is a rewrite of gdialog, the GNOME port of dialog which allows
38 you to display dialog boxes from the commandline and shell scripts.
40 %description -l pl.UTF-8
41 zenity jest kontynuacją programu gdialog, portu programu dialog dla
42 GNOME. Umożliwia on wyświetlanie okien dialogowych z linii poleceń i
50 %{?with_webkit:-Dwebkitgtk=true}
55 rm -rf $RPM_BUILD_ROOT
57 %ninja_install -C build
59 %find_lang %{name} --with-gnome
62 rm -rf $RPM_BUILD_ROOT
65 %update_icon_cache hicolor
68 %update_icon_cache hicolor
70 %files -f %{name}.lang
71 %defattr(644,root,root,755)
72 %doc AUTHORS NEWS README.md
73 %attr(755,root,root) %{_bindir}/zenity
74 %{_desktopdir}/org.gnome.Zenity.desktop
75 %{_iconsdir}/hicolor/48x48/apps/zenity.png
76 %{_mandir}/man1/zenity.1*