Re: problems building libpcap rpm ..

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Nope not working ..
Been through all the header info again and still the same error ..
What next ?

On 9/14/07, Gregory Machin <gregory.machin@xxxxxxxxx> wrote:
> On 9/14/07, Manuel Arostegui Ramirez <manuel@xxxxxxxxxxxxxx> wrote:
> > On Friday 14 September 2007 11:25:26 Gregory Machin wrote:
> > > On 9/14/07, Manuel Arostegui Ramirez <manuel@xxxxxxxxxxxxxx> wrote:
> > > > On Friday 14 September 2007 09:35:24 Gregory Machin wrote:
> > > > > I'm getting the following errors ....
> > > > > error: Name field must be present in package: (main package)
> > > > > error: Version field must be present in package: (main package)
> > > > > error: Release field must be present in package: (main package)
> > > > > error: Summary field must be present in package: (main package)
> > > > > error: Group field must be present in package: (main package)
> > > > > error: License field must be present in package: (main package)
> > > > >
> > > > > When I try to rpmbuild -ta /home/builder/rpm/SPECS/libpcap-0.8.3.spec
> > > > >
> > > > > The source file /home/builder/rpm/SOURCES/libpcap-0.8.3.tar.gz
> > > > >
> > > > > I have made sure that the same spec file is also in the
> > > > > libpcap-0.8.3.tar.gz
> > > > >
> > > > > what have i missed  ?
> > > > >
> > > > > Greg
> > > >
> > > > Hi Greg,
> > > >
> > > > Paste here the spec file you're using to rebuild the package.
> > > >
> > > > Cheers
> > > > Manuel
> > >
> > > %define prefix   /usr
> > > %define version 0.8.3
> > >
> > > Summary: packet capture library
> > > Name: libpcap
> > > Version: %version
> > > Release: 1
> > > Group: Development/Libraries
> > > Copyright: BSD
> > > Source: libpcap-0.8.3.tar.gz
> > > Patch0: libpcap-0.8.3-ppp.patch
> > >
> > > BuildRoot: /tmp/%{name}-buildroot
> > > URL: http://www.tcpdump.org
> > >
> > > %description
> > > Packet-capture library LIBPCAP 0.8
> > > Now maintained by "The Tcpdump Group"
> > > See http://www.tcpdump.org
> > > Please send inquiries/comments/reports to tcpdump-workers@xxxxxxxxxxx
> > >
> > > %prep
> > > %setup
> > >
> > > %post
> > > ldconfig
> > >
> > > %build
> > > CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%prefix
> > > make
> > >
> > > %install
> > > rm -rf $RPM_BUILD_ROOT
> > > mkdir -p $RPM_BUILD_ROOT/usr/{lib,include}
> > > mkdir -p $RPM_BUILD_ROOT/usr/share/man
> > > mkdir -p $RPM_BUILD_ROOT/usr/include/net
> > > mkdir -p $RPM_BUILD_ROOT/usr/man/man3
> > > make install DESTDIR=$RPM_BUILD_ROOT mandir=/usr/share/man
> > > cd $RPM_BUILD_ROOT/usr/lib
> > > V1=`echo 0.8 | sed 's/\\.[^\.]*$//g'`
> > > V2=`echo 0.8 | sed 's/\\.[^\.]*\.[^\.]*$//g'`
> > > ln -sf libpcap.so.0.8 libpcap.so.$V1
> > > if test "$V2" -ne "$V1"; then
> > >     ln -sf libpcap.so.$V1 libpcap.so.$V2
> > >     ln -sf libpcap.so.$V2 libpcap.so
> > > else
> > >     ln -sf libpcap.so.$V1 libpcap.so
> > > fi
> > >
> > > #install -m 755 -o root libpcap.a $RPM_BUILD_ROOT/usr/lib
> > > #install -m 644 -o root pcap.3 $RPM_BUILD_ROOT/usr/man/man3
> > > #install -m 644 -o root pcap.h $RPM_BUILD_ROOT/usr/include
> > > #install -m 644 -o root pcap-bpf.h $RPM_BUILD_ROOT/usr/include/net
> > > #install -m 644 -o root pcap-namedb.h $RPM_BUILD_ROOT/usr/include
> > >
> > > %clean
> > > rm -rf $RPM_BUILD_ROOT
> > >
> > > %files
> > > %defattr(-,root,root)
> > > %doc LICENSE CHANGES INSTALL.txt README.linux TODO VERSION CREDITS
> > > packaging/pcap.spec
> > > /usr/lib/libpcap.a
> > > /usr/share/man/man3/*
> > > /usr/include/pcap.h
> > > /usr/include/pcap-bpf.h
> > > /usr/include/pcap-namedb.h
> > > /usr/lib/libpcap.so*
> > >
> > > many thanks
> >
> > Use License: GPL
> > Instead of Copyright: GPL
> >
> > --
> > Manuel Arostegui Ramirez.
> Oh no ... is that all ... thanks for you time.
>
>
> --
> Gregory Machin
> gregory.machin@xxxxxxxxx
> www.linuxpro.co.za
>


-- 
Gregory Machin
gregory.machin@xxxxxxxxx
www.linuxpro.co.za


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux