Ana Guerrero 2024-12-24 15:25:53 +00:00 committed by Git OBS Bridge
commit 4dd394545c
2 changed files with 12 additions and 2 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Dec 11 09:57:39 UTC 2024 - Bernhard Wiedemann <bwiedemann@suse.com>
- Make tarball creation reproducible (boo#1218191)
-------------------------------------------------------------------
Thu Jan 12 18:05:58 UTC 2023 - Stefan Schubert <schubi@suse.com>

View File

@ -238,7 +238,12 @@ mkdir build
pushd build
mkdir polkit
mv %{buildroot}%{_datadir}/polkit-1/actions/* polkit/
tar -cvf polkit.tar.gz polkit
reproducibletarflags="
--sort=name
--mtime=@${SOURCE_DATE_EPOCH:-$(date +%%s)}
--owner=0 --group=0 --numeric-owner
--pax-option=exthdr.name=%%d/PaxHeaders/%%f,delete=atime,delete=ctime"
tar $reproducibletarflags -cvf polkit.tar.gz polkit
install -m 0644 polkit.tar.gz %{buildroot}%{_datadir}/dde-daemon/
# File all dbus service profiles, workaround boo#1070943
@ -247,7 +252,7 @@ mkdir dbus/system-services
mkdir dbus/system.d
mv %{buildroot}%{_datadir}/dbus-1/system-services/* dbus/system-services
mv %{buildroot}%{_datadir}/dbus-1/system.d/* dbus/system.d
tar -cvf dbus.tar.gz dbus
tar $reproducibletarflags -cvf dbus.tar.gz dbus
install -m 0644 dbus.tar.gz %{buildroot}%{_datadir}/dde-daemon/
popd