<!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> </DIV>
<DIV><FONT face=Arial size=2>I've made a software to retrace network activies. I
want to create RPM of my project in order to put all my files scripts in a
same document. Moreover, rpm permit me to check requires dependances of my
project.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>I've installed on my computer rpmbuild, then I've
create directories for building my own rpm. After that, I've
built specs file like that:</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>%define name metronet<BR>%define version
0.6<BR>%define release rc22%{?dist}</FONT></DIV>
<DIV> </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 <<A
href="mailto:bernardg@enseirb.fr">bernardg@enseirb.fr</A>><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> </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 >= 8.0 postgresql-devel
postgresql-contrib postgresql-libs perl >= 5.8 httpd >= 2.0 php >= 5
php-pgsql</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </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> </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> </DIV>
<DIV><FONT face=Arial size=2>#si le makefile installe rien<BR>mkdir -p
$RPM_BUILD_ROOT/%{_bindir}/</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>#%clean<BR>#rm -rf $RPM_BUILD_ROOT</FONT></DIV>
<DIV> </DIV><FONT face=Arial size=2>
<DIV><BR>%files<BR>%defattr(-,root,root,755)<BR>/*<BR>%defattr(-,root,root,755)</DIV>
<DIV> </DIV>
<DIV><BR>%post<BR>mkdir /opt/metronet/<BR>#cp /%{name}-%{version}/*
/opt/test/</DIV>
<DIV> </DIV>
<DIV><BR>%changelog<BR>* Tue Oct 29 2007 Guillaume BERNARD <<A
href="mailto:bernardg@enseirb.fr">bernardg@enseirb.fr</A>> 0.5-1misc<BR>-
initial release</DIV>
<DIV> </DIV>
<DIV>###<BR>### eof</DIV>
<DIV> </DIV>
<DIV>My project didn't have to be compile. Source0 contain perlSCRIPTS and
Source1 web files.</DIV>
<DIV>So I haven't write in my specs file 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> </DIV>
<DIV>Can you help me to understand my error(s)?</DIV>
<DIV> </DIV>
<DIV>Thanks for advance.</DIV>
<DIV>Guillaume BERNARD</FONT></DIV></BODY></HTML>