[datefudge] Initial import (#1031527).

Nikos Mavrogiannopoulos nmav at fedoraproject.org
Tue Nov 19 13:25:36 UTC 2013


commit afd321bafeb7692ffa0cc8b4ca7bb844cd682eaa
Author: Nikos Mavrogiannopoulos <nmav at redhat.com>
Date:   Tue Nov 19 14:25:56 2013 +0100

    Initial import (#1031527).

 .gitignore           |    1 +
 datefudge-make.patch |   27 +++++++++++++++++++++++++++
 datefudge.spec       |   42 ++++++++++++++++++++++++++++++++++++++++++
 sources              |    1 +
 4 files changed, 71 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..94cc1c9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/datefudge_1.18.tar.gz
diff --git a/datefudge-make.patch b/datefudge-make.patch
new file mode 100644
index 0000000..3c20961
--- /dev/null
+++ b/datefudge-make.patch
@@ -0,0 +1,27 @@
+Common subdirectories: datefudge-1.18.orig/debian and datefudge-1.18/debian
+diff -u datefudge-1.18.orig/Makefile datefudge-1.18/Makefile
+--- datefudge-1.18.orig/Makefile	2013-05-11 19:02:28.000000000 +0200
++++ datefudge-1.18/Makefile	2013-11-13 15:18:56.919488272 +0100
+@@ -1,6 +1,6 @@
+ # $Id: Makefile 19 2011-02-14 22:21:52Z robert $
+ 
+-VERSION := $(shell dpkg-parsechangelog | sed -n 's/^Version: //p')
++VERSION := 1.18
+ 
+ CC       = gcc
+ CFLAGS  += -Wall -Wextra -D_REENTRANT -fpic
+@@ -20,11 +20,11 @@
+ 
+ install: datefudge datefudge.so datefudge.1
+ 	install -d $(DESTDIR)$(libdir)/$(libarch)
+-	$(INSTALL_PROGRAM) -o root -g root -m 644 datefudge.so $(DESTDIR)$(libdir)/$(libarch)/datefudge.so
++	$(INSTALL_PROGRAM) -p -m 644 datefudge.so $(DESTDIR)$(libdir)/$(libarch)/datefudge.so
+ 	install -d $(DESTDIR)$(bindir)
+-	$(INSTALL_PROGRAM) -o root -g root -m 755 datefudge $(DESTDIR)$(bindir)
++	$(INSTALL_PROGRAM) -p -m 755 datefudge $(DESTDIR)$(bindir)
+ 	install -d $(DESTDIR)$(mandir)/man1
+-	install -o root -g root -m 644 datefudge.1 $(DESTDIR)$(mandir)/man1
++	install -p -m 644 datefudge.1 $(DESTDIR)$(mandir)/man1
+ 
+ datefudge: datefudge.sh
+ datefudge.1: datefudge.man
diff --git a/datefudge.spec b/datefudge.spec
new file mode 100644
index 0000000..00b331d
--- /dev/null
+++ b/datefudge.spec
@@ -0,0 +1,42 @@
+Name:		datefudge
+Version:	1.18
+Release:	2%{?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.gz
+Patch0:		datefudge-make.patch
+
+%description
+This program (and preload library) fakes the system date so that 
+programs think the wall clock is ... different. The faking is not 
+complete; time-stamp on files are not affected in any way. This 
+package is useful if you want to test the date handling of your 
+programs without changing the system clock. 
+
+%prep
+%setup -q
+%patch0 -p1
+
+%build
+LDFLAGS="%{__global_ldflags}" CFLAGS="%{optflags}" make libdir=%{_libexecdir}/%{name} %{?_smp_mflags}
+
+%install
+make install DESTDIR=%{buildroot} libdir=%{_libexecdir}/%{name}
+chmod +x %{buildroot}/%{_libexecdir}/%{name}/datefudge.so #for stripping
+
+%files
+%{_libexecdir}/%{name}
+
+%doc README COPYING
+%{_mandir}/man1/datefudge.1*
+%{_bindir}/datefudge
+
+%changelog
+* Mon Nov 18 2013 Nikos Mavrogiannopoulos <nmav at redhat.com> - 1.18-2
+- Removed support for EL5
+- Apply build LDFLAGS and CFLAGS.
+
+* Wed Nov 13 2013 Nikos Mavrogiannopoulos <nmav at redhat.com> - 1.18-1
+- Initial version of the package
diff --git a/sources b/sources
index e69de29..5731220 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+8227b1b02bb78d3215fc2ee9cd9b64fd  datefudge_1.18.tar.gz


More information about the scm-commits mailing list