Tony Jones 2011-05-25 00:25:57 +00:00 committed by Git OBS Bridge
parent b828446a02
commit 455501fb15

View File

@ -145,6 +145,8 @@ to develop applications that require these.
%patch7 -p1
%build
# Change DATE/TIME macros to use last change time of elfutils.changes
# See http://lists.opensuse.org/opensuse-factory/2011-05/msg00304.html
modified="$(sed -n '/^----/n;s/ - .*$//;p;q' "%{_sourcedir}/%{name}.changes")"
DATE="\"$(date -d "${modified}" "+%%b %%e %%Y")\""
TIME="\"$(date -d "${modified}" "+%%R")\""