Dominique Leuenberger 1 year ago committed by Git OBS Bridge
commit 2ec4c1f403

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Feb 9 08:23:54 UTC 2022 - Bernhard Wiedemann <bwiedemann@suse.com>
- Add reproducible.patch to override build date (boo#1047218)
-------------------------------------------------------------------
Wed Sep 23 07:11:45 UTC 2020 - Dirk Mueller <dmueller@suse.com>

@ -25,6 +25,7 @@ License: BSD-3-Clause
Group: Development/Libraries/C and C++
URL: https://codedocs.xyz/libnet/libnet/
Source0: https://github.com/libnet/libnet/releases/download/v%{version}/libnet-%{version}.tar.gz
Patch0: reproducible.patch
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: doxygen
@ -70,8 +71,7 @@ Libnet is an API to help with the construction and handling of network
packets. This package contains documentation.
%prep
%setup -q
###%patch1 -p1
%autosetup -p1
rm -rf sample/win32
# HACK: to have samples/ dir untouched and ready for installation

@ -0,0 +1,35 @@
https://github.com/libnet/libnet/pull/112
commit e65c6d042be83c8a0feacadd15f1bb027d020745
Author: Bernhard M. Wiedemann <bwiedemann@suse.de>
Date: Wed Sep 30 07:30:58 2020 +0200
Make man-page generation reproducible
For this we behave similar to pod2man and use the input file mtime.
Also adapt date format to what doxygen-1.8.20 produces
to make the comment above true again.
LC_ALL=C is used so that %B is independent of language.
Also use UTC to be independent of timezone.
This patch was done while working on reproducible builds for openSUSE.
Index: libnet-1.2/doc/fixmanpages.in
===================================================================
--- libnet-1.2.orig/doc/fixmanpages.in
+++ libnet-1.2/doc/fixmanpages.in
@@ -32,10 +32,10 @@ test -d $MANDIR/man3 || die "Could not l
find $MANDIR/man3/ -name "libnet.h.3" -exec sh -c 'rm -f "$1"' _ {} \;
# Let's create libnet.3 before dealing with the rest.
-# BTW: We're using this hideous date format because Doxygen generated man
+# BTW: We're using this date format because Doxygen generated man
# pages have them set like this and our date format shouldn't look different.
-pod2man -d "$(date +%a\ %b\ %d\ %C%y)" -n LIBNET -c "libnet Programmers Guide" -s 3 -r "@PACKAGE_NAME@-@PACKAGE_VERSION@" @top_srcdir@/doc/libnet.Pod man/man3/libnet.3 || die "Could not create libnet.3 in $MANDIR/man/man3."
+pod2man -d "$(LC_ALL=C date -u -r @top_srcdir@/doc/libnet.Pod +%d\ %B\ %Y)" -n LIBNET -c "libnet Programmers Guide" -s 3 -r "@PACKAGE_NAME@-@PACKAGE_VERSION@" @top_srcdir@/doc/libnet.Pod man/man3/libnet.3 || die "Could not create libnet.3 in $MANDIR/man/man3."
# pod2html --title="libnet Programmers Guide" --noindex --infile=libnet.Pod --outfile=libnet.html
Loading…
Cancel
Save