ovs/ovs.spec

178 lines
4.9 KiB
RPMSpec
Raw Permalink Normal View History

Name: ovs
Version: 2.15.0
Release: 1mamba
Summary: A multilayer software switch
Group: Applications/Networking
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://www.openvswitch.org/
Source: https://github.com/openvswitch/ovs.git/v%{version}/ovs-%{version}.tar.bz2
License: Apache License 2.0
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: ldconfig
BuildRequires: libatomic-devel
BuildRequires: libcap-ng-devel
BuildRequires: libgcc
BuildRequires: liblzma-devel
BuildRequires: libopenssl-devel
BuildRequires: libunbound-devel
BuildRequires: libunwind-devel
BuildRequires: libz-devel
## AUTOBUILDREQ-END
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
%description
Open vSwitch is a multilayer software switch which goal is to implement a production quality switch platform that supports standard management interfaces and opens the forwarding functions to programmatic extension and control.
%package -n lib%{name}
Group: System/Libraries
Summary: Shared libraries for %{name}
%description -n lib%{name}
This package contains shared libraries for %{name}.
%package -n lib%{name}-devel
Group: Development/Libraries
Summary: Development files for %{name}
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
Requires: pkg-config
%description -n lib%{name}-devel
This package contains libraries and header files for developing applications that use %{name}.
%debug_package
%prep
%setup -q
autoreconf -f -i
%build
%configure \
--enable-shared
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -n lib%{name} -p /sbin/ldconfig
%postun -n lib%{name} -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_sysconfdir}/bash_completion.d/ovs-appctl-bashcomp.bash
%{_sysconfdir}/bash_completion.d/ovs-vsctl-bashcomp.bash
%{_bindir}/ovs-appctl
%{_bindir}/ovs-docker
%{_bindir}/ovs-dpctl
%{_bindir}/ovs-dpctl-top
%{_bindir}/ovs-l3ping
%{_bindir}/ovs-ofctl
%{_bindir}/ovs-parse-backtrace
%{_bindir}/ovs-pcap
%{_bindir}/ovs-pki
%{_bindir}/ovs-tcpdump
%{_bindir}/ovs-tcpundump
%{_bindir}/ovs-test
%{_bindir}/ovs-testcontroller
%{_bindir}/ovs-vlan-test
%{_bindir}/ovs-vsctl
%{_bindir}/ovsdb-client
%{_bindir}/ovsdb-tool
%{_bindir}/vtep-ctl
%{_sbindir}/ovs-bugtool
%{_sbindir}/ovs-vswitchd
%{_sbindir}/ovsdb-server
%dir %{_datadir}/openvswitch
%dir %{_datadir}/openvswitch/bugtool-plugins
%{_datadir}/openvswitch/bugtool-plugins/*
%dir %{_datadir}/openvswitch/python
%dir %{_datadir}/openvswitch/python/ovs
%{_datadir}/openvswitch/python/ovs/*
%dir %{_datadir}/openvswitch/python/ovstest
%{_datadir}/openvswitch/python/ovstest/*
%dir %{_datadir}/openvswitch/scripts
%{_datadir}/openvswitch/scripts/*
%{_datadir}/openvswitch/vswitch.ovsschema
%{_datadir}/openvswitch/vtep.ovsschema
%{_mandir}/man1/ovs-pcap.1*
%{_mandir}/man1/ovs-tcpundump.1*
%{_mandir}/man1/ovsdb-client.1*
%{_mandir}/man1/ovsdb-server.1*
%{_mandir}/man1/ovsdb-tool.1*
%{_mandir}/man5/ovs-vswitchd.conf.db.5*
%{_mandir}/man5/ovsdb-server.5*
%{_mandir}/man5/ovsdb.5*
%{_mandir}/man5/vtep.5*
%{_mandir}/man7/ovs-actions.7*
%{_mandir}/man7/ovs-fields.7*
%{_mandir}/man7/ovsdb-server.7*
%{_mandir}/man7/ovsdb.7*
%{_mandir}/man8/ovs-appctl.8*
%{_mandir}/man8/ovs-bugtool.8*
%{_mandir}/man8/ovs-ctl.8*
%{_mandir}/man8/ovs-dpctl-top.8*
%{_mandir}/man8/ovs-dpctl.8*
%{_mandir}/man8/ovs-kmod-ctl.8*
%{_mandir}/man8/ovs-l3ping.8*
%{_mandir}/man8/ovs-ofctl.8*
%{_mandir}/man8/ovs-parse-backtrace.8*
%{_mandir}/man8/ovs-pki.8*
%{_mandir}/man8/ovs-tcpdump.8*
%{_mandir}/man8/ovs-test.8*
%{_mandir}/man8/ovs-testcontroller.8*
%{_mandir}/man8/ovs-vlan-test.8*
%{_mandir}/man8/ovs-vsctl.8*
%{_mandir}/man8/ovs-vswitchd.8*
%{_mandir}/man8/vtep-ctl.8*
%files -n lib%{name}
%defattr(-,root,root)
%{_libdir}/libofproto-*.so.*
%{_libdir}/libopenvswitch-*.so.*
%{_libdir}/libopenvswitch.so
%{_libdir}/libovsdb-*.so.*
%{_libdir}/libsflow-*.so.*
%{_libdir}/libvtep-*.so.*
%doc LICENSE
%files -n lib%{name}-devel
%defattr(-,root,root)
%dir %{_includedir}/openflow
%{_includedir}/openflow/*.h
%dir %{_includedir}/openvswitch
%{_includedir}/openvswitch/*.h
%{_libdir}/libofproto.a
%{_libdir}/libofproto.la
%{_libdir}/libopenvswitch.a
%{_libdir}/libopenvswitch.la
%{_libdir}/libopenvswitchavx512.a
%{_libdir}/libopenvswitchavx512.la
%{_libdir}/libovsdb.a
%{_libdir}/libovsdb.la
%{_libdir}/libsflow.a
%{_libdir}/libsflow.la
%{_libdir}/libvtep.a
%{_libdir}/libvtep.la
%{_libdir}/libofproto.so
%{_libdir}/libovsdb.so
%{_libdir}/libsflow.so
%{_libdir}/libvtep.so
%{_libdir}/pkgconfig/libofproto.pc
%{_libdir}/pkgconfig/libopenvswitch.pc
%{_libdir}/pkgconfig/libovsdb.pc
%{_libdir}/pkgconfig/libsflow.pc
%doc NEWS README.rst
%changelog
* Wed Mar 03 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 2.15.0-1mamba
- package created using the webbuild interface