public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Bojan Smojver <bojan@rexursive.com>
To: git-commits@fedoraproject.org
Subject: [rpms/tcpreplay] f44: Update to 4.6.0
Date: Tue, 28 Jul 2026 02:33:31 GMT	[thread overview]
Message-ID: <178520601141.1.7901452071359150000.rpms-tcpreplay-f3eb93c687ef@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/tcpreplay
            Branch : f44
            Commit : f3eb93c687ef79f431e5deda861b8293ee877af7
            Author : Bojan Smojver <bojan@rexursive.com>
            Date   : 2026-07-28T12:33:11+10:00
            Stats  : +25/-52 in 3 file(s)
            URL    : https://src.fedoraproject.org/rpms/tcpreplay/c/f3eb93c687ef79f431e5deda861b8293ee877af7?branch=f44

            Log:
            Update to 4.6.0

Add -devel and -static for headers, pkgconfig file and static library

---
diff --git a/tcpreplay-4.5.1-configure_ac.patch b/tcpreplay-4.5.1-configure_ac.patch
deleted file mode 100644
index 06d2a84..0000000
--- a/tcpreplay-4.5.1-configure_ac.patch
+++ /dev/null
@@ -1,28 +0,0 @@
---- tcpreplay-4.5.1/configure.ac.org	2025-01-26 10:21:46.751142871 +1100
-+++ tcpreplay-4.5.1/configure.ac	2025-01-26 10:43:21.592419510 +1100
-@@ -1498,25 +1498,6 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
- ])
- 
- have_tx_ring=no
--dnl Check for older Linux TX_RING support
--AC_MSG_CHECKING(for TX_RING socket sending support)
--AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
--#include <sys/socket.h>
--#include <netpacket/packet.h>
--#include <net/ethernet.h>     /* the L2 protocols */
--#include <netinet/in.h>       /* htons */
--#include <linux/if_packet.h>
--]], [[
--    int test;
--    test = TP_STATUS_WRONG_FORMAT
--]])],[
--    AC_DEFINE([HAVE_TX_RING], [1],
--            [Do we have Linux TX_RING socket support?])
--    AC_MSG_RESULT(yes)
--    have_tx_ring=yes
--],[
--    AC_MSG_RESULT(no)
--])
- 
- AC_CHECK_HEADERS([bpf/libbpf.h])
- AC_CHECK_HEADERS([bpf/bpf.h])

diff --git a/tcpreplay-4.5.2-txring_h.patch b/tcpreplay-4.5.2-txring_h.patch
deleted file mode 100644
index a3b7e9f..0000000
--- a/tcpreplay-4.5.2-txring_h.patch
+++ /dev/null
@@ -1,14 +0,0 @@
---- tcpreplay-4.5.1/src/common/txring.h.org	2024-01-01 05:39:02.000000000 +1100
-+++ tcpreplay-4.5.1/src/common/txring.h	2025-01-26 10:24:02.811796480 +1100
-@@ -38,9 +38,9 @@
-
- #ifdef HAVE_TX_RING
- 
--#if __GLIBC__ >= 2 && __GLIBC_MINOR >= 1
--#include <net/ethernet.h> /* the L2 protocols */
-+#if __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1
- #include <netpacket/packet.h>
-+#include <net/ethernet.h> /* the L2 protocols */
- #else
- #include <asm/types.h>
- #include <linux/if_ether.h> /* The L2 protocols */

diff --git a/tcpreplay.spec b/tcpreplay.spec
index 82f4c86..b38202a 100644
--- a/tcpreplay.spec
+++ b/tcpreplay.spec
@@ -17,12 +17,9 @@ Summary:        Replay captured network traffic
 License:        GPL-3.0-only
 URL:            http://tcpreplay.appneta.com/
 Source:         https://github.com/appneta/tcpreplay/releases/download/v%{version}/tcpreplay-%{version}.tar.xz
-Patch0:         tcpreplay-4.5.2-txring_h.patch
-Patch1:         tcpreplay-4.5.1-configure_ac.patch
 
 BuildRequires:  make
 BuildRequires:  gcc
-BuildRequires:  automake autoconf libtool
 BuildRequires:  %{pcapdep} >= 0.8.0, tcpdump
 %if ! 0%{?rhel}
 BuildRequires:  libdnet-devel
@@ -36,20 +33,30 @@ a tool to pre-process capture files to allow increased performance under
 certain conditions as well as capinfo which provides basic information about
 capture files.
 
+%package devel
+Summary:        Development files for %{name}
+Requires:       %{name}%{?_isa} = %{version}-%{release}
+
+%description devel
+Header files and pkgconfig data for building applications against
+libtcpreplay, the replay engine %{name} %{version} now installs as
+a standalone library.
+
+%package static
+Summary:        Static library for %{name}
+Requires:       %{name}-devel%{?_isa} = %{version}-%{release}
+
+%description static
+The static (%{_libdir}/libtcpreplay.a) build of libtcpreplay.
+
 %prep
 %autosetup -p1
 
 %build
-autoreconf -vif
 %configure --enable-local-libopts \
            --disable-libopts-install \
            --disable-maintainer-mode
 
-# make sure we use proper CFLAGS
-%{__sed} -i \
-         -e 's/^CFLAGS.*/CFLAGS=${RPM_OPT_FLAGS} -std=gnu99 -D_U_="__attribute__((unused))" -Wno-format-contains-nul/' \
-         $(find . -name Makefile)
-
 # remove unneeded docs
 %{__rm} -f docs/INSTALL docs/Makefile*
 
@@ -67,9 +74,17 @@ autoreconf -vif
 %doc %{_mandir}/man1/*
 %{_bindir}/*
 
+%files devel
+%{_includedir}/%{name}/
+%{_libdir}/pkgconfig/libtcpreplay.pc
+
+%files static
+%{_libdir}/libtcpreplay.a
+
 %changelog
-* Tue Jul 28 2026 Bojan Smojver <bojan@rexursive com> - 4.6.0-1
+* Tue Jul 28 2026 Bojan Smojver <bojan@rexursive.com> - 4.6.0-1
 - Update to 4.6.0
+- Add -devel and -static for headers, pkgconfig file and static library
 
 * Fri Jul 24 2026 Bojan Smojver <bojan@rexursive com> - 4.5.5-1
 - Update to 4.5.5

             reply	other threads:[~2026-07-28  2:33 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-28  2:33 Bojan Smojver [this message]
  -- strict thread matches above, loose matches on Subject: below --
2026-07-28  1:43 [rpms/tcpreplay] f44: Update to 4.6.0 Bojan Smojver

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178520601141.1.7901452071359150000.rpms-tcpreplay-f3eb93c687ef@fedoraproject.org \
    --to=bojan@rexursive.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox