Blob Blame History Raw
%global use_x11_tests 1
Name:           perl-X11-GUITest
Version:        0.28
Release:        6%{?dist}
Summary:        Provides GUI testing/interaction routines
License:        GPLv2+
Group:          Development/Libraries
BuildRequires:  libX11-devel
BuildRequires:  libXext-devel
BuildRequires:  libXt-devel
# libXi-devel is required because it contains X11/extensions/XInput.h in EL6
BuildRequires:  libXi-devel
BuildRequires:  libXtst-devel
BuildRequires:  perl
BuildRequires:  perl(Config)
BuildRequires:  perl(DynaLoader)
BuildRequires:  perl(Exporter)
BuildRequires:  perl(ExtUtils::MakeMaker)
BuildRequires:  perl(POSIX)
BuildRequires:  perl(strict)
BuildRequires:  perl(warnings)
BuildRequires:  perl(vars)
%if %{use_x11_tests}
# X11 tests:
BuildRequires:  xorg-x11-server-Xvfb
BuildRequires:  xorg-x11-xinit
BuildRequires:  font(:lang=en)
Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))

This Perl package is intended to facilitate the testing of GUI applications
by means of user emulation. It can be used to test/interact with GUI
applications; which have been built upon the X library or toolkits (i.e.,
GTK+, Xt, Qt, Motif, etc.) that "wrap" the X library's functionality.

%setup -q -n X11-GUITest-%{version}

%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
make %{?_smp_mflags}

make pure_install DESTDIR=$RPM_BUILD_ROOT

find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \;

%{_fixperms} $RPM_BUILD_ROOT/*

%if %{use_x11_tests}
    xvfb-run -a make test
    make test

%doc Changes docs README eg ToDo

* Thu Jun 18 2015 Fedora Release Engineering <> - 0.28-6
- Rebuilt for

* Wed Jun 03 2015 Jitka Plesnikova <> - 0.28-5
- Perl 5.22 rebuild

* Wed Aug 27 2014 Jitka Plesnikova <> - 0.28-4
- Perl 5.20 rebuild

* Sun Aug 17 2014 Fedora Release Engineering <> - 0.28-3
- Rebuilt for

* Sat Jun 07 2014 Fedora Release Engineering <> - 0.28-2
- Rebuilt for

* Tue Mar 18 2014 David Dick <> - 0.28-1
- Initial release