- Overriding -D_GNU_SOURCE is no longer needed. This fixes DSO issues with
pthreads
This commit is contained in:
parent
1f3eace2a1
commit
cd8741f710
17
unbound.spec
17
unbound.spec
@ -9,7 +9,7 @@
|
|||||||
Summary: Validating, recursive, and caching DNS(SEC) resolver
|
Summary: Validating, recursive, and caching DNS(SEC) resolver
|
||||||
Name: unbound
|
Name: unbound
|
||||||
Version: 1.4.1
|
Version: 1.4.1
|
||||||
Release: 3%{?dist}
|
Release: 5%{?dist}
|
||||||
License: BSD
|
License: BSD
|
||||||
Url: http://www.nlnetlabs.nl/unbound/
|
Url: http://www.nlnetlabs.nl/unbound/
|
||||||
Source: http://www.unbound.net/downloads/%{name}-%{version}.tar.gz
|
Source: http://www.unbound.net/downloads/%{name}-%{version}.tar.gz
|
||||||
@ -24,8 +24,11 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|||||||
BuildRequires: flex, openssl-devel , ldns-devel >= 1.5.0,
|
BuildRequires: flex, openssl-devel , ldns-devel >= 1.5.0,
|
||||||
BuildRequires: libevent-devel
|
BuildRequires: libevent-devel
|
||||||
%if %{with_python}
|
%if %{with_python}
|
||||||
BuildRequires: python-devel
|
BuildRequires: python-devel swig
|
||||||
%endif
|
%endif
|
||||||
|
# Required for SVN versions
|
||||||
|
#BuildRequires: bison
|
||||||
|
|
||||||
|
|
||||||
Requires(post): chkconfig
|
Requires(post): chkconfig
|
||||||
Requires(preun): chkconfig
|
Requires(preun): chkconfig
|
||||||
@ -94,8 +97,7 @@ Python modules and extensions for unbound
|
|||||||
%if %{with_python}
|
%if %{with_python}
|
||||||
--with-pythonmodule --with-pyunbound \
|
--with-pythonmodule --with-pyunbound \
|
||||||
%endif
|
%endif
|
||||||
--enable-sha2 \
|
--enable-sha2
|
||||||
CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE QUIET=no"
|
|
||||||
%{__make} %{?_smp_mflags}
|
%{__make} %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
@ -118,6 +120,9 @@ install -m 0644 %{SOURCE4} %{buildroot}%{_sysconfdir}/unbound/
|
|||||||
|
|
||||||
# remove static library from install (fedora packaging guidelines)
|
# remove static library from install (fedora packaging guidelines)
|
||||||
rm -rf %{buildroot}%{_libdir}/*.la
|
rm -rf %{buildroot}%{_libdir}/*.la
|
||||||
|
%if %{with_python}
|
||||||
|
rm -rf %{buildroot}%{python_sitelib}/*/*.la
|
||||||
|
%endif
|
||||||
|
|
||||||
mkdir -p %{buildroot}%{_localstatedir}/run/unbound
|
mkdir -p %{buildroot}%{_localstatedir}/run/unbound
|
||||||
|
|
||||||
@ -187,6 +192,10 @@ fi
|
|||||||
%postun libs -p /sbin/ldconfig
|
%postun libs -p /sbin/ldconfig
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Mar 01 2010 Paul Wouters <paul@xelerance.com> - 1.4.1-5
|
||||||
|
- Overriding -D_GNU_SOURCE is no longer needed. This fixes DSO issues
|
||||||
|
with pthreads
|
||||||
|
|
||||||
* Wed Feb 24 2010 Paul Wouters <paul@xelerance.com> - 1.4.1-3
|
* Wed Feb 24 2010 Paul Wouters <paul@xelerance.com> - 1.4.1-3
|
||||||
- Change make/configure lines to attempt to fix -lphtread linking issue
|
- Change make/configure lines to attempt to fix -lphtread linking issue
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user