# COPR Ligenix's spec file for glpi-plugin-glpiinventory # # Copyright (c) 2022-2024 Jean-Marc Liger # # License: CC-BY-SA # http://creativecommons.org/licenses/by-sa/4.0/ # # Please, preserve the changelog entries # %global pluginname glpiinventory %global glpi_min 10.0.10 %global glpi_max 10.1.0 Name: glpi-plugin-%{pluginname} Version: 1.3.5 Release: 1%{?dist} Summary: Plugin to handle various types of tasks for GLPI agents License: AGPLv3+ URL: https://github.com/glpi-project/glpi-inventory-plugin Source0: https://github.com/glpi-project/glpi-inventory-plugin/releases/download/%{version}/glpi-%{pluginname}-%{version}.tar.bz2 BuildArch: noarch %if 0%{?fedora} || 0%{?rhel} >= 8 Requires: (glpi >= %{glpi_min} with glpi < %{glpi_max}) %else Requires: glpi >= %{glpi_min} Requires: glpi < %{glpi_max} %endif %description Plugin to handle various types of tasks for GLPI agents: - Network discovery and inventory (SNMP) - Software deployment - VMWare ESX host remote inventory - Collect data (files, Windows registry, WMI) Computer and Network inventories themselves are done on GLPI side; the plugin only handle network related tasks. %prep %setup -q -c grep "define('PLUGIN_GLPI_INVENTORY_GLPI_M.._VERSION" %{pluginname}/setup.php # remove unused files rm %{pluginname}/{.,}*.xml rm %{pluginname}/phpstan.neon rm %{pluginname}/composer.json # move doc files mkdir docs mv %{pluginname}/*.md docs/ # .htaccess replaced by a httpd config file rm %{pluginname}/install/mysql/.htaccess # protect install files cat >httpd < Require all denied Order Allow,Deny Deny from all php_admin_flag allow_url_fopen On php_admin_flag allow_url_fopen On EOF # override PHP configuration for php-fpm cat >php < - 1.3.5-1 - Update to 1.3.5 * Sun Dec 17 2023 Jean-Marc Liger - 1.3.4-1 - Update to 1.3.4 * Thu Nov 09 2023 Jean-Marc Liger - 1.3.3-1 - Update to 1.3.3 * Fri Oct 20 2023 Jean-Marc Liger - 1.3.1-1 - Update to 1.3.1 * Thu Oct 12 2023 Jean-Marc Liger - 1.3.0-1 - Update to 1.3.0 * Tue Jul 11 2023 Jean-Marc Liger - 1.2.3-1 - Update to 1.2.3 * Fri Jul 07 2023 Jean-Marc Liger - 1.2.2-1 - Update to 1.2.2 * Mon May 01 2023 Jean-Marc Liger - 1.2.1-2 - Add apache and php conf files * Mon May 01 2023 Jean-Marc Liger - 1.2.1-1 - Update to 1.2.1 * Mon Dec 12 2022 Jean-Marc Liger - 1.0.6-1 - Update to 1.0.6 * Mon Nov 14 2022 Jean-Marc Liger - 1.0.5-1 - Update to 1.0.5 - Correct License * Thu Sep 15 2022 Jean-Marc Liger - 1.0.4-1 - Update to 1.0.4 * Sat Jul 30 2022 Jean-Marc Liger - 1.0.3-2 - Correct URL * Sat Jul 30 2022 Jean-Marc Liger - 1.0.3-1 - Version 1.0.3 for GLPI 10.0.x - Initial RPM based on Remi Collet previous GLPI plugins spec files