CI tests: Build pythontest.spec with and without %clamp_mtime_to_source_date_epoch

This commit is contained in:
Miro Hrončok 2022-12-19 14:42:54 +01:00
parent cb1dbcc44b
commit 18ceb6caef
2 changed files with 10 additions and 2 deletions

View File

@ -71,3 +71,8 @@ test $PY -ge $INODES
%pycached %{python3_sitelib}/directory/file.py
%pycached %{python36_sitelib}/directory/file.py
%{python27_sitelib}/directory/file.py*
%changelog
* Thu Jan 01 2015 Fedora Packager <nobody@fedoraproject.org> - 0-0
- This changelog entry exists and is deliberately set in the past

View File

@ -16,9 +16,12 @@
- pytest:
dir: .
run: PYTHONPATH=/usr/lib/rpm/redhat ALTERNATE_PYTHON_VERSION=3.6 pytest -v
- manual_byte_compilation:
- manual_byte_compilation_clamp_mtime_off:
dir: .
run: rpmbuild -ba pythontest.spec
run: rpmbuild --define 'clamp_mtime_to_source_date_epoch 0' -ba pythontest.spec
- manual_byte_compilation_clamp_mtime_on:
dir: .
run: rpmbuild --define 'clamp_mtime_to_source_date_epoch 1' -ba pythontest.spec
required_packages:
- rpm-build
- python-rpm-macros