## START: Set by rpmautospec ## (rpmautospec version 0.8.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 12; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %define _lto_cflags %{nil} Name: libfaketime Version: 0.9.12 Release: %autorelease Summary: Manipulate system time per process for testing purposes # COPYING: GPLv2 text # man/faketime.1: "GNU General Public License, see COPYING" # README: "GNU General Public License, see COPYING" # src/faketime.c: GPL-2.0-only # src/faketime_common.h: GPL-2.0-only # src/libfaketime.c: GPL-2.0-only AND GPL-3.0-only # src/time_ops.h: GPL-2.0-only # src/uthash.h: BSD-1-Clause ## Not in any binary package # src/timeprivacy: BSD-2-Clause # test/libmallocintercept.c: GPL-2.0-only # test/timetest.c: GPL-2.0-or-later License: GPL-3.0-only AND GPL-2.0-only AND BSD-1-Clause SourceLicense: %{license} AND GPL-2.0-or-later AND BSD-2-Clause URL: https://github.com/wolfcw/libfaketime Source: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz # In upstream after 0.9.12, Patch0: libfaketime-0.9.12-isoc23.patch # Make the libraries executable, needed for stripping them. Not suitable for # upstream, e.g. Debian does not like it. Patch1: libfaketime-0.9.12-Dynamic-libraries-are-expected-to-be-executable-on-F.patch # Adapt to GCC 16, in upstream after 0.9.12, # Patch2: libfaketime-0.9.12-tests-Silence-an-unused-but-set-variable-warning-wit.patch BuildRequires: coreutils BuildRequires: gcc BuildRequires: make # Tests: BuildRequires: bash BuildRequires: perl-interpreter BuildRequires: perl(Time::HiRes) Provides: faketime = %{version}-%{release} %description libfaketime intercepts various system calls that programs use to retrieve the current date and time. It then reports modified (faked) dates and times (as specified by you, the user) to these programs. This means you can modify the system time a program sees without having to change the time system-wide. %prep %autosetup -p1 %build %ifarch ppc64le export FAKETIME_COMPILE_CFLAGS="-DFORCE_PTHREAD_NONVER" %endif %ifarch riscv64 export FAKETIME_COMPILE_CFLAGS="-DFORCE_MONOTONIC_FIX -DFORCE_PTHREAD_NONVER" %endif %set_build_flags %make_build PREFIX=%{_prefix} LIBDIRNAME=/%{_lib} all %check %ifarch ppc64le export FAKETIME_COMPILE_CFLAGS="-DFORCE_PTHREAD_NONVER" %endif %ifarch riscv64 export FAKETIME_COMPILE_CFLAGS="-DFORCE_MONOTONIC_FIX -DFORCE_PTHREAD_NONVER" %endif make PREFIX=%{_prefix} LIBDIRNAME=/%{_lib} -C test %install %make_install PREFIX=%{_prefix} LIBDIRNAME=/%{_lib} # Pick up docs in the files section rm -fr %{buildroot}/%{_docdir}/faketime %files %license COPYING %doc README NEWS README.developers %{_bindir}/faketime %{_libdir}/%{name}.so.1 %{_libdir}/%{name}MT.so.1 %{_mandir}/man1/faketime.1* %changelog ## START: Generated by rpmautospec * Fri Jan 16 2026 Fedora Release Engineering - 0.9.12-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild * Tue Jan 06 2026 Petr Písař - 0.9.12-10 - Adapt to GCC 16 * Tue Jan 06 2026 Petr Písař - 0.9.12-9 - Strip the librararies from debugging symbols * Mon Jan 05 2026 Petr Písař - 0.9.12-8 - Correct license tag and dependencies * Mon Dec 15 2025 Tomas Korbar - 0.9.12-7 - Fix build with ISO C23 * Tue Dec 09 2025 U2FsdGVkX1 - 0.9.12-6 - Fix riscv64 build hang in check * Thu Jul 24 2025 Fedora Release Engineering - 0.9.12-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild * Fri Jul 18 2025 Simone Caronni - 0.9.12-4 - Fix hardcoded paths (#2381595) * Mon Jul 14 2025 Simone Caronni - 0.9.12-1 - Update to 0.9.12. - Revamp completely SPEC file and build. * Mon Jul 14 2025 Simone Caronni - 0.9.10-12 - Trim changelog. * Fri Jan 17 2025 Fedora Release Engineering - 0.9.10-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Thu Jul 18 2024 Fedora Release Engineering - 0.9.10-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Thu Jan 25 2024 Fedora Release Engineering - 0.9.10-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sun Jan 21 2024 Fedora Release Engineering - 0.9.10-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Wed Jan 10 2024 Paul Wouters - 0.9.10-7 - Fix for building for riscv64 * Thu Jul 20 2023 Fedora Release Engineering - 0.9.10-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Wed Feb 22 2023 Pablo Greco - 0.9.10-5 - Fix tests in ELN builds (yselkowitz) * Tue Feb 21 2023 Pablo Greco - 0.9.10-4 - Also disable i686 in rhel>=10 (ELN failures) * Thu Jan 19 2023 Fedora Release Engineering - 0.9.10-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Thu Jul 21 2022 Fedora Release Engineering - 0.9.10-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Tue May 10 2022 Pablo Greco - 0.9.10-1 - Update to 0.9.10 - Disable i686 and armhfp in fedora >=36 * Thu Jan 20 2022 Fedora Release Engineering - 0.9.8-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild ## END: Generated by rpmautospec