]> git.pld-linux.org Git - packages/ntimed.git/commitdiff
new, early .spec master
authorElan Ruusamäe <glen@delfi.ee>
Tue, 10 Feb 2015 15:57:27 +0000 (17:57 +0200)
committerElan Ruusamäe <glen@delfi.ee>
Tue, 10 Feb 2015 15:57:27 +0000 (17:57 +0200)
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 [new file with mode: 0644]

diff --git a/ntimed.spec b/ntimed.spec
new file mode 100644 (file)
index 0000000..56f9373
--- /dev/null
@@ -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
This page took 0.066913 seconds and 4 git commands to generate.