We don't need to manually build variables for perl install locations as RPM includes that. Signed-off-by: Daniel P. Berrangé <berrange@xxxxxxxxxx> --- perl-Sys-Virt-TCK.spec.PL | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/perl-Sys-Virt-TCK.spec.PL b/perl-Sys-Virt-TCK.spec.PL index aac6cf6..4b1683f 100644 --- a/perl-Sys-Virt-TCK.spec.PL +++ b/perl-Sys-Virt-TCK.spec.PL @@ -24,13 +24,6 @@ close SPEC; __DATA__ # Automatically generated by perl-Sys-Virt-TCK.spec.PL -%define perlvendorarch %(perl -e 'use Config; print $Config{installvendorarch}') -%define perlvendorlib %(perl -e 'use Config; print $Config{installvendorlib}') -%define perlvendorprefix %(perl -e 'use Config; print $Config{vendorprefix}') -%define perlvendorman1 %{perlvendorprefix}/share/man/man1 -%define perlvendorman3 %{perlvendorprefix}/share/man/man3 -%define perlversion %(perl -e 'use Config; print $Config{version}') - %define appname Sys-Virt-TCK Summary: Sys::Virt::TCK - libvirt Technology Compatibility Kit @@ -42,7 +35,7 @@ Group: Development/Tools Source: http://libvirt.org/sources/tck/%{appname}-v%{version}.tar.gz Url: http://libvirt.org/ BuildRoot: %{_tmppath}/%{appname}-%{version}-%{release}-root-%(%{__id_u} -n) -Requires: perl >= %{perlversion} +Requires: perl >= %{perl_version} Requires: libvirt >= 0.6.2 BuildRequires: perl(accessors) BuildRequires: perl(App::Prove) @@ -118,10 +111,9 @@ rm -rf $RPM_BUILD_ROOT %{_bindir}/libvirt-tck %dir %{_datadir}/libvirt-tck %{_datadir}/libvirt-tck/* -%{perlvendorman1}/* -#%{perlvendorman3}/* -%{perlvendorlib}/Sys/Virt/TCK.pm -%{perlvendorlib}/Sys/Virt/TCK/ +%{_mandir}/man1/* +%{perl_vendorlib}/Sys/Virt/TCK.pm +%{perl_vendorlib}/Sys/Virt/TCK/ %dir %{_localstatedir}/cache/libvirt-tck %changelog -- 2.17.0 -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list