3 %bcond_with gtk3 # use GTK+ 3.x instead of 2.x
5 Summary: Displays dialog boxes from shell scripts
6 Summary(pl.UTF-8): Wyświetlanie okien dialogowych z poziomu skryptów powłoki
11 Group: X11/Applications
12 Source0: http://pub.mate-desktop.org/releases/1.8/%{name}-%{version}.tar.xz
13 # Source0-md5: c52cba1b3cb8c600e710e129a5118e84
14 URL: http://wiki.mate-desktop.org/mate-dialogs
15 BuildRequires: autoconf >= 2.59
16 BuildRequires: automake >= 1:1.9
17 BuildRequires: glib2-devel
18 %{!?with_gtk3:BuildRequires: gtk+2-devel >= 2:2.18.0}
19 %{?with_gtk3:BuildRequires: gtk+3-devel >= 3.0.0}
20 BuildRequires: intltool >= 0.40.0
21 BuildRequires: libnotify-devel >= 0.7.0
22 BuildRequires: mate-common
23 BuildRequires: pkgconfig
24 BuildRequires: rpmbuild(find_lang) >= 1.36
25 BuildRequires: tar >= 1:1.22
26 BuildRequires: xorg-lib-libX11-devel
28 BuildRequires: yelp-tools
29 %{!?with_gtk3:Requires: gtk+2 >= 2:2.18.0}
30 %{?with_gtk3:Requires: gtk+3 >= 3.0.0}
31 Requires: libnotify >= 0.7.0
32 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35 Displays dialog boxes from shell scripts.
37 %description -l pl.UTF-8
38 Wyświetlanie okien dialogowych z poziomu skryptów powłoki.
50 --disable-silent-rules \
51 %{?with_gtk3:--with-gtk=3.0}
56 rm -rf $RPM_BUILD_ROOT
58 DESTDIR=$RPM_BUILD_ROOT
60 # mate-dialogs gettext domain, matedialog mate help files
61 %find_lang %{name} --with-mate --all-name
64 rm -rf $RPM_BUILD_ROOT
66 %files -f %{name}.lang
67 %defattr(644,root,root,755)
68 %doc AUTHORS ChangeLog NEWS README THANKS TODO
69 %attr(755,root,root) %{_bindir}/matedialog
70 %{_mandir}/man1/matedialog.1*
71 %{_datadir}/matedialog