[netsniff-ng] New version

Jaroslav Škarvada jskarvad at fedoraproject.org
Tue May 6 09:30:24 UTC 2014


commit 30afb2f5e066bb10e15ed46a46802057682b46e7
Author: Jaroslav Škarvada <jskarvad at redhat.com>
Date:   Tue May 6 11:30:44 2014 +0200

    New version
    
      Resolves: rhbz#1092943
    - Switched to libnl3
    - Switched to xz archive format to save space
    - Fixed bogus date in changelog (best effort)
    - Dropped flags and libcli-include-fix patches (both not needed)

 .gitignore                                 |    1 +
 netsniff-ng-0.5.7-flags.patch              |   12 ------
 netsniff-ng-0.5.7-libcli-include-fix.patch |    8 ----
 netsniff-ng.spec                           |   51 ++++++++++-----------------
 sources                                    |    2 +-
 5 files changed, 21 insertions(+), 53 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 041e2a3..d98a7a3 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
 netsniff-ng-*.tar.gz
+/netsniff-ng-0.5.8.tar.xz
diff --git a/netsniff-ng.spec b/netsniff-ng.spec
index e5d8bee..e290f93 100644
--- a/netsniff-ng.spec
+++ b/netsniff-ng.spec
@@ -2,21 +2,16 @@
 %bcond_without nacl
 
 Name:		netsniff-ng
-Version:	0.5.7
-Release:	11%{?dist}
+Version:	0.5.8
+Release:	1%{?dist}
 Summary:	Packet sniffing beast
 Group:		Applications/Internet
 License:	GPLv2
 URL:		http://netsniff-ng.org/
-Source0:	http://www.netsniff-ng.org/pub/netsniff-ng/netsniff-ng-%{version}.tar.gz
-# Temporal workaround for rhbz#836923
-Patch0:	netsniff-ng-0.5.7-libcli-include-fix.patch
-# drop -march/-mtune=native (breaks binaries and doesn't work on all arches)
-Patch1:	netsniff-ng-0.5.7-flags.patch
-BuildRoot:	%(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
-BuildRequires:	cmake ncurses-devel GeoIP-devel libnetfilter_conntrack-devel
-BuildRequires:	userspace-rcu-devel libnl-devel libcli-devel flex bison
-BuildRequires:	perl-podlators
+Source0:	http://www.netsniff-ng.org/pub/netsniff-ng/netsniff-ng-%{version}.tar.xz
+BuildRequires:	ncurses-devel GeoIP-devel libnetfilter_conntrack-devel
+BuildRequires:	userspace-rcu-devel libnl3-devel libcli-devel flex bison
+BuildRequires:	perl-podlators zlib-devel libpcap-devel libnet-devel
 %if %{with nacl}
 BuildRequires:	nacl-static
 %endif
@@ -39,30 +34,14 @@ netsniff-ng toolkit currently consists of the following utilities:
 
 %prep
 %setup -q
-%patch0 -p1 -b .libcli-include-fix
-%patch1 -p1 -b .flags
-
-%if %{with nacl}
-[ -r src/curvetun/nacl_path.cmake ] || \
-cat > src/curvetun/nacl_path.cmake <<":eof"
-SET(NACL_INCLUDE_DIR %{_includedir}/nacl)
-SET(NACL_LIB_DIR %{_libdir})
-:eof
-%endif
 
 %build
-cd src
-mkdir build
-cd build
-%cmake ..
-make  %{?_smp_mflags}
+%configure
+make %{?_smp_mflags}
 
 %install
-rm -rf $RPM_BUILD_ROOT
-make -C src/build DESTDIR="%{buildroot}" install
-
-%clean
-rm -rf $RPM_BUILD_ROOT
+make install PREFIX=%{_usr} DESTDIR="%{buildroot}"
+mv %{buildroot}%{_usr}/etc %{buildroot}/etc
 
 %files
 %defattr(-, root, root, -)
@@ -73,6 +52,14 @@ rm -rf $RPM_BUILD_ROOT
 %{_mandir}/man8/*
 
 %changelog
+* Tue May  6 2014 Jaroslav Škarvada <jskarvad at redhat.com> - 0.5.8-1
+- New version
+  Resolves: rhbz#1092943
+- Switched to libnl3
+- Switched to xz archive format to save space
+- Fixed bogus date in changelog (best effort)
+- Dropped flags and libcli-include-fix patches (both not needed)
+
 * Wed Feb 12 2014 Jaroslav Škarvada <jskarvad at redhat.com> - 0.5.7-11
 - Rebuilt due to liburcu update
 
@@ -168,6 +155,6 @@ rm -rf $RPM_BUILD_ROOT
 * Wed Jan 06 2010 James Findley <sixy at gmx.com> - 0.5.4.1-1
 - Updated to latest stable upstream
 
-* Mon Nov 27 2009 James Findley	<sixy at gmx.com> - 0.5.2-1
+* Fri Nov 27 2009 James Findley	<sixy at gmx.com> - 0.5.2-1
 - Initial Release
 
diff --git a/sources b/sources
index 021b629..5cfba14 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-d2da7a75d163f839129c9ebb8b0004d0  netsniff-ng-0.5.7.tar.gz
+df05687a7a791688a5275c63ad0cb1d6  netsniff-ng-0.5.8.tar.xz


More information about the scm-commits mailing list