datefudge/datefudge.spec

55 lines
1.8 KiB
RPMSpec
Raw Normal View History

2013-11-19 13:25:56 +00:00
Name: datefudge
2014-12-03 13:25:18 +00:00
Version: 1.20
Release: 2%{?dist}
2013-11-19 13:25:56 +00:00
Summary: Fake the system date
License: GPLv2+
URL: http://packages.qa.debian.org/d/datefudge.html
Source0: http://cdn.debian.net/debian/pool/main/d/datefudge/%{name}_%{version}.tar.gz
%description
This program (and preload library) fakes the system date so that
programs think the wall clock is ... different. The faking is not
complete; time-stamp on files are not affected in any way. This
package is useful if you want to test the date handling of your
programs without changing the system clock.
%prep
%setup -q
2014-12-03 13:25:18 +00:00
sed "s/VERSION := \$\(.*\)/VERSION := %{version}/g" -i Makefile
sed 's/-o root -g root/-p/g' -i Makefile
2013-11-19 13:25:56 +00:00
%build
2014-12-03 13:25:18 +00:00
LDFLAGS="%{__global_ldflags}" CFLAGS="%{optflags}" make libdir=%{_libexecdir} %{?_smp_mflags}
2013-11-19 13:25:56 +00:00
%install
2014-12-03 13:25:18 +00:00
make install DESTDIR=%{buildroot} libdir=%{_libexecdir}
2013-11-19 13:25:56 +00:00
chmod +x %{buildroot}/%{_libexecdir}/%{name}/datefudge.so #for stripping
%files
%{_libexecdir}/%{name}
%doc README COPYING
%{_mandir}/man1/datefudge.1*
%{_bindir}/datefudge
%changelog
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.20-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
2014-12-03 13:25:18 +00:00
* Wed Dec 3 2014 Nikos Mavrogiannopoulos <nmav@redhat.com> - 1.20-1
- New upstream release
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.18-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.18-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
2013-11-19 13:25:56 +00:00
* Mon Nov 18 2013 Nikos Mavrogiannopoulos <nmav@redhat.com> - 1.18-2
- Removed support for EL5
- Apply build LDFLAGS and CFLAGS.
* Wed Nov 13 2013 Nikos Mavrogiannopoulos <nmav@redhat.com> - 1.18-1
- Initial version of the package