diff --git a/.gitignore b/.gitignore index 94cc1c9..4c19f1a 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /datefudge_1.18.tar.gz +/datefudge_1.20.tar.gz diff --git a/datefudge-make.patch b/datefudge-make.patch deleted file mode 100644 index 3c20961..0000000 --- a/datefudge-make.patch +++ /dev/null @@ -1,27 +0,0 @@ -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 index f951067..1d63e49 100644 --- a/datefudge.spec +++ b/datefudge.spec @@ -1,12 +1,11 @@ Name: datefudge -Version: 1.18 -Release: 4%{?dist} +Version: 1.20 +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.gz -Patch0: datefudge-make.patch %description This program (and preload library) fakes the system date so that @@ -17,13 +16,14 @@ programs without changing the system clock. %prep %setup -q -%patch0 -p1 +sed "s/VERSION := \$\(.*\)/VERSION := %{version}/g" -i Makefile +sed 's/-o root -g root/-p/g' -i Makefile %build -LDFLAGS="%{__global_ldflags}" CFLAGS="%{optflags}" make libdir=%{_libexecdir}/%{name} %{?_smp_mflags} +LDFLAGS="%{__global_ldflags}" CFLAGS="%{optflags}" make libdir=%{_libexecdir} %{?_smp_mflags} %install -make install DESTDIR=%{buildroot} libdir=%{_libexecdir}/%{name} +make install DESTDIR=%{buildroot} libdir=%{_libexecdir} chmod +x %{buildroot}/%{_libexecdir}/%{name}/datefudge.so #for stripping %files @@ -34,6 +34,9 @@ chmod +x %{buildroot}/%{_libexecdir}/%{name}/datefudge.so #for stripping %{_bindir}/datefudge %changelog +* Wed Dec 3 2014 Nikos Mavrogiannopoulos - 1.20-1 +- New upstream release + * Sat Aug 16 2014 Fedora Release Engineering - 1.18-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild diff --git a/sources b/sources index 5731220..b7aaa97 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -8227b1b02bb78d3215fc2ee9cd9b64fd datefudge_1.18.tar.gz +033990e39ab7b29321fc3a0e3bbb165a datefudge_1.20.tar.gz