diff options
author | Remi Collet <fedora@famillecollet.com> | 2010-12-30 17:10:31 +0100 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2010-12-30 17:10:31 +0100 |
commit | 81056ffba0033d21744d006483e02b27ff558fbd (patch) | |
tree | 26996b6b6f1c4becc7b96490ab17cc5cce859efe /fusioninventory-agent.spec | |
parent | 207af2b6a0b357e7b0ba0ed3046bac5e3dafc9c4 (diff) |
improves yum-plugin, now compatible with EL-4
Diffstat (limited to 'fusioninventory-agent.spec')
-rw-r--r-- | fusioninventory-agent.spec | 12 |
1 files changed, 5 insertions, 7 deletions
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 <<EOF >%{buildroot}%{_sysconfdir}/yum/pluginconf.d/%{name}.conf -[main] -enabled=1 -EOF +%{__install} -m 644 -D %{SOURCE4} %{buildroot}%{_sysconfdir}/yum/pluginconf.d/%{name}.conf %check |