# HG changeset patch # User Michael Schloh von Bennewitz # Date 1346171675 -7200 # Node ID 0bfe61798a56a72fbcb1f2af6876d77dab74973d # Parent f43677a707f3e14c0809f98d35d969562df2c5ce Update version, modernize packaging, and correct nonportable PF_PACKET refs. diff -r f43677a707f3 -r 0bfe61798a56 libdnet/libdnet.spec --- a/libdnet/libdnet.spec Tue Aug 28 18:34:30 2012 +0200 +++ b/libdnet/libdnet.spec Tue Aug 28 18:34:35 2012 +0200 @@ -31,19 +31,15 @@ Class: PLUS Group: Network License: MIT-style -Version: 1.11 -Release: 20080101 +Version: 1.12 +Release: 20120800 # list of sources -Source0: http://switch.dl.sourceforge.net/sourceforge/libdnet/libdnet-%{version}.tar.gz +Source0: http://libdnet.googlecode.com/files/libdnet-%{version}.tgz # build information -Prefix: %{l_prefix} -BuildRoot: %{l_buildroot} -BuildPreReq: OpenPKG, openpkg >= 20040130, bison, flex, make, perl, perl-sys -PreReq: OpenPKG, openpkg >= 20040130 -AutoReq: no -AutoReqProv: no +BuildPreReq: OpenPKG, openpkg >= 20100101, bison, flex, make, perl, perl-sys +PreReq: OpenPKG, openpkg >= 20100101 %description libdnet provides a simplified, portable interface to several @@ -56,8 +52,8 @@ %track prog libdnet = { version = %{version} - url = http://libdnet.sourceforge.net/ - regex = libdnet-(__VER__)\.tar\.gz + url = http://libdnet.googlecode.com/files/ + regex = libdnet-(__VER__)\.tgz } %prep @@ -71,17 +67,17 @@ %build case "%{l_platform -t}" in *-freebsd5* ) echo "ac_cv_header_netinet_ip_fw_h=no" >config.cache ;; + *-sunos* ) echo "ac_cv_dnet_linux_pf_packet=no" >config.cache ;; esac CC="%{l_cc}" \ CFLAGS="%{l_cflags -O}" \ ./configure \ - --disable-shared \ --cache-file=./config.cache \ - --prefix=%{l_prefix} + --prefix=%{l_prefix} \ + --disable-shared %{l_make} %{l_mflags -O} %install - rm -rf $RPM_BUILD_ROOT %{l_shtool} mkdir -p $RPM_BUILD_ROOT%{l_prefix}/man/man3 %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} @@ -89,5 +85,4 @@ %files -f files %clean - rm -rf $RPM_BUILD_ROOT