libdnet/libdnet.spec

changeset 786
d42403a4ec05
parent 568
f43677a707f3
equal deleted inserted replaced
0:8cbaf766261d 1:3cbfc42d7394
29 Packager: OpenPKG Foundation e.V. 29 Packager: OpenPKG Foundation e.V.
30 Distribution: OpenPKG Community 30 Distribution: OpenPKG Community
31 Class: PLUS 31 Class: PLUS
32 Group: Network 32 Group: Network
33 License: MIT-style 33 License: MIT-style
34 Version: 1.11 34 Version: 1.12
35 Release: 20080101 35 Release: 20120800
36 36
37 # list of sources 37 # list of sources
38 Source0: http://switch.dl.sourceforge.net/sourceforge/libdnet/libdnet-%{version}.tar.gz 38 Source0: http://libdnet.googlecode.com/files/libdnet-%{version}.tgz
39 39
40 # build information 40 # build information
41 Prefix: %{l_prefix} 41 BuildPreReq: OpenPKG, openpkg >= 20100101, bison, flex, make, perl, perl-sys
42 BuildRoot: %{l_buildroot} 42 PreReq: OpenPKG, openpkg >= 20100101
43 BuildPreReq: OpenPKG, openpkg >= 20040130, bison, flex, make, perl, perl-sys
44 PreReq: OpenPKG, openpkg >= 20040130
45 AutoReq: no
46 AutoReqProv: no
47 43
48 %description 44 %description
49 libdnet provides a simplified, portable interface to several 45 libdnet provides a simplified, portable interface to several
50 low-level networking routines, including network address 46 low-level networking routines, including network address
51 manipulation, kernel arp(4) cache and route(4) table lookup and 47 manipulation, kernel arp(4) cache and route(4) table lookup and
54 packet and Ethernet frame, and data transmission. 50 packet and Ethernet frame, and data transmission.
55 51
56 %track 52 %track
57 prog libdnet = { 53 prog libdnet = {
58 version = %{version} 54 version = %{version}
59 url = http://libdnet.sourceforge.net/ 55 url = http://libdnet.googlecode.com/files/
60 regex = libdnet-(__VER__)\.tar\.gz 56 regex = libdnet-(__VER__)\.tgz
61 } 57 }
62 58
63 %prep 59 %prep
64 %setup -q 60 %setup -q
65 %{l_prefix}/bin/perl \ 61 %{l_prefix}/bin/perl \
69 configure 65 configure
70 66
71 %build 67 %build
72 case "%{l_platform -t}" in 68 case "%{l_platform -t}" in
73 *-freebsd5* ) echo "ac_cv_header_netinet_ip_fw_h=no" >config.cache ;; 69 *-freebsd5* ) echo "ac_cv_header_netinet_ip_fw_h=no" >config.cache ;;
70 *-sunos* ) echo "ac_cv_dnet_linux_pf_packet=no" >config.cache ;;
74 esac 71 esac
75 CC="%{l_cc}" \ 72 CC="%{l_cc}" \
76 CFLAGS="%{l_cflags -O}" \ 73 CFLAGS="%{l_cflags -O}" \
77 ./configure \ 74 ./configure \
78 --disable-shared \
79 --cache-file=./config.cache \ 75 --cache-file=./config.cache \
80 --prefix=%{l_prefix} 76 --prefix=%{l_prefix} \
77 --disable-shared
81 %{l_make} %{l_mflags -O} 78 %{l_make} %{l_mflags -O}
82 79
83 %install 80 %install
84 rm -rf $RPM_BUILD_ROOT
85 %{l_shtool} mkdir -p $RPM_BUILD_ROOT%{l_prefix}/man/man3 81 %{l_shtool} mkdir -p $RPM_BUILD_ROOT%{l_prefix}/man/man3
86 %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT 82 %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
87 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} 83 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
88 84
89 %files -f files 85 %files -f files
90 86
91 %clean 87 %clean
92 rm -rf $RPM_BUILD_ROOT
93 88

mercurial