Merge branch 'master' into epel8

This commit is contained in:
Paul Wouters 2019-10-30 12:05:32 -04:00
commit 96d0364d7f

View File

@ -1,15 +1,18 @@
Summary: Manipulate system time per process for testing purposes Summary: Manipulate system time per process for testing purposes
Name: libfaketime Name: libfaketime
Version: 0.9.8 Version: 0.9.8
Release: 4%{?dist} Release: 5%{?dist}
License: GPLv2+ License: GPLv2+
Url: https://github.com/wolfcw/libfaketime Url: https://github.com/wolfcw/libfaketime
Source: libfaketime-0.9.8.tar.xz Source: libfaketime-0.9.8.tar.xz
Patch0: libfaketime-0.9.8-FORCE_PTHREAD_NONVER.patch Patch0: libfaketime-0.9.8-FORCE_PTHREAD_NONVER.patch
Provides: faketime
BuildRequires: gcc BuildRequires: gcc
BuildRequires: perl-interpreter BuildRequires: perl-interpreter
BuildRequires: perl-Time-HiRes BuildRequires: perl-Time-HiRes
%description %description
libfaketime intercepts various system calls which programs use to libfaketime intercepts various system calls which programs use to
retrieve the current date and time. It can then report faked dates and retrieve the current date and time. It can then report faked dates and
@ -21,7 +24,6 @@ time system- wide.
%setup -q %setup -q
%patch0 -p1 %patch0 -p1
%build %build
cd src cd src
@ -74,7 +76,7 @@ CFLAGS="%{optflags} -Wno-nonnull-compare -Wno-strict-aliasing" make %{?_smp_mfla
PREFIX="%{_prefix}" LIBDIRNAME="/%{_lib}/faketime" all PREFIX="%{_prefix}" LIBDIRNAME="/%{_lib}/faketime" all
%check %check
make %{?_smp_mflags} -C test all make %{?_smp_mflags} -C test
%install %install
make PREFIX="%{_prefix}" DESTDIR=%{buildroot} LIBDIRNAME="/%{_lib}/faketime" install make PREFIX="%{_prefix}" DESTDIR=%{buildroot} LIBDIRNAME="/%{_lib}/faketime" install
@ -82,14 +84,20 @@ rm -r %{buildroot}/%{_docdir}/faketime
# needed for stripping/debug package # needed for stripping/debug package
chmod a+rx %{buildroot}/%{_libdir}/faketime/*.so.* chmod a+rx %{buildroot}/%{_libdir}/faketime/*.so.*
%files %files
%{_bindir}/faketime %{_bindir}/faketime
%dir %attr(0755, root, root) %{_libdir}/faketime/ %dir %attr(0755, root, root) %{_libdir}/faketime/
%attr(0755, root, root) %{_libdir}/faketime/libfaketime*so.* %attr(0755, root, root) %{_libdir}/faketime/libfaketime*so.*
%doc README COPYING NEWS README README.developers %license COPYING
%doc README NEWS README.developers
%{_mandir}/man1/* %{_mandir}/man1/*
%changelog %changelog
* Tue Oct 29 2019 Paul Wouters <pwouters@redhat.com> - 0.9.8-5
- Resolves: rhbz#1766749 libfaketime rfe: please add Provides:faketime
- Use license tag, remove duplicate README entry, update make test target
* Tue Sep 03 2019 Warren Togami <warren@blockstream.com> - 0.9.8-4 * Tue Sep 03 2019 Warren Togami <warren@blockstream.com> - 0.9.8-4
- upstream says to use FORCE_PTHREAD_NONVER on any glibc+arch that gets stuck - upstream says to use FORCE_PTHREAD_NONVER on any glibc+arch that gets stuck
For Fedora 31+ "make test" gets stuck on i686 x86_64 ppc64le s390x For Fedora 31+ "make test" gets stuck on i686 x86_64 ppc64le s390x