File faketime.spec of Package faketime

Name: faketime
Version: 0.2.5
Release: 2
Summary: Execute program with changed notion of system time
License: GPLv3+
Group: Development/Other
# git://git.altlinux.org/gears/f/faketime.git
Source: %name-%version.tar

BuildRequires: libtool bison
BuildRequires: help2man gnulib >= 0.0.7902.92f3a4c

%description
The faketime utility helps to execute programs with changed notion of system
time.


%prep
%setup -q
install -p -m 0755 %_datadir/gnulib/build-aux/bootstrap ./
echo -n %version > .tarball-version
install -d -m 0755 ./build-aux
# remove timespectod() to avoid compilation warnings in unused code.
sed '/Return an approximation/,/}$/d' %_datadir/gnulib/lib/timespec.h > timespec.h


%build
%add_optflags -Wno-nonnull-compare
./bootstrap --gnulib-srcdir=%_datadir/gnulib --no-git --skip-po --force
%configure
make %{?_smp_mflags}


%install
%make_install
rm -f %buildroot%_libdir/*.la


%check
make %{?_smp_mflags} -k check


%files
%defattr(-,root,root)
%_bindir/*
%_libdir/*.so
%_mandir/man1/*


%changelog
* Wed Aug 10 2016 Led <ledest@gmail.com> 0.2.5-2
- fix build with gcc >= 6

* Wed Aug 13 2014 Led <ledest@gmail.com> 0.2.5-1
- initial build for openSUSE

* Wed Apr 17 2013 Dmitry V. Levin <ldv@altlinux.org> 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 <ldv@altlinux.org> 0.2.4-alt1
- Updated gnulib to v0.0-6453-g6a4c64c.

* Fri Feb 12 2010 Dmitry V. Levin <ldv@altlinux.org> 0.2.3-alt1
- Updated to fresh gnulib.

* Tue Oct 28 2008 Dmitry V. Levin <ldv@altlinux.org> 0.2.2-alt1
- Fixed build with fresh gcc.

* Sat Aug 30 2008 Dmitry V. Levin <ldv@altlinux.org> 0.2.1-alt1
- Updated gnulib.

* Sun Apr 15 2007 Dmitry V. Levin <ldv@altlinux.org> 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 <ldv@altlinux.org> 0.1-alt1
- Initial revision.
openSUSE Build Service is sponsored by