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