0.3.3-alt1

- Update:
  + libproxmox-rs-perl 0.3.3
  + libpve-rs-perl 0.8.8
- new building scheme
This commit is contained in:
Andrew A. Vasilyev 2024-02-28 20:26:16 +03:00
parent 75f1ce8d85
commit cdc3fe47c5
2 changed files with 31 additions and 11 deletions

View File

@ -1,8 +1,9 @@
%global _unpackaged_files_terminate_build 1
%def_without check
Name: proxmox-perl-rs
Version: 0.2.1
Release: alt3
Version: 0.3.3
Release: alt1
Summary: PVE and PMG common parts which have been ported to Rust
License: AGPL-3.0+
Group: Development/Other
@ -10,6 +11,7 @@ URL: https://www.proxmox.com
Vcs: git://git.proxmox.com/git/proxmox-perl-rs.git
Source: %name-%version.tar
Patch: %name-%version.patch
Source1: genpackage.pl
ExclusiveArch: x86_64 aarch64
@ -25,7 +27,7 @@ libpve-rs-perl and libpmg-rs-perl, loading whichever is available.
%package -n libproxmox-rs-perl
Summary: PVE/PMG common parts which have been ported to Rust
Version: 0.2.1
Version: 0.3.3
Group: Development/Other
Provides: proxmox-perl-rs = %EVR
Provides: proxmox-rs-perl = %EVR
@ -35,7 +37,7 @@ Provides: proxmox-rs-perl = %EVR
%package -n libpve-rs-perl
Summary: PVE parts which have been ported to Rust
Version: 0.7.3
Version: 0.8.8
Group: Development/Other
Provides: pve-perl-rs = %EVR
Provides: pve-rs-perl = %EVR
@ -45,7 +47,7 @@ Provides: pve-rs-perl = %EVR
%package -n libpmg-rs-perl
Summary: Components of Proxmox Mail Gateway which have been ported to Rust
Version: 0.6.2
Version: 0.7.5
Group: Development/Other
Provides: pmg-perl-rs = %EVR
Provides: pmg-rs-perl = %EVR
@ -60,20 +62,31 @@ Provides: pmg-rs-perl = %EVR
%build
export BUILD_MODE=release
export PERLMOD_WRITE_PACKAGES=1
#%make pve
#%make pmg
#%make build
%make gen
%make pve
export BUILD_TARGET=pve
export RUSTFLAGS="-L/usr/lib64/perl5/CORE -lperl"
cp %SOURCE1 common/pkg/
cp %SOURCE1 pmg-rs/
cp %SOURCE1 pve-rs/
sed -i 's|/usr/lib/perlmod/genpackage.pl|./genpackage.pl|' common/pkg/Makefile pmg-rs/Makefile pve-rs/Makefile
# Build only in pve-rs:
pushd pve-rs
%make
%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}
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 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/Lib/{Common,PVE}.pm %buildroot%perl_vendor_privlib/Proxmox/Lib/
install -m0644 common/pkg/Proxmox/Lib/Common.pm Proxmox/Lib/PVE.pm %buildroot%perl_vendor_privlib/Proxmox/Lib/
%check
pushd pve-rs
LD_LIBRARY_PATH='$LD_LIBRARY_PATH:../target/release' make check
%files -n libpve-rs-perl
%perl_vendor_autolib/libpve_rs.so
@ -90,6 +103,12 @@ install -m0644 Proxmox/Lib/{Common,PVE}.pm %buildroot%perl_vendor_privlib/Proxmo
%changelog
* Thu Feb 22 2024 Andrew A. Vasilyev <andy@altlinux.org> 0.3.3-alt1
- Update:
+ libproxmox-rs-perl 0.3.3
+ libpve-rs-perl 0.8.8
- new building scheme
* Tue Nov 07 2023 Andrew A. Vasilyev <andy@altlinux.org> 0.2.1-alt3
- libpve-rs-perl: add linking with libperl (Closes: #48330)

View File

@ -1,3 +1,4 @@
spec: .gear/proxmox-perl-rs.spec
tar: upstream:.
diff: upstream:. . name=@name@-@version@.patch
copy?: .gear/*.pl