File fixed_build_time.patch of Package rpm

commit 0fae8558b345fbd2915964339a19720feeeba8a2
Author: Bernhard M. Wiedemann <bwiedemann@suse.de>
Date:   Tue Sep 4 11:42:05 2018 +0200

    Allow to use fixed build time
    
    some people dislike SOURCE_DATE_EPOCH providing a "fake" date
    and would rather have a more obvious fake date.
    e.g. by setting %_fixed_build_time 1
    build time would be set to 1970-01-01 00:00:01

Index: rpm-4.14.1/build/pack.c
===================================================================
--- rpm-4.14.1.orig/build/pack.c
+++ rpm-4.14.1/build/pack.c
@@ -160,6 +160,9 @@ static rpm_time_t * getBuildTime(void)
     char *endptr;
 
     if (buildTime[0] == 0) {
+	if ((buildTime[0] = rpmExpandNumeric("%{?_fixed_build_time}")) > 0) {
+	    return buildTime;
+	}
         srcdate = getenv("SOURCE_DATE_EPOCH");
         if (srcdate && rpmExpandNumeric("%{?use_source_date_epoch_as_buildtime}")) {
             errno = 0;