瀏覽代碼

ntp: add BR: / add config options

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@2512 ec354946-7b23-47d6-9f5a-488ba84defc7
iwamoto 14 年之前
父節點
當前提交
731e4960dc
共有 1 個文件被更改,包括 20 次插入4 次删除
  1. 20 4
      n/ntp/ntp-vl.spec

+ 20 - 4
n/ntp/ntp-vl.spec

@@ -3,7 +3,7 @@
 Summary: Synchronizes system time using the Network Time Protocol (NTP).
 Name: ntp
 Version: 4.2.6p3
-Release: 1%{?_dist_release}
+Release: 2%{?_dist_release}
 License: distributable
 Group: System Environment/Daemons
 URL: http://www.ntp.org/
@@ -72,7 +72,10 @@ Patch60: ntp-4.2.x_MOD_NANO.patch
 Requires(pre): /sbin/chkconfig
 # PreReq: /sbin/chkconfig
 BuildRequires: openssl-devel, readline-devel
+BuildRequires: libcap-devel
 BuildRequires: autoconf
+# ntpstat
+BuildRequires: perl-HTML-Parser
 #Conflicts: xntp3
 Obsoletes: xntp3
 BuildRoot: %{_tmppath}/%{name}-%{version}-root
@@ -101,6 +104,10 @@ Requires: %{name} = %{version}-%{release}
 %description perl
 This package contains perl scripts ntp-wait and ntptrace.
 
+Packager: iwamoto
+Vendor: Project Vine
+Distribution: Vine Linux
+
 %prep 
 %setup -q -a 5
 
@@ -144,10 +151,15 @@ sed -i 's|/var/db/ntp-kod|%{_localstatedir}/lib/ntp/sntp-kod|' sntp/{sntp.1,main
 autoreconf -vfi
 
 # XXX work around for anal ntp configure
-%define	_target_platform	%{nil}
-#%configure
+# %define	_target_platform	%{nil}
+# %configure
 # CFLAGS="-g -DDEBUG" ./configure --prefix=/usr
-CFLAGS="-g" ./configure --prefix=/usr
+
+CFLAGS="-g" ./configure         \
+	     --prefix=/usr      \
+	     --with-openssl-libdir=%{_libdir} \
+	     --with-lineeditlibs=readline
+
 %undefine	_target_platform
 
 %__make %{?_smp_mflags}
@@ -243,6 +255,10 @@ fi
 %{_mandir}/man8/ntptrace.8*
 
 %changelog
+* Sun Jan 16 2011 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 4.2.6p3-2
+- add config options to use openssl libs, readline libs
+- add BR: libcap-devel, perl-HTML-Parser (Thanks to Take-san)
+
 * Sat Jan 15 2011 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 4.2.6p3-1
 - new upstream release
 - built with openssl 1.0.0c