]>
Commit | Line | Data |
---|---|---|
c4120eae JB |
1 | # |
2 | # Conditional build: | |
6b1c12e5 | 3 | %bcond_with tests # tests execution (one test requires libvirtd) |
c4120eae | 4 | # |
c4120eae JB |
5 | Summary: libvirt TCK - Technology Compatibility Kit |
6 | Summary(pl.UTF-8): libvirt Technology Compatibility Kit - pakiet sprawdzający kompatybilność | |
7 | Name: perl-Sys-Virt-TCK | |
6b1c12e5 | 8 | Version: 1.1.0 |
c4120eae JB |
9 | Release: 1 |
10 | License: GPL v2+ or Artistic | |
11 | Group: Development/Languages/Perl | |
6b1c12e5 JB |
12 | Source0: https://libvirt.org/sources/tck/Sys-Virt-TCK-v%{version}.tar.gz |
13 | # Source0-md5: 10857a6350245422c63785d4467af808 | |
14 | URL: https://libvirt.org/ | |
c4120eae JB |
15 | BuildRequires: perl-Module-Build |
16 | BuildRequires: perl-devel >= 1:5.8.0 | |
17 | BuildRequires: rpm-perlprov >= 4.1-13 | |
6b1c12e5 | 18 | BuildRequires: rpmbuild(macros) >= 1.745 |
c4120eae JB |
19 | %if %{with tests} |
20 | BuildRequires: libvirt-daemon | |
6b1c12e5 JB |
21 | BuildRequires: perl(App::Prove) >= 3.11 |
22 | BuildRequires: perl-CPAN-Changes | |
c4120eae JB |
23 | BuildRequires: perl-Config-Record >= 1.0.0 |
24 | BuildRequires: perl-Digest | |
25 | BuildRequires: perl-Digest-MD5 | |
26 | BuildRequires: perl-IO-Compress | |
6b1c12e5 JB |
27 | BuildRequires: perl-IO-Interface |
28 | BuildRequires: perl-NetAddr-IP | |
c4120eae JB |
29 | BuildRequires: perl-Sub-Uplevel |
30 | BuildRequires: perl-Sys-Virt >= 0.2.0 | |
31 | BuildRequires: perl-TAP-Formatter-HTML | |
6b1c12e5 | 32 | BuildRequires: perl-TAP-Formatter-JUnit |
c4120eae | 33 | BuildRequires: perl-TAP-Harness-Archive |
6b1c12e5 | 34 | BuildRequires: perl-Test-Exception |
c4120eae JB |
35 | BuildRequires: perl-Test-Harness >= 3.11 |
36 | BuildRequires: perl-Test-Pod | |
37 | BuildRequires: perl-Test-Pod-Coverage | |
38 | BuildRequires: perl-Test-Simple | |
6b1c12e5 | 39 | BuildRequires: perl-XML-Twig |
c4120eae JB |
40 | BuildRequires: perl-XML-Writer |
41 | BuildRequires: perl-XML-XPath | |
42 | BuildRequires: perl-accessors | |
43 | BuildRequires: perl-libwww | |
44 | %endif | |
45 | BuildArch: noarch | |
46 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
47 | ||
48 | %description | |
49 | The libvirt TCK provides a framework for performing testing of the | |
50 | integration between libvirt drivers, the underlying virt hypervisor | |
51 | technology, related operating system services and system | |
52 | configuration. The idea (and name) is motivated by the Java TCK. | |
53 | ||
54 | %description -l pl.UTF-8 | |
55 | libvirt TCK udostępnia szkielet do wykonywania testów integracji | |
56 | między sterownikami libvirt, leżącymi poniżej ich hipernadzorcami, | |
57 | powiązanymi usługami systemów operacyjnych oraz konfiguracją systemu. | |
58 | Idea (i nazwa) została zainspirowana przez Java TCK. | |
59 | ||
60 | %prep | |
6b1c12e5 | 61 | %setup -q -n Sys-Virt-TCK-v%{version} |
c4120eae JB |
62 | |
63 | %build | |
64 | %{__perl} Build.PL \ | |
65 | installdirs=vendor | |
66 | ||
67 | ./Build | |
68 | ||
69 | %{?with_tests:./Build test} | |
70 | ||
71 | %install | |
72 | rm -rf $RPM_BUILD_ROOT | |
73 | ||
74 | ./Build install \ | |
75 | destdir=$RPM_BUILD_ROOT \ | |
76 | --install_path pkgdata=%{_datadir}/libvirt-tck/tests | |
77 | ||
78 | %clean | |
79 | rm -rf $RPM_BUILD_ROOT | |
80 | ||
81 | %files | |
82 | %defattr(644,root,root,755) | |
83 | %doc README | |
84 | %attr(755,root,root) %{_bindir}/libvirt-tck | |
85 | %dir %{_sysconfdir}/libvirt-tck | |
86 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libvirt-tck/default.cfg | |
87 | %dir %{perl_vendorlib}/Sys/Virt | |
88 | %{perl_vendorlib}/Sys/Virt/TCK.pm | |
89 | %{perl_vendorlib}/Sys/Virt/TCK | |
90 | %{_datadir}/libvirt-tck | |
91 | %{_mandir}/man1/libvirt-tck.1p* |