diff options
author | Remi Collet <fedora@famillecollet.com> | 2010-08-18 18:14:56 +0200 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2010-08-18 18:14:56 +0200 |
commit | bad696f0b4f6eeb5385daa2ddc42df376e799d73 (patch) | |
tree | a930dc75a120f29b65e6ea1c99653a1191d3891b | |
parent | 1d46e7936a1e00129af6431253afa4d853a7fd92 (diff) |
fusioninventory-agent : perl filter again...
-rw-r--r-- | fusioninventory-agent.spec | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fusioninventory-agent.spec b/fusioninventory-agent.spec index 2d29b77..ffe6816 100644 --- a/fusioninventory-agent.spec +++ b/fusioninventory-agent.spec @@ -94,13 +94,18 @@ Vous pouvez ajouter les paquets additionnels pour les tâches optionnelles : %setup -q -n FusionInventory-Agent-%{version} %endif +# This work only on older version, and is ignored on recent cat <<EOF | tee %{name}-req #!/bin/sh %{__perl_requires} $* | \ sed -e '/perl(Win32/d' EOF +%if 0%{?gitver:1} +%global __perl_requires %{_builddir}/fusinv-fusioninventory-agent-%{gitver}/%{name}-req +%else %global __perl_requires %{_builddir}/FusionInventory-Agent-%{version}/%{name}-req +%endif chmod +x %{__perl_requires} cat <<EOF | tee logrotate |