[packages/htpdate] Up to 2.1.0
arekm
arekm at pld-linux.org
Sat Nov 28 17:45:33 CET 2026
commit df68d9ec27cd73b1c01fa0d3b0319eef4120e0c2
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Fri Nov 27 16:14:05 2026 +0100
Up to 2.1.0
htpdate.spec | 20 +++++++++++---------
1 file changed, 11 insertions(+), 9 deletions(-)
---
diff --git a/htpdate.spec b/htpdate.spec
index 4cda683..720471f 100644
--- a/htpdate.spec
+++ b/htpdate.spec
@@ -1,15 +1,16 @@
Summary: HTTP based time synchronization tool
Summary(pl.UTF-8): Klient do synchronizacji czasu po HTTP
Name: htpdate
-Version: 1.0.4
-Release: 2
+Version: 2.1.0
+Release: 1
License: GPL
Group: Daemons
-Source0: http://www.clevervest.com/htp/archive/c/%{name}-%{version}.tar.bz2
-# Source0-md5: a13ec89839c33965794ebf53c4e690db
+Source0: https://github.com/twekkel/htpdate/archive/v%{version}/%{name}-%{version}.tar.gz
+# Source0-md5: ba10caa835d3e22905198133a82b27f2
Source1: %{name}.init
Source2: %{name}.sysconfig
-URL: http://www.clevervest.com/htp/
+URL: https://github.com/twekkel/htpdate
+BuildRequires: openssl-devel
BuildRequires: rpmbuild(macros) >= 1.268
Requires(post,preun): /sbin/chkconfig
Requires: rc-scripts >= 0.4.0.10
@@ -43,9 +44,10 @@ Htpdate działa także przez serwer proxy.
%setup -q
%build
-%{__make} \
+%{__make} https \
CC="%{__cc}" \
- CFLAGS="%{rpmcflags}"
+ CFLAGS="%{rpmcflags}" \
+ LDFLAGS="%{rpmldflags}"
%install
rm -rf $RPM_BUILD_ROOT
@@ -53,7 +55,7 @@ install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man8}
install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig,cron.hourly}
install htpdate $RPM_BUILD_ROOT%{_sbindir}/htpdate
-gzip -dc htpdate.8.gz > $RPM_BUILD_ROOT%{_mandir}/man8/htpdate.8
+cp -p htpdate.8 $RPM_BUILD_ROOT%{_mandir}/man8/htpdate.8
install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/htpdate
install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/htpdate
@@ -77,7 +79,7 @@ fi
%files
%defattr(644,root,root,755)
-%doc README Changelog
+%doc README.md Changelog
%attr(754,root,root) /etc/rc.d/init.d/htpdate
%attr(755,root,root) %{_sbindir}/htpdate
%attr(754,root,root) /etc/cron.hourly/htpdate
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/htpdate.git/commitdiff/df68d9ec27cd73b1c01fa0d3b0319eef4120e0c2
More information about the pld-cvs-commit
mailing list