I'm trying to pack a software intp rpm. I have the source code.
I have source code net-snmp-5.6.1.1.tar.gz
I used the following commands...
cd ~
mkdir net-snmp
cd net-snmp
then i made directories SPECS, SRPMS, SOURCES, RPMS, BUILD
then i copied my source code into SOURCES directory. and put my spec file in 
SPECS directory. This is my net-snmp.spec file.
##################################################

%define _topdir    /root/net-snmp
%define name       net-snmp
%define version    5.6.1.1
Name:  %{name}
Version: %{version}
Release: 1
License: GPL
Group: Applications/System
Source: net-snmp-5.6.1.1.tar.gz
%define buildroot %{_topdir}/%{name}-%{version}-root
BuildRoot:     %{buildroot}
Prefix: /usr
Summary: SNMP, at its core, allows a management station to treat its network as 
a distributed database of health and configuration information .
%description
This package was originally based on the CMU 2.1.2.1 snmp code.
It has been greatly modified, restructured, enhanced and fixed.
It hardly looks the same as anything that CMU has ever released.
It was renamed from cmu-snmp to ucd-snmp in 1995 and later renamed from 
ucd-snmp to net-snmp in November 2000.
%prep
%setup -q
%build
./configure
make
%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install
%clean
rm -rf $RPM_BUILD_ROOT

##################################################################
  

Then, i fired the command

rpmbuild -v bb net-snmp.spec

Everything goes perfect. But it stops after %install and does not do %clean 
section. It does not give any sort of error too. I dont get any rpm too. I need 
this software in rpm format cause i need to provide it to  my coworkers. Kindly 
help me. I dont know whether it is a good place to ask or not. But your help is 
much needed now. 

Thanx in advance

----
Pankaj Kumar
_______________________________________________
Ilugd mailing list
[email protected]
http://frodo.hserus.net/mailman/listinfo/ilugd

Reply via email to