diff --git a/ocsinventory-agent.spec b/ocsinventory-agent.spec index e591096..175afe0 100644 --- a/ocsinventory-agent.spec +++ b/ocsinventory-agent.spec @@ -6,7 +6,7 @@ Name: ocsinventory-agent Summary: Open Computer and Software Inventory Next Generation client Version: 1.1.1 -Release: 1%{?dist}%{?ocstag:.%{ocstag}} +Release: 2%{?dist}%{?ocstag:.%{ocstag}} #Source0: http://search.cpan.org/CPAN/authors/id/G/GO/GONERI/Ocsinventory-Agent-%{version}.tar.gz #Source0: http://nana.rulezlan.org/~goneri/ocsinventory-agent/Ocsinventory-Agent-nobundle-%{version}.tar.gz @@ -27,15 +27,24 @@ URL: http://www.ocsinventory-ng.org/ BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) -BuildRequires: perl(Module::Install) perl(XML::Simple) perl(LWP) perl(Net::IP) -BuildRequires: perl(Digest::MD5) perl(File::Temp) perl(XML::SAX) +%if 0%{?rhel} != 3 +BuildRequires: perl(Module::Install) perl(XML::SAX) +%endif +BuildRequires: perl(XML::Simple) perl(LWP) perl(Net::IP) +BuildRequires: perl(Digest::MD5) perl(File::Temp) + Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) Requires: net-tools, pciutils Requires: %{_sysconfdir}/logrotate.d, %{_sysconfdir}/cron.hourly Requires: perl(HTTP::Request) perl(Proc::Daemon) -Requires: perl(Net::SSLeay) perl(Crypt::SSLeay) +Requires: perl(Net::SSLeay) perl(Crypt::SSLeay) perl(Net::IP) Requires: nmap monitor-edid which -%if 0%{?rhel} == 4 +%if 0%{?rhel} == 3 +Requires: perl(XML::Parser) +%else +Requires: perl(XML::SAX) +%endif +%if 0%{?rhel}%{?fedora} <= 4 Requires: kernel-utils %else Requires: smartmontools @@ -49,6 +58,10 @@ Provides: ocsinventory-client = 1.02 # use the following line when version is strictly above 1.01 # ocsinventory-client = %{version}-%{release} +%if 0%{?rhel} == 3 +%define perl_vendorlib %(eval "`%{__perl} -V:installvendorlib`"; echo $installvendorlib) +%endif + %description Open Computer and Software Inventory Next Generation is an application @@ -199,6 +212,9 @@ rm -rf %{buildroot} %changelog +* Sun Dec 27 2009 Remi Collet 1.1.1-2 +- missing perl(Net::IP) requires (+ some EL3 stuff: yes, I know) + * Tue Dec 22 2009 Remi Collet 1.1.1-1 - update to 1.1.1