From 04ed4976b196bc6d9491b07ef3883e4dc5e1c1dfae95870a4c98b00aedb4ab52 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Thu, 5 Feb 2015 11:01:04 +0000 Subject: [PATCH] Accepting request 284141 from home:coolo:bc - include the .changes file in the .src.rpm as its used during build OBS-URL: https://build.opensuse.org/request/show/284141 OBS-URL: https://build.opensuse.org/package/show/Base:System/dd_rescue?expand=0&rev=26 --- dd_rescue.changes | 5 +++++ dd_rescue.spec | 7 ++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/dd_rescue.changes b/dd_rescue.changes index 7106fa5..b41926e 100644 --- a/dd_rescue.changes +++ b/dd_rescue.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Feb 5 08:07:26 UTC 2015 - coolo@suse.com + +- include the .changes file in the .src.rpm as its used during build + ------------------------------------------------------------------- Sat Aug 9 23:26:59 CEST 2014 - kurt@garloff.de diff --git a/dd_rescue.spec b/dd_rescue.spec index a19aad5..42d958e 100644 --- a/dd_rescue.spec +++ b/dd_rescue.spec @@ -1,7 +1,7 @@ # # spec file for package dd_rescue # -# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -24,6 +24,7 @@ License: GPL-2.0 or GPL-3.0 Group: System/Base Url: http://www.garloff.de/kurt/linux/ddrescue/ Source0: http://garloff.de/kurt/linux/ddrescue/%{name}-%{version}.tar.bz2 +Source99: %{name}.changes BuildRequires: autoconf BuildRequires: libattr-devel BuildRequires: lzo-devel @@ -88,8 +89,8 @@ data to the decompressor; the plugin is still young and might expose bugs. ./autogen.sh # Remove build time references so build-compare can do its work -FAKE_BUILDTIME=$(LC_ALL=C date -u -r %{_sourcedir}/%{name}.changes '+%%H:%%M') -FAKE_BUILDDATE=$(LC_ALL=C date -u -r %{_sourcedir}/%{name}.changes '+%%b %%e %%Y') +FAKE_BUILDTIME=$(LC_ALL=C date -u -r %{S:99} '+%%H:%%M') +FAKE_BUILDDATE=$(LC_ALL=C date -u -r %{S:99} '+%%b %%e %%Y') sed -i "s/__TIME__/\"$FAKE_BUILDTIME\"/g" dd_rescue.c sed -i "s/__DATE__/\"$FAKE_BUILDDATE\"/g" dd_rescue.c