]>
Commit | Line | Data |
---|---|---|
bb2330bf JP |
1 | # |
2 | # Conditional build: | |
83f1b935 JB |
3 | %bcond_without libnotify # desktop notification support |
4 | %bcond_without webkit # WebKitGtk support | |
bb2330bf | 5 | |
42e0135e | 6 | Summary: The GNOME port of dialog |
626b3600 | 7 | Summary(pl.UTF-8): Port programu dialog dla GNOME |
42e0135e | 8 | Name: zenity |
83f1b935 | 9 | Version: 3.42.0 |
5ddd1b2a | 10 | Release: 1 |
ef9cc0d9 | 11 | License: LGPL v2+ |
42e0135e | 12 | Group: X11/Applications |
83f1b935 JB |
13 | Source0: https://download.gnome.org/sources/zenity/3.42/%{name}-%{version}.tar.xz |
14 | # Source0-md5: 68314e87a303ad0345cc042443f675a9 | |
04fb3905 | 15 | URL: https://wiki.gnome.org/Projects/Zenity |
349dedbb | 16 | BuildRequires: gettext-tools >= 0.19.4 |
83f1b935 JB |
17 | BuildRequires: glib2-devel >= 1:2.43.4 |
18 | BuildRequires: gtk+3-devel >= 3.16.0 | |
bb2330bf | 19 | %{?with_webkit:BuildRequires: gtk-webkit4-devel >= 2.8.1} |
83f1b935 JB |
20 | %{?with_libnotify:BuildRequires: libnotify-devel >= 0.6.1} |
21 | BuildRequires: meson >= 0.53.0 | |
22 | BuildRequires: ninja >= 1.5 | |
5b7b9ada | 23 | BuildRequires: perl-base |
ef9cc0d9 | 24 | BuildRequires: pkgconfig |
c24986f8 | 25 | BuildRequires: rpmbuild(find_lang) >= 1.23 |
83f1b935 | 26 | BuildRequires: rpmbuild(macros) >= 1.736 |
fb5a14d0 | 27 | BuildRequires: tar >= 1:1.22 |
83f1b935 | 28 | BuildRequires: xorg-lib-libX11-devel |
fb5a14d0 | 29 | BuildRequires: xz |
e35046fb | 30 | BuildRequires: yelp-tools |
83f1b935 JB |
31 | Requires: glib2 >= 1:2.43.4 |
32 | Requires: gtk+3 >= 3.16.0 | |
bb2330bf | 33 | %{?with_webkit:Requires: gtk-webkit4 >= 2.8.1} |
83f1b935 | 34 | %{?with_libnotify:Requires: libnotify >= 0.6.1} |
84dbd559 | 35 | Conflicts: gnome-utils < 2.3.3 |
42e0135e | 36 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
37 | ||
38 | %description | |
39 | zenity is a rewrite of gdialog, the GNOME port of dialog which allows | |
40 | you to display dialog boxes from the commandline and shell scripts. | |
41 | ||
08be486c | 42 | %description -l pl.UTF-8 |
626b3600 JB |
43 | zenity jest kontynuacją programu gdialog, portu programu dialog dla |
44 | GNOME. Umożliwia on wyświetlanie okien dialogowych z linii poleceń i | |
45 | ze skryptów powłoki. | |
42e0135e | 46 | |
47 | %prep | |
48 | %setup -q | |
49 | ||
50 | %build | |
83f1b935 JB |
51 | %meson build \ |
52 | %{?with_libnotify:-Dlibnotify=true} \ | |
53 | %{?with_webkit:-Dwebkitgtk=true} | |
54 | ||
55 | %ninja_build -C build | |
42e0135e | 56 | |
57 | %install | |
58 | rm -rf $RPM_BUILD_ROOT | |
59 | ||
83f1b935 | 60 | %ninja_install -C build |
42e0135e | 61 | |
8a30ccef | 62 | %find_lang %{name} --with-gnome |
42e0135e | 63 | |
64 | %clean | |
65 | rm -rf $RPM_BUILD_ROOT | |
66 | ||
771d8e15 | 67 | %files -f %{name}.lang |
42e0135e | 68 | %defattr(644,root,root,755) |
69 | %doc AUTHORS NEWS README THANKS TODO | |
2f376cb1 MB |
70 | %attr(755,root,root) %{_bindir}/gdialog |
71 | %attr(755,root,root) %{_bindir}/zenity | |
72 | %{_datadir}/zenity | |
73 | %{_mandir}/man1/zenity.1* |