Port minor spec improvements from RHEL 8

Related: rhbz1973448
This commit is contained in:
Pavel Cahyna 2021-06-30 20:05:15 +02:00
parent 6fbc93438d
commit d86cc239ae

View File

@ -8,8 +8,7 @@ Summary: Relax-and-Recover is a Linux disaster recovery and system migration too
URL: http://relax-and-recover.org/ URL: http://relax-and-recover.org/
License: GPLv3 License: GPLv3
# as GitHub stopped with download section we need to go back to Sourceforge for downloads Source0: https://github.com/rear/rear/archive/%{version}.tar.gz#/rear-%{version}.tar.gz
Source0: https://sourceforge.net/projects/rear/files/rear/%{version}/rear-%{version}.tar.gz
# Add cronjob and systemd timer as documentation # Add cronjob and systemd timer as documentation
Source1: rear.cron Source1: rear.cron
Source2: rear.service Source2: rear.service
@ -92,7 +91,13 @@ sed -e 's:/lib/:/usr/lib/:g' \
%build %build
# build HTML user guide # build HTML user guide
make doc # asciidoc writes a timestamp to files it produces, based on the last
# modified date of the source file, but is sensitive to the timezone.
# This makes the results differ according to the timezone of the build machine
# and spurious changes will be seen.
# Set the timezone to UTC as a workaround.
# https://wiki.debian.org/ReproducibleBuilds/TimestampsInDocumentationGeneratedByAsciidoc
TZ=UTC make doc
%install %install
%{make_install} %{make_install}