]> The Tcpdump Group git mirrors - libpcap/commitdiff
remove pcap.spec (GH #384)
authorDenis Ovsienko <[email protected]>
Sat, 15 Nov 2014 18:52:11 +0000 (18:52 +0000)
committerDenis Ovsienko <[email protected]>
Sat, 15 Nov 2014 19:21:42 +0000 (19:21 +0000)
The file does nothing because RPM-based OS distributions have developed
their own .spec files to build the libpcap .rpm in accordance to their
standard (let alone dpkg and ports). There is no reasonable way and
sense to outperform them in that, yet there is a number of other
outstanding problems, thus I find it best to remove the file.

Those looking to produce a custom OS package of libpcap should base
their work on one of the many existing libpcap packages.

INSTALL.txt
Makefile.in
packaging/pcap.spec.in [deleted file]

index 7bbbf0cb8e1c0ce2e22c83207ca83b5dd38b2b92..12f19ccd91bd5d7eeb4c1a0c333e176862fd1e42 100644 (file)
@@ -345,7 +345,6 @@ nametoaddr.c        - hostname to address routines
 nlpid.h                - OSI network layer protocol identifier definitions
 net            - symlink to bpf/net
 optimize.c     - BPF optimization routines
-packaging      - packaging information for building libpcap RPMs
 pcap/bluetooth.h - public definition of DLT_BLUETOOTH_HCI_H4_WITH_PHDR header
 pcap/bpf.h     - BPF definitions
 pcap/namedb.h  - public libpcap name database definitions
index 1c2d7459943f977ec0874418c743ded5146c529d..749345b263d50624522de89ab31310a2ab29251f 100644 (file)
@@ -291,7 +291,6 @@ EXTRA_DIST = \
        msdos/pktdrvr.h \
        msdos/readme.dos \
        org.tcpdump.chmod_bpf.plist \
-       packaging/pcap.spec.in \
        pcap-bpf.c \
        pcap-bt-linux.c \
        pcap-bt-linux.h \
@@ -731,10 +730,6 @@ distclean: clean
 tags: $(TAGFILES)
        ctags -wtd $(TAGFILES)
 
-packaging/pcap.spec: packaging/pcap.spec.in VERSION
-       RPMVERSION=`cat VERSION | sed s/-.*//g`; \
-               sed -e s/@VERSION@/$$RPMVERSION/ -e s/@NAME@/libpcap-`cat VERSION`/ $<   > $@
-
 releasetar:
        @cwd=`pwd` ; dir=`basename $$cwd` ; name=$(PROG)-`cat VERSION` ; \
           mkdir $$name; \
diff --git a/packaging/pcap.spec.in b/packaging/pcap.spec.in
deleted file mode 100644 (file)
index ff7b996..0000000
+++ /dev/null
@@ -1,77 +0,0 @@
-%define prefix   /usr
-%define version @VERSION@
-
-Summary: A system-independent interface for user-level packet capture
-Name: libpcap
-Version: %version
-Release: 1
-Group: Development/Libraries
-License: BSD with advertising
-BuildRoot: /tmp/%{name}-buildroot
-URL: http://www.tcpdump.org
-
-Source: http://www.tcpdump.org/release/%{name}-%{version}.tar.gz
-
-%description
-Libpcap provides a portable framework for low-level network
-monitoring.  Libpcap can provide network statistics collection,
-security monitoring and network debugging.  Since almost every system
-vendor provides a different interface for packet capture, the libpcap
-authors created this system-independent API to ease in porting and to
-alleviate the need for several system-dependent packet capture modules
-in each application.
-
-Install libpcap if you need to do low-level network traffic monitoring
-on your network.
-
-%package devel
-Summary: Libraries and header files for the libpcap library
-Group: Development/Libraries
-
-%description devel
-Libpcap provides a portable framework for low-level network
-monitoring.  Libpcap can provide network statistics collection,
-security monitoring and network debugging.  Since almost every system
-vendor provides a different interface for packet capture, the libpcap
-authors created this system-independent API to ease in porting and to
-alleviate the need for several system-dependent packet capture modules
-in each application.
-
-This package provides the libraries, include files, and other 
-resources needed for developing libpcap applications.
-%prep
-%setup -q
-
-%build
-export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
-%configure
-make %{?_smp_mflags}
-
-%install
-rm -rf $RPM_BUILD_ROOT
-
-make DESTDIR=$RPM_BUILD_ROOT install
-
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-%files
-%defattr(-,root,root)
-%doc LICENSE README CHANGES INSTALL.txt README.linux TODO VERSION CREDITS packaging/pcap.spec
-%{_libdir}/libpcap.so.*
-%{_mandir}/man7/pcap*.7*
-
-%files devel
-%defattr(-,root,root)
-%{_bindir}/pcap-config
-%{_includedir}/pcap/*.h
-%{_includedir}/pcap.h
-%{_includedir}/pcap-bpf.h
-%{_includedir}/pcap-namedb.h
-%{_libdir}/libpcap.so
-%{_libdir}/libpcap.a
-%{_mandir}/man1/pcap-config.1*
-%{_mandir}/man3/pcap*.3*
-%{_mandir}/man5/pcap*.5*