Provided APT perl module installation in .spec
This commit is contained in:
parent
3d83ef76a8
commit
98cad74cd7
@ -95,11 +95,13 @@ popd
|
||||
%install
|
||||
pushd pve-rs
|
||||
install -pD -m0644 target/release/libpve_rs.so %buildroot%perl_vendor_autolib/libpve_rs.so
|
||||
mkdir -p %buildroot%perl_vendor_privlib/{PVE/RS/ResourceScheduling,Proxmox/Lib,Proxmox/RS}
|
||||
mkdir -p %buildroot%perl_vendor_privlib/{PVE/RS/ResourceScheduling,PVE/RS/APT,Proxmox/Lib,Proxmox/RS,Proxmox/RS/APT}
|
||||
install -m0644 PVE/RS/*.pm %buildroot%perl_vendor_privlib/PVE/RS/
|
||||
install -m0644 PVE/RS/ResourceScheduling/*.pm %buildroot%perl_vendor_privlib/PVE/RS/ResourceScheduling/
|
||||
install -m0644 PVE/RS/APT/*.pm %buildroot%perl_vendor_privlib/PVE/RS/APT/
|
||||
install -m0644 common/pkg/PVE/RS/*.pm %buildroot%perl_vendor_privlib/PVE/RS/
|
||||
install -m0644 Proxmox/RS/*.pm %buildroot%perl_vendor_privlib/Proxmox/RS/
|
||||
install -m0644 Proxmox/RS/APT/*.pm %buildroot%perl_vendor_privlib/Proxmox/RS/APT
|
||||
install -m0644 common/pkg/Proxmox/Lib/Common.pm Proxmox/Lib/PVE.pm %buildroot%perl_vendor_privlib/Proxmox/Lib/
|
||||
|
||||
%check
|
||||
@ -110,12 +112,16 @@ LD_LIBRARY_PATH='$LD_LIBRARY_PATH:../target/release' make check
|
||||
%perl_vendor_autolib/libpve_rs.so
|
||||
%dir %perl_vendor_privlib/PVE/RS
|
||||
%dir %perl_vendor_privlib/PVE/RS/ResourceScheduling
|
||||
%dir %perl_vendor_privlib/PVE/RS/APT
|
||||
%perl_vendor_privlib/PVE/RS/*.pm
|
||||
%perl_vendor_privlib/PVE/RS/ResourceScheduling/*.pm
|
||||
%perl_vendor_privlib/PVE/RS/APT/*.pm
|
||||
|
||||
%files -n libproxmox-rs-perl
|
||||
%dir %perl_vendor_privlib/Proxmox/RS
|
||||
%dir %perl_vendor_privlib/Proxmox/RS/APT
|
||||
%perl_vendor_privlib/Proxmox/RS/*
|
||||
%perl_vendor_privlib/Proxmox/RS/APT/*
|
||||
%dir %perl_vendor_privlib/Proxmox/Lib
|
||||
%perl_vendor_privlib/Proxmox/Lib/*
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user