forked from the-tcpdump-group/libpcap
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
mcr
committed
May 5, 2001
1 parent
6da97d1
commit e5faebb
Showing
1 changed file
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
%define prefix /usr | ||
%define version 2001.02.22 | ||
|
||
Summary: packet capture library | ||
Name: libpcap | ||
Version: %version | ||
Release: 1 | ||
Group: Development/Libraries | ||
Copyright: BSD | ||
Source: libpcap-current.tar.gz | ||
BuildRoot: /tmp/%{name}-buildroot | ||
URL: http://www.tcpdump.org | ||
|
||
%description | ||
Packet-capture library LIBPCAP 0.5 | ||
Now maintained by "The Tcpdump Group" | ||
See http://www.tcpdump.org | ||
Please send inquiries/comments/reports to tcpdump-workers@tcpdump.org | ||
|
||
%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,man} | ||
mkdir -p $RPM_BUILD_ROOT/usr/include/net | ||
mkdir -p $RPM_BUILD_ROOT/usr/man/man3 | ||
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-namedb.h $RPM_BUILD_ROOT/usr/include | ||
install -m 644 -o root net/bpf.h $RPM_BUILD_ROOT/usr/include/net | ||
|
||
%clean | ||
rm -rf $RPM_BUILD_ROOT | ||
|
||
%files | ||
%defattr(-,root,root) | ||
%doc LICENSE CHANGES INSTALL README.linux TODO VERSION CREDITS pcap.spec | ||
/usr/lib/libpcap.a | ||
/usr/include/pcap.h | ||
/usr/include/pcap-namedb.h | ||
/usr/include/net/bpf.h |