Package pve-storage-linstor: Specfile

Name: pve-storage-linstor
Version: 8.0.1
Release: alt1

Summary: LINSTOR Proxmox Plugin
Group: System/Servers
License: GPLv2+

Url: https://github.com/LINBIT/linstor-proxmox
Vcs: https://github.com/LINBIT/linstor-proxmox.git

Source: %name-%version.tar

ExclusiveArch: x86_64 aarch64

BuildRequires(pre): rpm-build-perl
BuildRequires: pve-storage
BuildRequires: perl-JSON-XS
BuildRequires: perl(REST/Client.pm)
Requires: pve-manager
Requires: linstor-controller >= 1.27.0
# Requires: linstor-satellite >= 1.23.0

%add_perl_lib_path %buildroot%perl_vendor_privlib

%description
LINSTOR Proxmox Plugin.

%prep
%setup

%build
#Empty build

%install
	install -D -m 0644 ./LINSTORPlugin.pm %buildroot%perl_vendor_privlib/PVE/Storage/Custom/LINSTORPlugin.pm
	install -D -m 0644 ./LINBIT/Linstor.pm %buildroot%perl_vendor_privlib/LINBIT/Linstor.pm
	install -D -m 0644 ./LINBIT/PluginHelper.pm %buildroot%perl_vendor_privlib/LINBIT/PluginHelper.pm
	mkdir -p %buildroot%_cachedir/linstor-proxmox

%post
/sbin/service pvedaemon condrestart ||:

%postun
if [ $1 = 0 ]; then
    /sbin/service pvedaemon condrestart ||:
fi

%files
%doc README.md debian/copyright
%dir %perl_vendor_privlib/PVE/Storage/Custom
%perl_vendor_privlib/PVE/Storage/Custom/LINSTORPlugin.pm
%dir %perl_vendor_privlib/LINBIT
%perl_vendor_privlib/LINBIT/Linstor.pm
%perl_vendor_privlib/LINBIT/PluginHelper.pm
%_cachedir/linstor-proxmox/

%changelog
* Mon Apr 22 2024 Andrew A. Vasilyev <andy@altlinux.org> 8.0.1-alt1
- 8.0.1

* Wed Apr 17 2024 Andrew A. Vasilyev <andy@altlinux.org> 8.0.0-alt1
- 8.0.0

* Thu Jun 15 2023 Andrew A. Vasilyev <andy@altlinux.org> 7.0.1-alt1
- 7.0.1 (fix performance regression introduced with 7.0.0)

* Wed Apr 19 2023 Andrew A. Vasilyev <andy@altlinux.org> 7.0.0-alt1
- 7.0.0

* Tue Nov 08 2022 Andrew A. Vasilyev <andy@altlinux.org> 6.1.0-alt2
- pack /var/cache/linstor-proxmox directory

* Fri Oct 14 2022 Andrew A. Vasilyev <andy@altlinux.org> 6.1.0-alt1
- 6.1.0

* Wed Jul 13 2022 Andrew A. Vasilyev <andy@altlinux.org> 6.0.1-alt1
- 6.0.1

* Tue Jun 28 2022 Andrew A. Vasilyev <andy@altlinux.org> 6.0.0-alt1
- 6.0.0

* Wed Jan 05 2022 Andrew A. Vasilyev <andy@altlinux.org> 5.2.2-alt1
- 5.2.2

* Tue Nov 09 2021 Andrew A. Vasilyev <andy@altlinux.org> 5.2.1-alt1
- 5.2.1

* Mon Jul 12 2021 Andrew A. Vasilyev <andy@altlinux.org> 5.2.0-alt1
- 5.2.0

* Wed Jun 16 2021 Andrew A. Vasilyev <andy@altlinux.org> 5.1.5-alt2
- rebuild with new perl 5.34.0

* Tue Jun 08 2021 Andrew A. Vasilyev <andy@altlinux.org> 5.1.5-alt1
- 5.1.5

* Fri Nov 27 2020 Andrew A. Vasilyev <andy@altlinux.org> 5.1.4-alt1
- 5.1.4

* Mon Sep 28 2020 Andrew A. Vasilyev <andy@altlinux.org> 5.1.3-alt1
- 5.1.3

* Tue Jun 23 2020 Andrew A. Vasilyev <andy@altlinux.org> 5.1.2-alt1
- 5.1.2

* Tue Mar 17 2020 Andrew A. Vasilyev <andy@altlinux.org> 4.1.2-alt1
- initial build for ALT