]>
Commit | Line | Data |
---|---|---|
f7fdb76e | 1 | Summary: VDE2: Virtual Distributed Ethernet |
2 | Summary(pl.UTF-8): VDE2: wirtualny rozproszony ethernet | |
3 | Name: vde2 | |
5312b291 | 4 | Version: 2.3.2 |
9538d4b2 | 5 | Release: 2 |
5312b291 | 6 | License: LGPL v2.1+ (libvdeplug), BSD (slirpvde), GPL v2+ (the rest) |
f7fdb76e | 7 | Group: Networking/Utilities |
5312b291 JB |
8 | Source0: http://downloads.sourceforge.net/vde/%{name}-%{version}.tar.bz2 |
9 | # Source0-md5: 46fbc5f97f03dc517aa3b2c9d9ea6628 | |
491a8be5 | 10 | Patch0: %{name}-pathmax.patch |
ebb249ef | 11 | Patch1: %{name}-format.patch |
f7fdb76e | 12 | URL: http://sourceforge.net/projects/vde/ |
5312b291 | 13 | BuildRequires: autoconf >= 2.59 |
f7fdb76e | 14 | BuildRequires: automake |
5312b291 | 15 | BuildRequires: libpcap-devel |
f7fdb76e | 16 | BuildRequires: libtool |
5312b291 JB |
17 | BuildRequires: openssl-devel |
18 | BuildRequires: python-devel >= 1:2.5 | |
19 | BuildRequires: rpm-pythonprov | |
20 | BuildRequires: rpmbuild(macros) >= 1.219 | |
21 | Requires: %{name}-libs = %{version}-%{release} | |
22 | Obsoletes: vde < 2 | |
f7fdb76e | 23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
24 | ||
5312b291 JB |
25 | # expects "prompt" symbol from user |
26 | %define skip_post_check_so libvdehist.* | |
27 | ||
f7fdb76e | 28 | %description |
29 | VDE2: Virtual Distributed Ethernet. It creates the abstraction of a | |
30 | virtual ethernet: a single vde can be accessed by virtual and real | |
31 | computers. | |
32 | ||
33 | %description -l pl.UTF-8 | |
34 | VDE2: wirtualny rozproszony ethernet. Narzędzie to tworzy abstrakcyjny | |
35 | wirtualny ethernet - pojedynczy vde może być dostępny z wirtualnych | |
36 | jak i rzeczywistych komputerów. | |
37 | ||
5312b291 JB |
38 | %package libs |
39 | Summary: VDE2 libraries | |
40 | Summary(pl.UTF-8): Biblioteki VDE2 | |
41 | Group: Libraries | |
42 | Conflicts: vde2 < 2.3.2 | |
43 | ||
44 | %description libs | |
45 | VDE2 libraries. | |
46 | ||
47 | %description libs -l pl.UTF-8 | |
48 | Biblioteki VDE2. | |
49 | ||
f7fdb76e | 50 | %package devel |
5312b291 JB |
51 | Summary: Header files for VDE2 libraries |
52 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek VDE2 | |
f7fdb76e | 53 | Group: Development/Libraries |
5312b291 | 54 | Requires: %{name}-libs = %{version}-%{release} |
f7fdb76e | 55 | |
56 | %description devel | |
5312b291 | 57 | Header files for VDE2 libraries. |
f7fdb76e | 58 | |
59 | %description devel -l pl.UTF-8 | |
5312b291 | 60 | Pliki nagłówkowe bibliotek VDE2. |
f7fdb76e | 61 | |
62 | %package static | |
63 | Summary: Static VDE2 library | |
64 | Summary(pl.UTF-8): Statyczna biblioteka VDE2 | |
65 | Group: Development/Libraries | |
66 | Requires: %{name}-devel = %{version}-%{release} | |
67 | ||
68 | %description static | |
69 | Static VDE2 library. | |
70 | ||
71 | %description static -l pl.UTF-8 | |
72 | Statyczna biblioteka VDE2. | |
73 | ||
5312b291 JB |
74 | %package -n python-vde2 |
75 | Summary: Python interface to VDE2 | |
76 | Summary(pl.UTF-8): Pythonowy interfejs do VDE2 | |
77 | Group: Libraries/Python | |
78 | Requires: %{name}-libs = %{version}-%{release} | |
79 | ||
80 | %description -n python-vde2 | |
81 | Python interface to VDE2. | |
82 | ||
83 | %description -n python-vde2 -l pl.UTF-8 | |
84 | Pythonowy interfejs do VDE2. | |
85 | ||
f7fdb76e | 86 | %prep |
87 | %setup -q | |
491a8be5 | 88 | %patch0 -p1 |
ebb249ef | 89 | %patch1 -p1 |
f7fdb76e | 90 | |
91 | %build | |
92 | %{__libtoolize} | |
93 | %{__aclocal} | |
94 | %{__autoconf} | |
5312b291 | 95 | %{__autoheader} |
f7fdb76e | 96 | %{__automake} |
5312b291 JB |
97 | %configure \ |
98 | --disable-silent-rules \ | |
99 | --enable-kernel-switch | |
f7fdb76e | 100 | |
ebb249ef | 101 | %{__make} -j1 \ |
5312b291 | 102 | pythondir=%{py_sitedir} |
f7fdb76e | 103 | |
104 | %install | |
105 | rm -rf $RPM_BUILD_ROOT | |
106 | ||
107 | %{__make} install \ | |
5312b291 JB |
108 | DESTDIR=$RPM_BUILD_ROOT \ |
109 | pythondir=%{py_sitedir} | |
f7fdb76e | 110 | |
5312b291 JB |
111 | # loadable modules |
112 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/vde2/libvdetap.{la,a} | |
113 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/vde2/vde_l3/*.la | |
114 | %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/vdeplug_python.la | |
115 | # libs .la kept - no Requires/Libs.private | |
f7fdb76e | 116 | |
5312b291 JB |
117 | cp -p src/slirpvde/README README.slirpvde |
118 | ||
119 | %py_comp $RPM_BUILD_ROOT%{py_sitedir} | |
120 | %py_ocomp $RPM_BUILD_ROOT%{py_sitedir} | |
121 | %py_postclean | |
b738e09c | 122 | |
f7fdb76e | 123 | %clean |
124 | rm -rf $RPM_BUILD_ROOT | |
125 | ||
5312b291 JB |
126 | %post libs -p /sbin/ldconfig |
127 | %postun libs -p /sbin/ldconfig | |
f7fdb76e | 128 | |
129 | %files | |
130 | %defattr(644,root,root,755) | |
5312b291 | 131 | %doc COPYING.slirpvde Changelog README README.slirpvde |
e8a4594f | 132 | %dir %{_sysconfdir}/vde2 |
e8a4594f | 133 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vde2/vdecmd |
5312b291 | 134 | %dir %{_sysconfdir}/vde2/libvdemgmt |
e8a4594f | 135 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vde2/libvdemgmt/asyncrecv.rc |
136 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vde2/libvdemgmt/closemachine.rc | |
137 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vde2/libvdemgmt/openmachine.rc | |
138 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vde2/libvdemgmt/sendcmd.rc | |
5312b291 JB |
139 | %attr(755,root,root) %{_bindir}/dpipe |
140 | %attr(755,root,root) %{_bindir}/kvde_switch | |
141 | %attr(755,root,root) %{_bindir}/slirpvde | |
142 | %attr(755,root,root) %{_bindir}/unixcmd | |
143 | %attr(755,root,root) %{_bindir}/unixterm | |
144 | %attr(755,root,root) %{_bindir}/vde_autolink | |
145 | %attr(755,root,root) %{_bindir}/vde_cryptcab | |
146 | %attr(755,root,root) %{_bindir}/vde_l3 | |
147 | %attr(755,root,root) %{_bindir}/vde_over_ns | |
148 | %attr(755,root,root) %{_bindir}/vde_pcapplug | |
149 | %attr(755,root,root) %{_bindir}/vde_plug | |
150 | %attr(755,root,root) %{_bindir}/vde_plug2tap | |
151 | %attr(755,root,root) %{_bindir}/vde_switch | |
152 | %attr(755,root,root) %{_bindir}/vdecmd | |
153 | %attr(755,root,root) %{_bindir}/vdekvm | |
154 | %attr(755,root,root) %{_bindir}/vdeq | |
155 | %attr(755,root,root) %{_bindir}/vdeqemu | |
156 | %attr(755,root,root) %{_bindir}/vdeterm | |
157 | %attr(755,root,root) %{_bindir}/wirefilter | |
158 | %attr(755,root,root) %{_sbindir}/vde_tunctl | |
159 | %attr(755,root,root) %{_libdir}/vdetap | |
45dacef7 | 160 | %dir %{_libdir}/vde2 |
f7fdb76e | 161 | %attr(755,root,root) %{_libdir}/vde2/libvdetap.so |
5312b291 JB |
162 | %dir %{_libdir}/vde2/vde_l3 |
163 | %attr(755,root,root) %{_libdir}/vde2/vde_l3/bfifo.so | |
164 | %attr(755,root,root) %{_libdir}/vde2/vde_l3/pfifo.so | |
165 | %attr(755,root,root) %{_libdir}/vde2/vde_l3/tbf.so | |
166 | %{_mandir}/man1/dpipe.1* | |
167 | %{_mandir}/man1/slirpvde.1* | |
168 | %{_mandir}/man1/unixcmd.1* | |
169 | %{_mandir}/man1/unixterm.1* | |
170 | %{_mandir}/man1/vde_autolink.1* | |
171 | %{_mandir}/man1/vde_cryptcab.1* | |
172 | %{_mandir}/man1/vde_l3.1* | |
173 | %{_mandir}/man1/vde_over_ns.1* | |
174 | %{_mandir}/man1/vde_pcapplug.1* | |
175 | %{_mandir}/man1/vde_plug.1* | |
176 | %{_mandir}/man1/vde_plug2tap.1* | |
177 | %{_mandir}/man1/vde_switch.1* | |
178 | %{_mandir}/man1/vdecmd.1* | |
179 | %{_mandir}/man1/vdekvm.1* | |
180 | %{_mandir}/man1/vdeq.1* | |
181 | %{_mandir}/man1/vdeqemu.1* | |
182 | %{_mandir}/man1/vdetaplib.1* | |
183 | %{_mandir}/man1/vdeterm.1* | |
184 | %{_mandir}/man1/wirefilter.1* | |
185 | %{_mandir}/man8/vde_tunctl.8* | |
186 | ||
187 | %files libs | |
188 | %defattr(644,root,root,755) | |
189 | %attr(755,root,root) %{_libdir}/libvdehist.so.*.*.* | |
190 | %attr(755,root,root) %ghost %{_libdir}/libvdehist.so.0 | |
191 | %attr(755,root,root) %{_libdir}/libvdemgmt.so.*.*.* | |
192 | %attr(755,root,root) %ghost %{_libdir}/libvdemgmt.so.0 | |
193 | %attr(755,root,root) %{_libdir}/libvdeplug.so.*.*.* | |
194 | %attr(755,root,root) %ghost %{_libdir}/libvdeplug.so.3 | |
195 | %attr(755,root,root) %{_libdir}/libvdesnmp.so.*.*.* | |
196 | %attr(755,root,root) %ghost %{_libdir}/libvdesnmp.so.0 | |
f7fdb76e | 197 | |
198 | %files devel | |
199 | %defattr(644,root,root,755) | |
5312b291 JB |
200 | %attr(755,root,root) %{_libdir}/libvdehist.so |
201 | %attr(755,root,root) %{_libdir}/libvdemgmt.so | |
202 | %attr(755,root,root) %{_libdir}/libvdeplug.so | |
203 | %attr(755,root,root) %{_libdir}/libvdesnmp.so | |
204 | %{_libdir}/libvdehist.la | |
205 | %{_libdir}/libvdemgmt.la | |
206 | %{_libdir}/libvdeplug.la | |
207 | %{_libdir}/libvdesnmp.la | |
208 | %{_includedir}/libvdehist.h | |
209 | %{_includedir}/libvdemgmt.h | |
210 | %{_includedir}/libvdeplug.h | |
211 | %{_includedir}/libvdeplug_dyn.h | |
212 | %{_includedir}/libvdesnmp.h | |
213 | %{_pkgconfigdir}/vdehist.pc | |
214 | %{_pkgconfigdir}/vdemgmt.pc | |
215 | %{_pkgconfigdir}/vdeplug.pc | |
216 | %{_pkgconfigdir}/vdesnmp.pc | |
f7fdb76e | 217 | |
218 | %files static | |
219 | %defattr(644,root,root,755) | |
5312b291 JB |
220 | %{_libdir}/libvdehist.a |
221 | %{_libdir}/libvdemgmt.a | |
222 | %{_libdir}/libvdeplug.a | |
223 | %{_libdir}/libvdesnmp.a | |
224 | ||
225 | %files -n python-vde2 | |
226 | %defattr(644,root,root,755) | |
227 | %attr(755,root,root) %{py_sitedir}/vdeplug_python.so | |
228 | %{py_sitedir}/VdePlug.py[co] |