Hello community, here is the log from the commit of package hardinfo for openSUSE:Factory checked in at 2018-03-06 10:48:24 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/hardinfo (Old) and /work/SRC/openSUSE:Factory/.hardinfo.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "hardinfo" Tue Mar 6 10:48:24 2018 rev:5 rq:583138 version:0.5.1 Changes: -------- --- /work/SRC/openSUSE:Factory/hardinfo/hardinfo.changes 2017-04-11 09:36:53.623171251 +0200 +++ /work/SRC/openSUSE:Factory/.hardinfo.new/hardinfo.changes 2018-03-06 10:49:19.163881081 +0100 @@ -1,0 +2,5 @@ +Mon Mar 5 18:49:14 UTC 2018 - bwiedem...@suse.com + +- Add hardinfo-0.5.1-reproducible.patch to not record build host + +------------------------------------------------------------------- New: ---- hardinfo-0.5.1-reproducible.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ hardinfo.spec ++++++ --- /var/tmp/diff_new_pack.u5u53U/_old 2018-03-06 10:49:19.787858540 +0100 +++ /var/tmp/diff_new_pack.u5u53U/_new 2018-03-06 10:49:19.787858540 +0100 @@ -1,7 +1,7 @@ # # spec file for package hardinfo # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 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 @@ -20,12 +20,14 @@ Version: 0.5.1 Release: 0 Summary: Displays system information -License: GPL-2.0 +License: GPL-2.0-only Group: System/Benchmark Url: http://hardinfo.org/ Source: http://downloads.sf.net/%{name}.berlios/%{name}-%{version}.tar.gz +# PATCH-FIX-UPSTREAM hardinfo-0.5.1-reproducible.patch bwiedem...@suse.com -- make build reproducible +Patch0: hardinfo-0.5.1-reproducible.patch BuildRequires: fdupes -BuildRequires: pkg-config +BuildRequires: pkgconfig BuildRequires: update-desktop-files BuildRequires: pkgconfig(gtk+-2.0) BuildRequires: pkgconfig(libffi) @@ -45,6 +47,8 @@ %prep %setup -q +%patch0 -p1 + cat > %{name}.desktop << EOF [Desktop Entry] Type=Application @@ -53,21 +57,28 @@ Exec=%{name} %U Comment=System Profiler and Benchmark Comment[pt_BR]=Informações e Testes do Sistema -Comment[ru_RU]=Системный профайлер и бенчмарк +Comment[ru]=Системный профайлер и бенчмарк +Comment[uk]=Системний профайлер і бенчмарк Icon=%{name} Categories=System;Utility;DesktopUtility;Monitor; EOF %build +%if 0%{?suse_version} < 1500 +SOURCE_DATE="$(sed -n '/^----/n;s/ - .*$//;p;q' "%{_sourcedir}/%{name}.changes")" +export SOURCE_DATE_EPOCH="$(date -d "$SOURCE_DATE" "+%%s")" + +%endif %configure --prefix=%{_prefix} make ARCHOPTS="%{optflags} -fgnu89-inline" %{?_smp_mflags} %install %make_install -install -Dm 0644 pixmaps/logo.png %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/%{name}.png +install -Dpm 0644 pixmaps/logo.png %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/%{name}.png %suse_update_desktop_file %{name} %fdupes %{buildroot} +%if 0%{?suse_version} < 1500 %post %desktop_database_post %icon_theme_cache_post @@ -75,9 +86,9 @@ %postun %desktop_database_postun %icon_theme_cache_postun +%endif %files -%defattr(-,root,root) %doc LICENSE %{_bindir}/%{name} %{_libdir}/%{name}/ ++++++ hardinfo-0.5.1-reproducible.patch ++++++ From: Chris Lamb <lamby debian.org> Subject: Make the build reproducible Date: 2016-08-03 https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=833379 --- a/configure 2016-08-03 12:09:24.359183765 -0400 --- b/configure 2016-08-03 12:13:50.725579223 -0400 @@ -186,9 +186,15 @@ echo "#define $ARCH" >> config.h echo "#define ARCH \"$ARCH\"" >> config.h -echo "#define PLATFORM \"`uname`\"" >> config.h -echo "#define KERNEL \"`uname -r`\"" >> config.h -echo "#define HOSTNAME \"`hostname`\"" >> config.h +if [ "$SOURCE_DATE_EPOCH" = "" ]; then + echo "#define PLATFORM \"`uname`\"" >> config.h + echo "#define KERNEL \"`uname -r`\"" >> config.h + echo "#define HOSTNAME \"`hostname`\"" >> config.h +else + echo "#define PLATFORM \"-\"" >> config.h + echo "#define KERNEL \"-\"" >> config.h + echo "#define HOSTNAME \"-\"" >> config.h +fi echo "#define PREFIX \"/usr/share/hardinfo/\"" >> config.h echo "#define LIBPREFIX \"/usr/lib/hardinfo/\"" >> config.h