[go: up one dir, main page]

File: libdnet.spec

package info (click to toggle)
libdumbnet 1.12-3
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 5,344 kB
  • ctags: 5,038
  • sloc: sh: 16,158; ansic: 10,840; python: 222; makefile: 165
file content (96 lines) | stat: -rw-r--r-- 1,963 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
#
# Libdnet -- Simplified interface to low-level networking (RPM package spec)
#
#
#	Options:
#		--with gnuld    Assume the C compiler uses GNU ld
#						(see --with-gnu-ld in ./configure)
#
%define name libdnet
%define version 1.12
%define release 1
%define appname %{name}-%{version}
%define rpmname %{name}-%{version}-%{release}
%define buildname %{appname}
Name: %{name}
Version: %{version}
Release: %{release}
Summary: Simplified, portable interface to low-level networking routines
Group: System Environment/Libraries
Vendor: Dug Song <dugsong@monkey.org>
URL: http://libdnet.sourceforge.net
License: BSD
Source: http://prdownloads.sourceforge.net/libdnet/%{appname}.tar.gz
Prefix: %{_prefix}
BuildRoot: %{_tmppath}/%{name}-root


%description
libdnet provides a simplified, portable interface to several low-level
networking routines, including network address manipulation, kernel
arp(4) cache and route(4) table lookup and manipulation, network
firewalling, network interface lookup and manipulation, IP tunnelling, 
and raw IP packet and Ethernet frame transmission.


%package devel
Summary: Development files for %{name}
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}


%description devel
Development files (Headers, libraries for static linking, etc) for %{name}.


%prep
rm -rf $RPM_BUILD_DIR/%{buildname}
%setup -n %{buildname}


%build
%configure %{?_with_gnuld:--with-gnu-ld}
make


%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
rm $RPM_BUILD_ROOT/.%{_libdir}/*.la


%clean
rm -rf $RPM_BUILD_ROOT
rm -rf $RPM_BUILD_DIR/%{buildname}


%post -p /sbin/ldconfig


%preun -p /sbin/ldconfign


%files
%defattr(-,root,root)
%{_sbindir}
%{_libdir}/*.so.*
%{_mandir}/man8


%files devel
%defattr(-,root,root)
%{_bindir}
%{_includedir}
%{_libdir}/*.a
%{_libdir}/*.so
%{_mandir}/man3
%doc	README
%doc	TODO


%changelog
* Wed Jun  1 2004 nnposter at users,sourceforge,net
- Created 1.8-1 RPM spec


# vim:ts=4: