|
@@ -1,14 +1,22 @@
|
|
%{?!with_python: %global with_python 1}
|
|
%{?!with_python: %global with_python 1}
|
|
|
|
+%{?!enable_gost: %global enable_gost 0}
|
|
|
|
|
|
%if %{with_python}
|
|
%if %{with_python}
|
|
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
|
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
|
%endif
|
|
%endif
|
|
|
|
|
|
|
|
+%if %{enable_gost}
|
|
|
|
+%define subdir_conf_opt --disable-rpath --disable-static
|
|
|
|
+%else
|
|
|
|
+%define subdir_conf_opt --disable-rpath --disable-static --disable-gost
|
|
|
|
+%endif
|
|
|
|
+
|
|
|
|
+
|
|
Summary: Lowlevel DNS(SEC) library with API
|
|
Summary: Lowlevel DNS(SEC) library with API
|
|
Summary(ja): 低レベルな DNS(SEC) ライブラリと API
|
|
Summary(ja): 低レベルな DNS(SEC) ライブラリと API
|
|
Name: ldns
|
|
Name: ldns
|
|
-Version: 1.6.6
|
|
+Version: 1.6.7
|
|
Release: 1%{?_dist_release}
|
|
Release: 1%{?_dist_release}
|
|
License: BSD
|
|
License: BSD
|
|
Url: http://www.nlnetlabs.nl/%{name}/
|
|
Url: http://www.nlnetlabs.nl/%{name}/
|
|
@@ -16,7 +24,13 @@ Source: http://www.nlnetlabs.nl/downloads/%{name}-%{version}.tar.gz
|
|
Group: System Environment/Libraries
|
|
Group: System Environment/Libraries
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
|
BuildRequires: libtool, autoconf, automake, gcc-c++, doxygen,
|
|
BuildRequires: libtool, autoconf, automake, gcc-c++, doxygen,
|
|
-BuildRequires: perl, libpcap-devel, openssl-devel
|
|
+BuildRequires: perl, libpcap-devel
|
|
|
|
+%if %{enable_gost}
|
|
|
|
+BuildRequires: openssl-devel >= 1.0.0
|
|
|
|
+%else
|
|
|
|
+BuildRequires: openssl-devel
|
|
|
|
+%endif
|
|
|
|
+
|
|
Requires: libpcap, openssl
|
|
Requires: libpcap, openssl
|
|
|
|
|
|
Distribution: Vine Linux
|
|
Distribution: Vine Linux
|
|
@@ -56,13 +70,17 @@ Python extensions for ldns
|
|
%setup -q
|
|
%setup -q
|
|
|
|
|
|
%build
|
|
%build
|
|
-%configure --disable-rpath --disable-static --with-sha2 \
|
|
+%configure --disable-rpath --disable-static \
|
|
%if %{with_python}
|
|
%if %{with_python}
|
|
- --with-pyldns
|
|
+ --with-pyldns \
|
|
|
|
+%endif
|
|
|
|
+%if !%{enable_gost}
|
|
|
|
+ --disable-gost \
|
|
%endif
|
|
%endif
|
|
|
|
+ --with-sha2
|
|
|
|
|
|
-(cd drill ; %configure --disable-rpath --disable-static --with-ldns=%{buildroot}/lib/ )
|
|
+(cd drill ; %configure %subdir_conf_opt --with-ldns=%{buildroot}/lib/ )
|
|
-(cd examples ; %configure --disable-rpath --disable-static --with-ldns=%{buildroot}/lib/ )
|
|
+(cd examples ; %configure %subdir_conf_opt --with-ldns=%{buildroot}/lib/ )
|
|
|
|
|
|
make %{?_smp_mflags}
|
|
make %{?_smp_mflags}
|
|
( cd drill ; make %{?_smp_mflags} )
|
|
( cd drill ; make %{?_smp_mflags} )
|
|
@@ -126,6 +144,11 @@ rm -rf %{buildroot}
|
|
%postun -p /sbin/ldconfig
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Sun Nov 14 2010 IWAI, Masaharu <iwai@alib.jp> 1.6.7-1
|
|
|
|
+- new upstream release
|
|
|
|
+- add enable_gost flag: default disable
|
|
|
|
+- defined subdir_conf_opt rpm macro
|
|
|
|
+
|
|
* Thu Sep 2 2010 IWAI, Masaharu <iwai@alib.jp> 1.6.6-1
|
|
* Thu Sep 2 2010 IWAI, Masaharu <iwai@alib.jp> 1.6.6-1
|
|
- new upstream release
|
|
- new upstream release
|
|
|
|
|