From 721f92dbfb81bcdc4a3a272a98cd540451428cec Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Tue, 10 Feb 2015 17:57:27 +0200 Subject: [PATCH] new, early .spec spec based on opensuse package http://download.opensuse.org/repositories/network:/time/openSUSE_13.1/src/ntimed-0~git21-1.1.src.rpm --- ntimed.spec | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 ntimed.spec diff --git a/ntimed.spec b/ntimed.spec new file mode 100644 index 0000000..56f9373 --- /dev/null +++ b/ntimed.spec @@ -0,0 +1,42 @@ +%define subver db0abbb +%define rel 0.1 +Summary: Network Time Protocol client +Name: ntimed +Version: 0 +Release: 0.%{subver}.%{rel} +License: BSD-2-Clause +Group: Networking/Daemons +Source0: https://github.com/bsdphk/Ntimed/archive/master/%{name}-g%{subver}.tar.gz +# Source0-md5: e963b1b1c6ef2fce65335709aa2e9479 +URL: http://phk.freebsd.dk/time/ +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +Ntimed is a new NTP client package sponsored by the Linux Foundation +as part of its Core Infrastructure Initiative, which is a +post-Heartbleed effort to secure the software that runs the internet. + +%prep +%setup -qc +mv Ntimed-*/* . + +head -n 26 configure > LICENSE + +%build +sh configure +%{__make} \ + CC="%{__cc}" \ + CFLAGS="%{rpmcflags} -fPIE -pie" + +%install +rm -rf $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT%{_sbindir} +install -p ntimed-client $RPM_BUILD_ROOT%{_sbindir} + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%doc README.rst LICENSE +%attr(755,root,root) %{_sbindir}/ntimed-client -- 2.44.0