]> git.pld-linux.org Git - packages/zenity.git/blob - zenity.spec
- updated to 4.0.1
[packages/zenity.git] / zenity.spec
1 # TODO: use gtk4-update-icon-cache
2 #
3 # Conditional build:
4 %bcond_without  webkit          # WebKitGtk support
5
6 Summary:        The GNOME port of dialog
7 Summary(pl.UTF-8):      Port programu dialog dla GNOME
8 Name:           zenity
9 Version:        4.0.1
10 Release:        1
11 License:        LGPL v2.1+
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
27 BuildRequires:  xz
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)
35
36 %description
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.
39
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
43 ze skryptów powłoki.
44
45 %prep
46 %setup -q
47
48 %build
49 %meson build \
50         %{?with_webkit:-Dwebkitgtk=true}
51
52 %ninja_build -C build
53
54 %install
55 rm -rf $RPM_BUILD_ROOT
56
57 %ninja_install -C build
58
59 %find_lang %{name} --with-gnome
60
61 %clean
62 rm -rf $RPM_BUILD_ROOT
63
64 %post
65 %update_icon_cache hicolor
66
67 %postun
68 %update_icon_cache hicolor
69
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*
This page took 0.161855 seconds and 4 git commands to generate.