<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16544" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hello,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I've made a software to retrace network activies. I 
want to create RPM of my project&nbsp;in order to put all my files scripts in a 
same document. Moreover, rpm permit&nbsp;me to check requires dependances of my 
project.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I've installed on my computer rpmbuild, then I've 
create directories for building&nbsp;my own rpm. After that, I've 
built&nbsp;specs file like that:</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>%define name metronet<BR>%define version 
0.6<BR>%define release rc22%{?dist}</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Summary: A complete network monitoring 
solution<BR>Name: %{name}<BR>Version: %{version}<BR>Release: 
%{release}<BR>License: GPL<BR>Group: Utilities/System<BR>Packager: Guillaume 
BERNARD &lt;<A 
href="mailto:bernardg@enseirb.fr">bernardg@enseirb.fr</A>&gt;<BR>URL: <A 
href="http://www.cri.u-bordeaux2.fr/">http://www.cri.u-bordeaux2.fr/</A><BR>Source0: 
%{name}_SCRIPTS.tar.gz<BR>Source1: %{name}_WEB.tar.gz</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>BuildRoot: 
/var/tmp/%{name}-%{version}-%{release}-root-buildroot</FONT></DIV>
<DIV><FONT face=Arial size=2>Requires: postgresql &gt;= 8.0 postgresql-devel 
postgresql-contrib postgresql-libs perl &gt;= 5.8 httpd &gt;= 2.0 php &gt;= 5 
php-pgsql</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>%description<BR>metronet is a complete solution 
which can monitor big network like University Bordeaux2.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>%prep<BR># Pour decompresser egalement archive 
secondaire<BR>%setup -q -a 1 -n "metronet"</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>#si le makefile installe rien<BR>mkdir -p 
$RPM_BUILD_ROOT/%{_bindir}/</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>#%clean<BR>#rm -rf $RPM_BUILD_ROOT</FONT></DIV>
<DIV>&nbsp;</DIV><FONT face=Arial size=2>
<DIV><BR>%files<BR>%defattr(-,root,root,755)<BR>/*<BR>%defattr(-,root,root,755)</DIV>
<DIV>&nbsp;</DIV>
<DIV><BR>%post<BR>mkdir /opt/metronet/<BR>#cp /%{name}-%{version}/* 
/opt/test/</DIV>
<DIV>&nbsp;</DIV>
<DIV><BR>%changelog<BR>* Tue Oct&nbsp; 29 2007 Guillaume BERNARD &lt;<A 
href="mailto:bernardg@enseirb.fr">bernardg@enseirb.fr</A>&gt; 0.5-1misc<BR>- 
initial release</DIV>
<DIV>&nbsp;</DIV>
<DIV>###<BR>### eof</DIV>
<DIV>&nbsp;</DIV>
<DIV>My project didn't have to be compile. Source0 contain perlSCRIPTS and 
Source1 web files.</DIV>
<DIV>So I haven't write&nbsp;in my specs file&nbsp;the makeinstall. Just 
rpmbuildroot creation. I've understand %files macro assure the copy of files in 
the system user, but on final I've only one file in /var/tmp 
(rpmbuildroot)</DIV>
<DIV>&nbsp;</DIV>
<DIV>Can you help me to understand my error(s)?</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thanks for advance.</DIV>
<DIV>Guillaume BERNARD</FONT></DIV></BODY></HTML>