# Conditional build:
%bcond_with tests # do perform "make test"
#
-%include /usr/lib/rpm/macros.perl
%define pdir X11
%define pnam GUITest
Summary: X11::GUITest - GUI testing/interaction facilities
-Summary(pl): X11::GUITest - u³atwienia do testowania/interakcji z GUI
+Summary(pl.UTF-8): X11::GUITest - ułatwienia do testowania/interakcji z GUI
Name: perl-X11-GUITest
-Version: 0.20
-Release: 0.1
+Version: 0.25
+Release: 15
# same as perl
License: GPL v1+ or Artistic
Group: Development/Languages/Perl
-Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
-# Source0-md5: d175896c876b932e11f5a3ffa313f189
-BuildRequires: XFree86-devel
+Source0: http://www.cpan.org/modules/by-module/X11/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: c2ea2418a5cef380e260dce9230c1d8b
+URL: http://search.cpan.org/dist/X11-GUITest/
BuildRequires: rpm-perlprov >= 4.1-13
-BuildArch: noarch
+BuildRequires: xorg-lib-libX11-devel
+BuildRequires: xorg-lib-libXext-devel
+BuildRequires: xorg-lib-libXtst-devel
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
library or toolkits (i.e., GTK+, Xt, Qt, Motif, etc.) that "wrap" the
X library's functionality.
-%description -l pl
-Ten pakiet Perla ma u³atwiæ testowanie aplikacji z graficznym
-interfejsem u¿ytkownika drog± emulacji u¿ytkownika. Mo¿e byæ u¿ywany
-do testowania lub interakcji z aplikacjami GUI opartymi o bibliotekê X
-lub toolkity (takie jak GTK+, Xt, Qt, Motif itp.) obudowuj±ce
-funkcjonalno¶æ biblioteki X.
+%description -l pl.UTF-8
+Ten pakiet Perla ma ułatwić testowanie aplikacji z graficznym
+interfejsem użytkownika drogą emulacji użytkownika. Może być używany
+do testowania lub interakcji z aplikacjami GUI opartymi o bibliotekę X
+lub toolkity (takie jak GTK+, Xt, Qt, Motif itp.) obudowujące
+funkcjonalność biblioteki X.
%prep
%setup -q -n %{pdir}-%{pnam}-%{version}
%build
%{__perl} Makefile.PL \
INSTALLDIRS=vendor
-%{__make}
+%{__make} \
+ OPTIMIZE="%{rpmcppflags} %{rpmcflags}"
%{?with_tests:%{__make} test}
%files
%defattr(644,root,root,755)
-%doc README docs/{Changes,ToDo}
+%doc docs/{Changes,ToDo,X11-GUITest*}
%dir %{perl_vendorarch}/X11
%{perl_vendorarch}/X11/GUITest.pm
%dir %{perl_vendorarch}/auto/X11
%dir %{perl_vendorarch}/auto/X11/GUITest
%attr(755,root,root) %{perl_vendorarch}/auto/X11/GUITest/GUITest.so
-%{perl_vendorarch}/auto/X11/GUITest/GUITest.bs
%{_mandir}/man3/*