Name: faketime Version: 0.2.8 Release: alt1 Summary: Execute program with changed notion of system time License: GPLv3+ Group: Development/Other Url: http://git.altlinux.org/people/ldv/packages/faketime.git # git://git.altlinux.org/gears/f/faketime.git Source: %name-%version.tar BuildRequires: help2man, gnulib-devel %description The faketime utility helps to execute programs with changed notion of system time. %prep %setup %if 0%{?rhel} == 0 || 0%{?rhel} <= 7 sed -i 's/-Wno-error=nonnull-compare//' Makefile.am %else sed -i 's/-Wno-error=nonnull-compare/-Wno-error=nonnull-compare -Wno-error=stringop-overflow/' Makefile.am %endif install -pm755 %_datadir/gnulib/build-aux/bootstrap . echo -n %version > .tarball-version mkdir build-aux # remove timespectod() to avoid compilation warnings in unused code. sed '/Return an approximation/,/}$/d' < %_datadir/gnulib/lib/timespec.h > timespec.h %build %if 0%{?rhel} == 0 || 0%{?rhel} <= 7 export CFLAGS=" $CFLAGS -std=gnu99 " %endif ./bootstrap --gnulib-srcdir=%_datadir/gnulib --no-git --skip-po --force %configure %__make %install %make_install rm %buildroot%_libdir/*.la %check %make_build -k check cat > exp <<'EOF' Fri Feb 13 20:44:50 UTC 2009 EOF LC_ALL=C TZ=UTC LD_LIBRARY_PATH=%buildroot%_libdir \ %buildroot%_bindir/faketime -d '1970-01-01 1234557890 seconds' -- date > out diff exp out date -u -r/ '+%%Y-%%m-%%d %%H:%%M:%%S' > exp LC_ALL=C LD_LIBRARY_PATH=%buildroot%_libdir \ %buildroot%_bindir/faketime -r/ -- \ date -u '+%%Y-%%m-%%d %%H:%%M:%%S' > out diff exp out %define _unpackaged_files_terminate_build 1 %define _stripped_files_terminate_build 1 #set_verify_elf_method strict %files %_bindir/* %_libdir/*.so %_mandir/man1/* %changelog * Wed Apr 07 2021 Dmitry V. Levin 0.2.8-alt1 - Fixed build with fresh gnulib. - Built with explicitly enabled LFS support. * Fri Dec 18 2020 Dmitry V. Levin 0.2.7-alt1 - Fixed build with fresh glibc. * Wed Dec 26 2018 Dmitry V. Levin 0.2.6-alt1 - Fixed build with fresh gnulib. - Built with gnulib v0.1-2305-g95c96b6dd. * Thu Mar 15 2018 Igor Vlasenko 0.2.5-alt3.1 - NMU: added URL git.altlinux.org/people/ldv/packages/faketime.git to distinguish from http://www.code-wizards.com/projects/libfaketime * Wed Jun 28 2017 Aleksei Nikiforov 0.2.5-alt3 - Fix build with new toolchain * Wed Oct 07 2015 Dmitry V. Levin 0.2.5-alt2 - Built with gnulib v0.1-585-g2fda85e. * Wed Apr 17 2013 Dmitry V. Levin 0.2.5-alt1 - Converted from getdate to parse_datetime gnulib module. - Enabled gnulib testsuite. - Built with system gnulib v0.0.7902-g92f3a4c. * Sun Nov 20 2011 Dmitry V. Levin 0.2.4-alt1 - Updated gnulib to v0.0-6453-g6a4c64c. * Fri Feb 12 2010 Dmitry V. Levin 0.2.3-alt1 - Updated to fresh gnulib. * Tue Oct 28 2008 Dmitry V. Levin 0.2.2-alt1 - Fixed build with fresh gcc. * Sat Aug 30 2008 Dmitry V. Levin 0.2.1-alt1 - Updated gnulib. * Sun Apr 15 2007 Dmitry V. Levin 0.2-alt1 - Changed option processing to stop after the first non-option argument (at@). - Fixed to build with current gnulib. * Thu Dec 15 2005 Dmitry V. Levin 0.1-alt1 - Initial revision.