Initial import (#1031527).

This commit is contained in:
Nikos Mavrogiannopoulos 2013-11-19 14:25:56 +01:00
parent 2540aa7ca4
commit afd321bafe
4 changed files with 71 additions and 0 deletions

1
.gitignore vendored
View File

@ -0,0 +1 @@
/datefudge_1.18.tar.gz

27
datefudge-make.patch Normal file
View File

@ -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

42
datefudge.spec Normal file
View File

@ -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@redhat.com> - 1.18-2
- Removed support for EL5
- Apply build LDFLAGS and CFLAGS.
* Wed Nov 13 2013 Nikos Mavrogiannopoulos <nmav@redhat.com> - 1.18-1
- Initial version of the package

View File

@ -0,0 +1 @@
8227b1b02bb78d3215fc2ee9cd9b64fd datefudge_1.18.tar.gz