/[packages]/cauldron/libdnet/current/SPECS/libdnet.spec
ViewVC logotype

Contents of /cauldron/libdnet/current/SPECS/libdnet.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 645430 - (show annotations) (download)
Sun Jul 6 12:51:10 2014 UTC (9 years, 10 months ago) by ovitters
File size: 3962 byte(s)
SILENT remove defattr
1 %define major 1
2 %define libname %mklibname dnet %{major}
3 %define develname %mklibname dnet -d
4
5 Summary: Portable interface to several low-level networking routines
6 Name: libdnet
7 Version: 1.12
8 Release: %mkrel 14
9 License: BSD
10 Group: System/Libraries
11 URL: http://code.google.com/p/libdnet/
12 Source0: http://libdnet.googlecode.com/files/%{name}-%{version}.tgz
13 Patch0: libdnet-1.11-lib_version_fix.diff
14 Patch4: libdnet-1.10-nmap2.diff
15 Patch5: libdnet-1.12-automake-1.13.patch
16 BuildRequires: autoconf2.5
17 BuildRequires: python-devel
18 BuildRequires: python-pyrex
19 BuildRequires: multiarch-utils >= 1.0.3
20
21 %description
22 libdnet provides a simplified, portable interface to several
23 low-level networking routines, including network address
24 manipulation, kernel arp(4) cache and route(4) table lookup and
25 manipulation, network firewalling, network interface lookup and
26 manipulation, and raw IP packet and Ethernet frame transmission.
27
28 %package -n python-dnet
29 Summary: Python bindings for dnet
30 Group: Development/Python
31 Requires: python >= %{py_ver}
32
33 %description -n python-dnet
34 This module provides a simplified interface to several low-level
35 networking routines, including network address manipulation, kernel
36 arp(4) cache and route(4) table lookup and manipulation, network
37 firewalling, network interface lookup and manipulation, and raw IP
38 packet and Ethernet frame transmission.
39
40 %package -n %{libname}
41 Summary: Portable interface to several low-level networking routines
42 Group: System/Libraries
43 License: BSD
44 Obsoletes: %{name}
45 Provides: %{name}
46
47 %description -n %{libname}
48 libdnet provides a simplified, portable interface to several
49 low-level networking routines, including network address
50 manipulation, kernel arp(4) cache and route(4) table lookup and
51 manipulation, network firewalling, network interface lookup and
52 manipulation, and raw IP packet and Ethernet frame transmission.
53
54 %package -n %{libname}-utils
55 Summary: A simple test program for the %{libname} library
56 Group: System/Libraries
57 License: BSD
58 Obsoletes: %{name}-utils < %{version}-%{release}
59 Provides: %{name}-utils = %{version}-%{release}
60
61 %description -n %{libname}-utils
62 Provides a simple test program for the %{libname} library.
63
64 %package -n %{develname}
65 Summary: Static library and header files for the %{libname} library
66 Group: Development/C
67 License: BSD
68 Provides: dnet-devel = %{version}-%{release}
69 Provides: %{name}-devel = %{version}-%{release}
70 Provides: %{mklibname dnet 1 -d} = %{version}-%{release}
71 Obsoletes: %{mklibname dnet 1 -d} < %{version}-%{release}
72 Requires: %{libname} = %{version}-%{release}
73
74 %description -n %{develname}
75 libdnet provides a simplified, portable interface to several
76 low-level networking routines, including network address
77 manipulation, kernel arp(4) cache and route(4) table lookup and
78 manipulation, network firewalling, network interface lookup and
79 manipulation, and raw IP packet and Ethernet frame transmission.
80
81 %prep
82
83 %setup -q -n %{name}-%{version}
84 %patch0 -p0
85 %patch4 -p0
86 %patch5 -p1 -b .automake-1_13
87
88 %build
89 export WANT_AUTOCONF_2_5=1
90 libtoolize --copy --force --install
91 aclocal -I config
92 autoheader
93 autoconf
94 automake --foreign -acf
95
96 %configure2_5x
97
98 %make
99
100 #pushd python
101 # pyrexc dnet.pyx
102 # python setup.py build
103 #popd
104
105 %install
106 [ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
107
108 %makeinstall
109
110 #pushd python
111 # python setup.py install --root=%{buildroot} --install-purelib=%{py_platsitedir}
112 #popd
113
114 %multiarch_binaries %{buildroot}%{_bindir}/dnet-config
115
116 %clean
117 [ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
118
119 #%files -n python-dnet
120 #%defattr(-,root,root)
121 #%{py_platsitedir}/dnet.so
122 #%{py_platsitedir}/*.egg-info
123
124 %files -n %{libname}
125 %doc README THANKS TODO
126 %{_libdir}/*.so.*
127
128 %files -n %{libname}-utils
129 %{_sbindir}/*
130 %{_mandir}/man8/*
131
132 %files -n %{develname}
133 %multiarch %{multiarch_bindir}/dnet-config
134 %{_bindir}/dnet-config
135 %{_includedir}/*
136 %{_libdir}/*.so
137 %{_libdir}/*.a
138 %{_libdir}/*.la
139 %{_mandir}/man3/*
140
141

  ViewVC Help
Powered by ViewVC 1.1.30