David Dick 94676ac
%global use_x11_tests 1
David Dick 94676ac
Name:           perl-X11-GUITest
David Dick 94676ac
Version:        0.28
ca47ad2
Release:        10%{?dist}
David Dick 94676ac
Summary:        Provides GUI testing/interaction routines
David Dick 94676ac
License:        GPLv2+
David Dick 94676ac
Group:          Development/Libraries
David Dick 94676ac
URL:            http://search.cpan.org/dist/X11-GUITest/
David Dick 94676ac
Source0:        http://www.cpan.org/modules/by-module/X11/X11-GUITest-%{version}.tar.gz
David Dick 94676ac
BuildRequires:  libX11-devel
David Dick 94676ac
BuildRequires:  libXext-devel
David Dick 94676ac
BuildRequires:  libXt-devel
David Dick 94676ac
# libXi-devel is required because it contains X11/extensions/XInput.h in EL6
David Dick 94676ac
BuildRequires:  libXi-devel
David Dick 94676ac
BuildRequires:  libXtst-devel
1b812a1
BuildRequires:  perl-interpreter
61d5ad6
BuildRequires:  perl-devel
61d5ad6
BuildRequires:  perl-generators
David Dick 94676ac
BuildRequires:  perl(Config)
David Dick 94676ac
BuildRequires:  perl(DynaLoader)
David Dick 94676ac
BuildRequires:  perl(Exporter)
David Dick 94676ac
BuildRequires:  perl(ExtUtils::MakeMaker)
David Dick 94676ac
BuildRequires:  perl(POSIX)
David Dick 94676ac
BuildRequires:  perl(strict)
David Dick 94676ac
BuildRequires:  perl(warnings)
David Dick 94676ac
BuildRequires:  perl(vars)
David Dick 94676ac
%if %{use_x11_tests}
David Dick 94676ac
# X11 tests:
David Dick 94676ac
BuildRequires:  xorg-x11-server-Xvfb
David Dick 94676ac
BuildRequires:  xorg-x11-xinit
David Dick 94676ac
BuildRequires:  font(:lang=en)
David Dick 94676ac
%endif
David Dick 94676ac
Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
David Dick 94676ac
David Dick 94676ac
%description
David Dick 94676ac
This Perl package is intended to facilitate the testing of GUI applications
David Dick 94676ac
by means of user emulation. It can be used to test/interact with GUI
David Dick 94676ac
applications; which have been built upon the X library or toolkits (i.e.,
David Dick 94676ac
GTK+, Xt, Qt, Motif, etc.) that "wrap" the X library's functionality.
David Dick 94676ac
David Dick 94676ac
%prep
David Dick 94676ac
%setup -q -n X11-GUITest-%{version}
David Dick 94676ac
David Dick 94676ac
%build
David Dick 94676ac
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
David Dick 94676ac
make %{?_smp_mflags}
David Dick 94676ac
David Dick 94676ac
%install
David Dick 94676ac
make pure_install DESTDIR=$RPM_BUILD_ROOT
David Dick 94676ac
David Dick 94676ac
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
David Dick 94676ac
find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \;
David Dick 94676ac
David Dick 94676ac
%{_fixperms} $RPM_BUILD_ROOT/*
David Dick 94676ac
David Dick 94676ac
%check
David Dick 94676ac
%if %{use_x11_tests}
David Dick 94676ac
    xvfb-run -a make test
David Dick 94676ac
%else
David Dick 94676ac
    make test
David Dick 94676ac
%endif
David Dick 94676ac
David Dick 94676ac
%files
David Dick 94676ac
%doc Changes docs README eg ToDo
David Dick 94676ac
%{perl_vendorarch}/auto/*
David Dick 94676ac
%{perl_vendorarch}/X11*
David Dick 94676ac
%{_mandir}/man3/*
David Dick 94676ac
David Dick 94676ac
%changelog
ca47ad2
* Sun Jun 04 2017 Jitka Plesnikova <jplesnik@redhat.com> - 0.28-10
ca47ad2
- Perl 5.26 rebuild
ca47ad2
1a2a90a
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.28-9
1a2a90a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
1a2a90a
3e4d436
* Sat May 14 2016 Jitka Plesnikova <jplesnik@redhat.com> - 0.28-8
3e4d436
- Perl 5.24 rebuild
3e4d436
0590951
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.28-7
0590951
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
0590951
0bf7e85
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.28-6
0bf7e85
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
0bf7e85
1b4d81e
* Wed Jun 03 2015 Jitka Plesnikova <jplesnik@redhat.com> - 0.28-5
1b4d81e
- Perl 5.22 rebuild
1b4d81e
d120d51
* Wed Aug 27 2014 Jitka Plesnikova <jplesnik@redhat.com> - 0.28-4
d120d51
- Perl 5.20 rebuild
d120d51
374c0be
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.28-3
374c0be
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
374c0be
57599c6
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.28-2
57599c6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
57599c6
David Dick 94676ac
* Tue Mar 18 2014 David Dick <ddick@cpan.org> - 0.28-1
David Dick 94676ac
- Initial release