[packages/ntimed] new, early .spec

glen glen at pld-linux.org
Tue Feb 10 16:58:00 CET 2015


commit 721f92dbfb81bcdc4a3a272a98cd540451428cec
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Tue Feb 10 17:57:27 2015 +0200

    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(+)
---
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
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ntimed.git/commitdiff/721f92dbfb81bcdc4a3a272a98cd540451428cec



More information about the pld-cvs-commit mailing list