]>
Commit | Line | Data |
---|---|---|
335123d8 KK |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # do perform "make test" | |
4 | # | |
335123d8 KK |
5 | %define pdir X11 |
6 | %define pnam GUITest | |
7 | Summary: X11::GUITest - GUI testing/interaction facilities | |
60caa1ba | 8 | Summary(pl.UTF-8): X11::GUITest - ułatwienia do testowania/interakcji z GUI |
335123d8 | 9 | Name: perl-X11-GUITest |
4094e102 | 10 | Version: 0.25 |
98cf3a68 | 11 | Release: 15 |
335123d8 KK |
12 | # same as perl |
13 | License: GPL v1+ or Artistic | |
14 | Group: Development/Languages/Perl | |
cfd7dfd8 | 15 | Source0: http://www.cpan.org/modules/by-module/X11/%{pdir}-%{pnam}-%{version}.tar.gz |
4094e102 | 16 | # Source0-md5: c2ea2418a5cef380e260dce9230c1d8b |
cfd7dfd8 JB |
17 | URL: http://search.cpan.org/dist/X11-GUITest/ |
18 | BuildRequires: rpm-perlprov >= 4.1-13 | |
0052b4b3 | 19 | BuildRequires: xorg-lib-libX11-devel |
20 | BuildRequires: xorg-lib-libXext-devel | |
21 | BuildRequires: xorg-lib-libXtst-devel | |
335123d8 KK |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
23 | ||
24 | %description | |
25 | This Perl package is intended to facilitate the testing of GUI | |
1edba68f JB |
26 | applications by means of user emulation. It can be used to |
27 | test/interact with GUI applications which have been built upon the X | |
28 | library or toolkits (i.e., GTK+, Xt, Qt, Motif, etc.) that "wrap" the | |
29 | X library's functionality. | |
30 | ||
55340809 JR |
31 | %description -l pl.UTF-8 |
32 | Ten pakiet Perla ma ułatwić testowanie aplikacji z graficznym | |
33 | interfejsem użytkownika drogą emulacji użytkownika. Może być używany | |
34 | do testowania lub interakcji z aplikacjami GUI opartymi o bibliotekę X | |
35 | lub toolkity (takie jak GTK+, Xt, Qt, Motif itp.) obudowujące | |
36 | funkcjonalność biblioteki X. | |
335123d8 KK |
37 | |
38 | %prep | |
39 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
40 | ||
41 | %build | |
42 | %{__perl} Makefile.PL \ | |
43 | INSTALLDIRS=vendor | |
5f62b1a0 JP |
44 | %{__make} \ |
45 | OPTIMIZE="%{rpmcppflags} %{rpmcflags}" | |
335123d8 KK |
46 | |
47 | %{?with_tests:%{__make} test} | |
48 | ||
49 | %install | |
50 | rm -rf $RPM_BUILD_ROOT | |
51 | ||
52 | %{__make} install \ | |
53 | DESTDIR=$RPM_BUILD_ROOT | |
54 | ||
55 | %clean | |
56 | rm -rf $RPM_BUILD_ROOT | |
57 | ||
58 | %files | |
59 | %defattr(644,root,root,755) | |
4094e102 | 60 | %doc docs/{Changes,ToDo,X11-GUITest*} |
335123d8 | 61 | %dir %{perl_vendorarch}/X11 |
1edba68f | 62 | %{perl_vendorarch}/X11/GUITest.pm |
335123d8 KK |
63 | %dir %{perl_vendorarch}/auto/X11 |
64 | %dir %{perl_vendorarch}/auto/X11/GUITest | |
335123d8 | 65 | %attr(755,root,root) %{perl_vendorarch}/auto/X11/GUITest/GUITest.so |
335123d8 | 66 | %{_mandir}/man3/* |