# COPR Ligenix's spec file for glpi-plugin-ocsinventoryng # # Copyright (c) 2021-2022 Jean-Marc Liger # # Forked from: # # remirepo spec file for glpi-ocsinventoryng # # Copyright (c) 2013-2019 Remi Collet # License: CC-BY-SA # http://creativecommons.org/licenses/by-sa/4.0/ # # Please, preserve the changelog entries # %global pluginname ocsinventoryng %global lockname ocsinventoryng.lock %global glpi_min 10.0.0 %global glpi_max 10.1.0 Name: glpi-plugin-%{pluginname} Version: 2.0.4 Release: 1%{?dist} Summary: Plugin to synchronize GLPI with OCS Inventory NG License: GPLv2+ URL: https://github.com/pluginsGLPI/%{pluginname} Source0: https://github.com/pluginsGLPI/%{pluginname}/releases/download/v%{version}/glpi-%{pluginname}-%{version}.tar.bz2 BuildArch: noarch BuildRequires: gettext Requires: crontabs Requires: php-cli # phpcompatinfo for version 1.4.0 Requires: php-simplexml Requires: php-date Requires: php-json Requires: php-mbstring Requires: php-pcntl Requires: php-pcre Requires: php-soap %if 0%{?fedora} || 0%{?rhel} >= 8 Requires: (glpi >= %{glpi_min} with glpi < %{glpi_max}) %else Requires: glpi >= %{glpi_min} Requires: glpi < %{glpi_max} %endif Provides: glpi-%{pluginname} = %{version}-%{release} Obsoletes: glpi-%{pluginname} <= 1.6.0 # Latest version is 1.6.x for GLPI 0.83.x Obsoletes: glpi-mass-ocs-import < 1.7 Provides: glpi-mass-ocs-import = 1.7.0 Provides: glpi-massocsimport = 1.7.0 %description This plugin allows you to synchronize GLPI inventory with OCS Inventory NG. It's intended to replace native mode OCS of GLPI and use the massocsimport plugin features to provide better compatibility and extensibility with OCS. %prep %setup -q -c # display compatibility check grep 'min' %{pluginname}/setup.php # for developer only rm %{pluginname}/TOKNOW.txt # for Windows only rm %{pluginname}/scripts/*.bat mv %{pluginname}/docs docs mv %{pluginname}/README.md docs/ # dos2unix to avoid rpmlint warnings find docs/ -type f -exec sed -i 's/\r//' {} + find docs/ -type f -exec chmod -x {} + # access retricted in apache config rm ocsinventoryng/scripts/.htaccess \ ocsinventoryng/install/mysql/.htaccess # protect install files cat >httpd < Require all denied Order Allow,Deny Deny from all Require all denied Order Allow,Deny Deny from all EOF cat >cron < - 2.0.4-1 - Version 2.0.4 * Thu Oct 27 2022 Jean-Marc Liger - 2.0.2-2 - Update apache conf file * Mon Oct 10 2022 Jean-Marc Liger - 2.0.2-1 - Version 2.0.2 * Sat Jul 30 2022 Jean-Marc Liger - 2.0.1-1 - Version 2.0.1 for GLPI 10.0.x * Mon May 17 2021 Jean-Marc Liger - 1.7.3-2 - update spec file's copyright, thanks again to Remy Collet! * Thu Apr 15 2021 Jean-Marc Liger - 1.7.3-1 - rename to glpi-plugin-ocsinventory - update to 1.7.3 for GLPI 9.5 * Mon Feb 25 2019 Remi Collet - 1.6.0-1 - update to 1.6.0 for GLPI 9.4 * Fri Dec 7 2018 Remi Collet - 1.5.6-1 - update to 1.5.6 * Tue Sep 25 2018 Remi Collet - 1.5.4-1 - update to 1.5.4 * Mon Sep 3 2018 Remi Collet - 1.5.3-1 - update to 1.5.3 * Tue Aug 14 2018 Remi Collet - 1.5.2-1 - update to 1.5.2 * Sun Aug 12 2018 Remi Collet - 1.5.1-1 - Update to 1.5.1 for GLPI 9.3 * Tue Jul 17 2018 Remi Collet - 1.5.0-1 - Update to 1.5.0 for GLPI 9.3 * Wed Jul 4 2018 Remi Collet - 1.4.4-1 - Update to 1.4.4 for GLPI 9.2 * Wed Feb 21 2018 Remi Collet - 1.4.3-1 - Update to 1.4.3 for GLPI 9.2 * Thu Oct 19 2017 Remi Collet - 1.4.2-1 - Update to 1.4.2 for GLPI 9.2 * Thu Oct 19 2017 Remi Collet - 1.4.1-1 - Update to 1.4.1 for GLPI 9.2 * Wed Oct 18 2017 Remi Collet - 1.4.0-1 - Update to 1.4.0 for GLPI 9.2 - open https://github.com/pluginsGLPI/ocsinventoryng/issues/114 upgrade is broken * Mon Jan 16 2017 Remi Collet - 1.3.2-1 - Update to 1.3.2 for GLPI 9.1.1 * Tue Nov 29 2016 Remi Collet - 1.3.1-1 - Update to 1.3.1 for GLPI 9.1.1 * Tue Nov 29 2016 Remi Collet - 1.3.0-1 - Update to 1.3.0 for GLPI 9.1.1 - update script is broken open https://github.com/pluginsGLPI/ocsinventoryng/issues/58 * Wed Sep 28 2016 Remi Collet - 1.2.3-1 - Update to 1.2.3 for GLPI 9.1 * Fri Sep 16 2016 Remi Collet - 1.2.2-1 - Update to 1.2.2 for GLPI 0.90 and 9.1 - sources from github * Fri Nov 27 2015 Remi Collet - 1.2.1-1 - Update to 1.2.1 for GLPI 0.90 https://forge.glpi-project.org/versions/1181 * Thu Oct 8 2015 Remi Collet - 1.2.0-1 - Update to 1.2.0 for GLPI 0.90 https://forge.glpi-project.org/versions/1179 * Wed Sep 16 2015 Remi Collet - 1.1.2-1 - Update to 1.1.2 for GLPI 0.85+ https://forge.glpi-project.org/versions/1131 * Mon Jun 8 2015 Remi Collet - 1.1.1-1 - Update to 1.1.1 for GLPI 0.85+ - add upstream patch for https://forge.indepnet.net/issues/5359 * Sun Mar 1 2015 Remi Collet - 1.1.0-1 - Update to 1.1.0 for GLPI 0.85+ https://forge.indepnet.net/versions/1116 * Mon Sep 8 2014 Remi Collet - 1.0.3-1 - Update to 1.0.3 for GLPI 0.84+ https://forge.indepnet.net/versions/957 * Wed Oct 2 2013 Remi Collet - 1.0.2-1 - Initial RPM (from glpi-mass-ocs-import.spec)