From 5cd98e825a0b9aa25b1720e694b80eab60227983 Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Tue, 11 Feb 2020 08:15:23 +0100 Subject: [PATCH] updated to 1.23 --- .gitignore | 1 + datefudge.spec | 10 +++++++--- datefudge_1.23-tz.patch | 24 ++++++++++++++++++++++++ sources | 2 +- 4 files changed, 33 insertions(+), 4 deletions(-) create mode 100644 datefudge_1.23-tz.patch diff --git a/.gitignore b/.gitignore index b91d0f3..e96a812 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ /datefudge_1.20.tar.gz /datefudge_1.21.tar.xz /datefudge_1.22.tar.xz +/datefudge_1.23.tar.xz diff --git a/datefudge.spec b/datefudge.spec index b0fdc65..6496379 100644 --- a/datefudge.spec +++ b/datefudge.spec @@ -1,11 +1,12 @@ Name: datefudge -Version: 1.22 -Release: 6%{?dist} +Version: 1.23 +Release: 1%{?dist} Summary: Fake the system date License: GPLv2+ URL: http://packages.qa.debian.org/d/datefudge.html Source0: http://cdn.debian.net/debian/pool/main/d/datefudge/%{name}_%{version}.tar.xz +Patch1: datefudge_1.23-tz.patch BuildRequires: gcc %description @@ -16,7 +17,7 @@ package is useful if you want to test the date handling of your programs without changing the system clock. %prep -%setup -q +%autosetup -p1 sed "s/VERSION := \$\(.*\)/VERSION := %{version}/g" -i Makefile sed 's/-o root -g root/-p/g' -i Makefile @@ -35,6 +36,9 @@ chmod +x %{buildroot}/%{_libexecdir}/%{name}/datefudge.so #for stripping %{_bindir}/datefudge %changelog +* Tue Feb 11 2020 Nikos Mavrogiannopoulos - 1.23-1 +- New upstream release + * Tue Jan 28 2020 Fedora Release Engineering - 1.22-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild diff --git a/datefudge_1.23-tz.patch b/datefudge_1.23-tz.patch new file mode 100644 index 0000000..10be068 --- /dev/null +++ b/datefudge_1.23-tz.patch @@ -0,0 +1,24 @@ +diff --git a/datefudge.c b/datefudge.c +index fe93ef8..5c2db2e 100644 +--- a/datefudge.c ++++ b/datefudge.c +@@ -66,8 +66,8 @@ time_t time(time_t *x) { + + #endif + +-int __gettimeofday(struct timeval *x, struct timezone *y) { +- static int (*libc_gettimeofday)(struct timeval *, struct timezone *) = NULL; ++int __gettimeofday(struct timeval *x, void *y) { ++ static int (*libc_gettimeofday)(struct timeval *, void *) = NULL; + int res; + + if(!libc_gettimeofday) +@@ -78,7 +78,7 @@ int __gettimeofday(struct timeval *x, struct timezone *y) { + return 0; + } + +-int gettimeofday(struct timeval *x, struct timezone *y) { ++int gettimeofday(struct timeval *x, void *y) { + return __gettimeofday(x,y); + } + diff --git a/sources b/sources index 3c89c97..255a4e6 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (datefudge_1.22.tar.xz) = ed67d334ca8296ae1c7b5ee1efc6ec7aafaad0aeb9f0f0387245c2eeea94ccc59ab804778b93ab8b34a512b83a3ec81d10f341d4f4f22b4a07fccdadaefb6d8b +SHA512 (datefudge_1.23.tar.xz) = 9b5d5f531b3f1a5ece96fbc421726c0b7edad5709ab46cb2deb201f9f6eeed2e33b7590e221e33473edb6dbdaaf46cbef0bd4be4fbd592e8efec18a343503f71