I am trying new spec still getting an error ... Below is the spec and error . I don't know why the path ( /root/rpmbuild/BUILDROOT/ocsinventory-agent-2.0-0.x86_64 ) is being added as a prefix . Can anybody help plz
================================
# cat ocsinventory.spec
%define debug_package %{nil}
Name: ocsinventory-agent
Version: 2.0
Release: 0
Summary: ocsinventory-agent 2.0rc2
Group: Monitor
License: GPL
URL:
http://glam.com/ocsagnet
Source: Ocsinventory-Agent-2.0rc2.tar.gz
Requires: perl , perl-Module* , perl-XML-Simple , perl-ExtUtils* , perl-Proc-PID-File , perl-Proc-Daemon.noarch , perl-Net-SNMP , perl-Net-IP
%description
Ocsinventory-Agent for Opera Solutions
#%prep
#%setup -n ocsinventory-agent
#%build
#cd /usr/src/redhat/BUILD/Ocsinventory-Agent-2.0
#make
#%install
%files
/etc/cron.d/ocsinventory-agent
/usr/local/share/man/man1/ocsinventory-agent.1
/usr/local/bin/ocsinventory-agent
/usr/lib64/perl5/perllocal.pod
%dir /root/Ocsinventory-Agent-2.0rc2/*
%dir /usr/local/share/perl5/Ocsinventory/*
%dir /var/lib/ocsinventory-agent/
%dir /etc/ocsinventory-agent/
%config(noreplace) /etc/ocsinventory-agent/modules.conf
%config(noreplace) /etc/ocsinventory-agent/ocsinventory-agent.cfg
#SSLeay
#end
Errors
# rpmbuild -bb ocsinventory.spec
Processing files: ocsinventory-agent-2.0-0.x86_64
error: File not found: /root/rpmbuild/BUILDROOT/ocsinventory-agent-2.0-0.x86_64/etc/cron.d/ocsinventory-agent
error: File not found: /root/rpmbuild/BUILDROOT/ocsinventory-agent-2.0-0.x86_64/usr/local/share/man/man1/ocsinventory-agent.1
error: File not found: /root/rpmbuild/BUILDROOT/ocsinventory-agent-2.0-0.x86_64/usr/local/bin/ocsinventory-agent
error: File not found: /root/rpmbuild/BUILDROOT/ocsinventory-agent-2.0-0.x86_64/usr/lib64/perl5/perllocal.pod
error: File not found by glob: /root/rpmbuild/BUILDROOT/ocsinventory-agent-2.0-0.x86_64/root/Ocsinventory-Agent-2.0rc2/*
error: File not found by glob: /root/rpmbuild/BUILDROOT/ocsinventory-agent-2.0-0.x86_64/usr/local/share/perl5/Ocsinventory/*
error: File not found: /root/rpmbuild/BUILDROOT/ocsinventory-agent-2.0-0.x86_64/var/lib/ocsinventory-agent
error: File not found: /root/rpmbuild/BUILDROOT/ocsinventory-agent-2.0-0.x86_64/etc/ocsinventory-agent
error: File not found: /root/rpmbuild/BUILDROOT/ocsinventory-agent-2.0-0.x86_64/etc/ocsinventory-agent/modules.conf
error: File not found: /root/rpmbuild/BUILDROOT/ocsinventory-agent-2.0-0.x86_64/etc/ocsinventory-agent/ocsinventory-agent.cfg
RPM build errors:
File not found: /root/rpmbuild/BUILDROOT/ocsinventory-agent-2.0-0.x86_64/etc/cron.d/ocsinventory-agent
File not found: /root/rpmbuild/BUILDROOT/ocsinventory-agent-2.0-0.x86_64/usr/local/share/man/man1/ocsinventory-agent.1
File not found: /root/rpmbuild/BUILDROOT/ocsinventory-agent-2.0-0.x86_64/usr/local/bin/ocsinventory-agent
File not found: /root/rpmbuild/BUILDROOT/ocsinventory-agent-2.0-0.x86_64/usr/lib64/perl5/perllocal.pod
File not found by glob: /root/rpmbuild/BUILDROOT/ocsinventory-agent-2.0-0.x86_64/root/Ocsinventory-Agent-2.0rc2/*
File not found by glob: /root/rpmbuild/BUILDROOT/ocsinventory-agent-2.0-0.x86_64/usr/local/share/perl5/Ocsinventory/*
File not found: /root/rpmbuild/BUILDROOT/ocsinventory-agent-2.0-0.x86_64/var/lib/ocsinventory-agent
File not found: /root/rpmbuild/BUILDROOT/ocsinventory-agent-2.0-0.x86_64/etc/ocsinventory-agent
File not found: /root/rpmbuild/BUILDROOT/ocsinventory-agent-2.0-0.x86_64/etc/ocsinventory-agent/modules.conf
File not found: /root/rpmbuild/BUILDROOT/ocsinventory-agent-2.0-0.x86_64/etc/ocsinventory-agent/ocsinventory-agent.cfg
# ll ../SOURCES/
total 1428
-rw-r--r-- 1 root root 1460018 Jan 7 13:11 Ocsinventory-Agent-2.0rc2.tar.gz
# pwd
/usr/src/redhat/SPECS