updated to 1.23

This commit is contained in:
Nikos Mavrogiannopoulos 2020-02-11 08:15:23 +01:00
parent 52a3a9b9e5
commit 5cd98e825a
4 changed files with 33 additions and 4 deletions

1
.gitignore vendored
View File

@ -2,3 +2,4 @@
/datefudge_1.20.tar.gz /datefudge_1.20.tar.gz
/datefudge_1.21.tar.xz /datefudge_1.21.tar.xz
/datefudge_1.22.tar.xz /datefudge_1.22.tar.xz
/datefudge_1.23.tar.xz

View File

@ -1,11 +1,12 @@
Name: datefudge Name: datefudge
Version: 1.22 Version: 1.23
Release: 6%{?dist} Release: 1%{?dist}
Summary: Fake the system date Summary: Fake the system date
License: GPLv2+ License: GPLv2+
URL: http://packages.qa.debian.org/d/datefudge.html URL: http://packages.qa.debian.org/d/datefudge.html
Source0: http://cdn.debian.net/debian/pool/main/d/datefudge/%{name}_%{version}.tar.xz Source0: http://cdn.debian.net/debian/pool/main/d/datefudge/%{name}_%{version}.tar.xz
Patch1: datefudge_1.23-tz.patch
BuildRequires: gcc BuildRequires: gcc
%description %description
@ -16,7 +17,7 @@ package is useful if you want to test the date handling of your
programs without changing the system clock. programs without changing the system clock.
%prep %prep
%setup -q %autosetup -p1
sed "s/VERSION := \$\(.*\)/VERSION := %{version}/g" -i Makefile sed "s/VERSION := \$\(.*\)/VERSION := %{version}/g" -i Makefile
sed 's/-o root -g root/-p/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 %{_bindir}/datefudge
%changelog %changelog
* Tue Feb 11 2020 Nikos Mavrogiannopoulos <nmav@redhat.com> - 1.23-1
- New upstream release
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.22-6 * Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.22-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild

24
datefudge_1.23-tz.patch Normal file
View File

@ -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);
}

View File

@ -1 +1 @@
SHA512 (datefudge_1.22.tar.xz) = ed67d334ca8296ae1c7b5ee1efc6ec7aafaad0aeb9f0f0387245c2eeea94ccc59ab804778b93ab8b34a512b83a3ec81d10f341d4f4f22b4a07fccdadaefb6d8b SHA512 (datefudge_1.23.tar.xz) = 9b5d5f531b3f1a5ece96fbc421726c0b7edad5709ab46cb2deb201f9f6eeed2e33b7590e221e33473edb6dbdaaf46cbef0bd4be4fbd592e8efec18a343503f71