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