# Automatically generated by perl-Sys-Virt-TCK.spec.PL %if 0%{?fedora} > 33 %global with_selinux 1 %global selinuxtype targeted %global modulename libvirt_tck %endif %define appname Sys-Virt-TCK Summary: Sys::Virt::TCK - libvirt Technology Compatibility Kit Name: perl-%{appname} Version: 1.1.0 Release: 8%{dist}.350 License: GPLv2 Source: http://libvirt.org/sources/tck/%{appname}-v%{version}.tar.gz Patch: test_tck.patch Url: http://libvirt.org/ Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) Requires: libvirt >= 4.4.0 %if 0%{?with_selinux} # This ensures that the *-selinux package and all it’s dependencies are not pulled # into containers and other systems that do not use SELinux Requires: (%{name}-selinux if selinux-policy-%{selinuxtype}) %endif BuildRequires: perl-interpreter BuildRequires: perl-generators BuildRequires: git BuildRequires: perl(accessors) BuildRequires: perl(App::Prove) BuildRequires: perl(Config::Record) BuildRequires: perl(Cwd) BuildRequires: perl(File::Spec::Functions) BuildRequires: perl(File::Copy) BuildRequires: perl(File::Path) BuildRequires: perl(File::Slurp) BuildRequires: perl(LWP::UserAgent) BuildRequires: perl(IO::String) BuildRequires: perl(IO::Uncompress::Gunzip) BuildRequires: perl(IO::Uncompress::Bunzip2) BuildRequires: perl(Module::Build) BuildRequires: perl(TAP::Formatter::HTML) BuildRequires: perl(TAP::Formatter::JUnit) BuildRequires: perl(TAP::Harness) BuildRequires: perl(TAP::Harness::Archive) BuildRequires: perl(Test::Builder) BuildRequires: perl(Test::More) BuildRequires: perl(Sub::Uplevel) BuildRequires: perl(Sys::Virt) >= 0.2.1 BuildRequires: perl(XML::Twig) BuildRequires: perl(XML::Writer) BuildRequires: perl(XML::XPath) BuildRequires: perl(Test::Pod) BuildRequires: perl(Test::Pod::Coverage) # RPM autoprovides misses these 3 Requires: perl(Test::Exception) Requires: perl(TAP::Formatter::HTML) Requires: perl(TAP::Formatter::JUnit) Requires: perl(TAP::Harness::Archive) Requires: perl(Net::OpenSSH) Requires: perl(IO::Pty) Requires: libguestfs-tools Requires: /usr/bin/mkisofs # Want to force this minimal version, so don't rely on RPM autoprov Requires: perl(Sys::Virt) >= 0.2.1 BuildArchitectures: noarch %description Sys::Virt::TCK provides an integration test suite for validating correct operation of libvirt drivers with underlying virtualization technology. %if 0%{?with_selinux} # SELinux subpackage %package selinux Summary: Sys-Virt-TCK SELinux policy Requires: selinux-policy-%{selinuxtype} Requires(post): selinux-policy-%{selinuxtype} BuildRequires: selinux-policy-devel BuildArch: noarch %{?selinux_requires} %description selinux SELinux policy module for Sys-Virt-TCK. %endif %prep %autosetup -S git_am -n %{appname}-v%{version} %build %{__perl} Build.PL installdirs=vendor ./Build %if 0%{?with_selinux} # SELinux policy (originally from selinux-policy-contrib) # this policy module will override the production module cd selinux make -f %{_datadir}/selinux/devel/Makefile %{modulename}.pp bzip2 -9 %{modulename}.pp %endif %install rm -rf $RPM_BUILD_ROOT ./Build install destdir=$RPM_BUILD_ROOT create_packlist=0 \ --install_path conf=%{_sysconfdir}/libvirt-tck \ --install_path pkgdata=%{_datadir}/libvirt-tck/tests find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; %{_fixperms} $RPM_BUILD_ROOT/* %__install -m 0755 -d $RPM_BUILD_ROOT%{_localstatedir}/cache/libvirt-tck %if 0%{?with_selinux} install -D -m 0644 selinux/%{modulename}.pp.bz2 %{buildroot}%{_datadir}/selinux/packages/%{selinuxtype}/%{modulename}.pp.bz2 %endif %if 0%{?with_selinux} # SELinux contexts are saved so that only affected files can be # relabeled after the policy module installation %pre selinux %selinux_relabel_pre -s %{selinuxtype} %post selinux %selinux_modules_install -s %{selinuxtype} %{_datadir}/selinux/packages/%{selinuxtype}/%{modulename}.pp.bz2 %postun selinux if [ $1 -eq 0 ]; then %selinux_modules_uninstall -s %{selinuxtype} %{modulename} fi %posttrans selinux %selinux_relabel_post -s %{selinuxtype} %endif %files %license LICENSE %doc README Changes %dir %{_sysconfdir}/libvirt-tck %config(noreplace) %{_sysconfdir}/libvirt-tck/default.cfg %{_bindir}/libvirt-tck %dir %{_datadir}/libvirt-tck %{_datadir}/libvirt-tck/* %{_mandir}/man1/* %{perl_vendorlib}/Sys/Virt/TCK.pm %{perl_vendorlib}/Sys/Virt/TCK/ %dir %{_localstatedir}/cache/libvirt-tck %if 0%{?with_selinux} %files selinux %{_datadir}/selinux/packages/%{selinuxtype}/%{modulename}.pp.* %ghost %{_sharedstatedir}/selinux/%{selinuxtype}/active/modules/200/%{modulename} %endif %changelog * Wed Jan 27 2021 Fedora Release Engineering - 1.1.0-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Tue Jul 28 2020 Fedora Release Engineering - 1.1.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Thu Jun 25 2020 Jitka Plesnikova - 1.1.0-6 - Perl 5.32 rebuild * Thu Jan 30 2020 Fedora Release Engineering - 1.1.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Fri Jul 26 2019 Fedora Release Engineering - 1.1.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Fri May 31 2019 Jitka Plesnikova - 1.1.0-3 - Perl 5.30 rebuild * Sat Feb 02 2019 Fedora Release Engineering - 1.1.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Mon Dec 24 2018 Daniel P. Berrangé - 1.1.0-1 - Update to 1.1.0 release * Fri Jul 13 2018 Fedora Release Engineering - 1.0.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Sat Jun 30 2018 Jitka Plesnikova - 1.0.0-2 - Perl 5.28 rebuild * Mon Jun 11 2018 Daniel P. Berrangé - 1.0.0-1 - Update to 1.0.0 release * Fri Feb 09 2018 Fedora Release Engineering - 0.1.0-26 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 0.1.0-25 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Tue Jun 06 2017 Jitka Plesnikova - 0.1.0-24 - Perl 5.26 rebuild * Sat Feb 11 2017 Fedora Release Engineering - 0.1.0-23 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild