File libfaketime.spec of Package libfaketime

# spec file for package libfaketime
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via

Name:           libfaketime
Version:        0.9.6
Release:        0
Summary:        FakeTime Preload Library
License:        GPL-2.0
Group:          System/Libraries
#PATCH-FIX-UPSTREAM nonnull argument compared to NULL
Patch:          libfaketime-0.9.6-gcc6.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

report faked system time to programs without having to change the system-wide time

%setup -q
%patch -p1

make %{?_smp_mflags} PREFIX=%{_prefix} LIBDIRNAME=/%{_lib}/%{name}

make install DESTDIR=%{buildroot} PREFIX=%{_prefix} LIBDIRNAME=/%{_lib}/%{name}
rm %{buildroot}%{_datadir}/doc/faketime/*

%dir %{_libdir}/%{name}

openSUSE Build Service is sponsored by