From 81056ffba0033d21744d006483e02b27ff558fbd Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 30 Dec 2010 17:10:31 +0100 Subject: improves yum-plugin, now compatible with EL-4 --- fusioninventory-agent.spec | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'fusioninventory-agent.spec') diff --git a/fusioninventory-agent.spec b/fusioninventory-agent.spec index f69f7e5..3996780 100644 --- a/fusioninventory-agent.spec +++ b/fusioninventory-agent.spec @@ -18,7 +18,9 @@ Source0: http://search.cpan.org/CPAN/authors/id/F/FU/FUSINV/FusionInventory-Ag Source1: %{name}.cron Source2: %{name}.init +# Will be in 2.1.8 archive Source3: %{name}.py +Source4: %{name}.conf Group: Applications/System License: GPLv2+ @@ -105,7 +107,7 @@ Summary: Ask FusionInventory agent to send an inventory when yum exits Summary(fr): Demande à l'agent FusionInventory l'envoi d'un inventaire Group: System Environment/Base BuildRequires: python-devel -Requires: yum >= 3.0 +Requires: yum >= 2.4 Requires: %{name} %description yum-plugin @@ -208,13 +210,9 @@ find %{buildroot} -type d -depth -exec rmdir {} 2>/dev/null ';' %{__install} -m 755 -Dp %{SOURCE1} %{buildroot}%{_sysconfdir}/cron.hourly/%{name} %{__install} -m 755 -Dp %{SOURCE2} %{buildroot}%{_initrddir}/%{name} -# Yum plugin +# Yum plugin installation %{__install} -m 644 -D %{SOURCE3} %{buildroot}/usr/lib/yum-plugins/%{name}.py -%{__mkdir_p} %{buildroot}%{_sysconfdir}/yum/pluginconf.d -cat <%{buildroot}%{_sysconfdir}/yum/pluginconf.d/%{name}.conf -[main] -enabled=1 -EOF +%{__install} -m 644 -D %{SOURCE4} %{buildroot}%{_sysconfdir}/yum/pluginconf.d/%{name}.conf %check -- cgit