- Fake the epoch to make zip files reproducible

OBS-URL: https://build.opensuse.org/package/show/LibreOffice:Factory/libreoffice?expand=0&rev=784
This commit is contained in:
Tomáš Chvátal 2019-05-06 08:54:44 +00:00 committed by Git OBS Bridge
parent bef002b0cd
commit b58eb2829e
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon May 6 08:54:09 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- Fake the epoch to make zip files reproducible
-------------------------------------------------------------------
Mon Apr 15 09:14:47 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>

View File

@ -68,6 +68,7 @@ Source5: %{tarball_url}/libreoffice-translations-%{version}.tar.xz.asc
Source6: SUSE.soc
Source98: %{name}.keyring
Source99: %{name}-rpmlintrc
Source100: %{name}.changes
# prebuilt extensions
Source402: %{external_url}/b7cae45ad2c23551fd6ccb8ae2c1f59e-numbertext_%{numbertext_version}.oxt
# used extensions sources
@ -1010,6 +1011,9 @@ export CC=gcc-7
export CXX=g++-7
%endif
# Fake the epoch stuff in generated zip files
export SOURCE_DATE_EPOCH=$(date -d "$(head -n 2 %{_sourcedir}/%{name}.changes | tail -n 1 | cut -d- -f1 )" +%s)
# Colada does not have .pc file and configure creator was really lazy
export OPENCOLLADA_CFLAGS='-I/usr/include/COLLADABaseUtils -I/usr/include/COLLADAFramework -I/usr/include/COLLADASaxFrameworkLoader -I/usr/include/GeneratedSaxParser'
export OPENCOLLADA_LIBS='-lOpenCOLLADABaseUtils -lOpenCOLLADAFramework -lOpenCOLLADASaxFrameworkLoader -lGeneratedSaxParser'