- update config.{guess,sub} when building tcpslice

- remove -D_GNU_SOURCE from CFLAGS
This commit is contained in:
Miroslav Lichvar 2008-06-02 12:09:22 +00:00
parent 7448b88698
commit 6b4e287b41

View File

@ -2,12 +2,13 @@ Summary: A network traffic monitoring tool
Name: tcpdump Name: tcpdump
Epoch: 14 Epoch: 14
Version: 3.9.8 Version: 3.9.8
Release: 4%{?dist} Release: 5%{?dist}
License: BSD with advertising License: BSD with advertising
URL: http://www.tcpdump.org URL: http://www.tcpdump.org
Group: Applications/Internet Group: Applications/Internet
Requires(pre): shadow-utils Requires(pre): shadow-utils
BuildRequires: openssl-devel libpcap-devel BuildRequires: openssl-devel libpcap-devel
BuildRequires: automake
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Source0: http://www.tcpdump.org/release/tcpdump-%{version}.tar.gz Source0: http://www.tcpdump.org/release/tcpdump-%{version}.tar.gz
@ -47,9 +48,11 @@ popd
find . -name '*.c' -o -name '*.h' | xargs chmod 644 find . -name '*.c' -o -name '*.h' | xargs chmod 644
%build %build
export CFLAGS="$RPM_OPT_FLAGS $(getconf LFS_CFLAGS) -D_GNU_SOURCE" export CFLAGS="$RPM_OPT_FLAGS $(getconf LFS_CFLAGS)"
pushd %{tcpslice_dir} pushd %{tcpslice_dir}
# update config.{guess,sub}
automake -a -f 2> /dev/null || :
%configure %configure
make %{?_smp_mflags} make %{?_smp_mflags}
popd popd
@ -93,6 +96,10 @@ exit 0
%{_mandir}/man8/tcpdump.8* %{_mandir}/man8/tcpdump.8*
%changelog %changelog
* Mon Jun 02 2008 Miroslav Lichvar <mlichvar@redhat.com> - 14:3.9.8-5
- update config.{guess,sub} when building tcpslice
- remove -D_GNU_SOURCE from CFLAGS
* Wed Feb 13 2008 Miroslav Lichvar <mlichvar@redhat.com> - 14:3.9.8-4 * Wed Feb 13 2008 Miroslav Lichvar <mlichvar@redhat.com> - 14:3.9.8-4
- fix building with new glibc headers - fix building with new glibc headers