Re: problems building libpcap rpm ..

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

 



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.

Electronic Mail is not secure, may not be read every day, and should not
be used for urgent or sensitive issues.

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux