Blame mininet.spec

dc51b24
%global relver 2.3.1
529353f
%global prever b4
dc51b24
%global gitver %{relver}%{?prever:%{prever}}
10358ad
10358ad
Name:           mininet
dc51b24
Version:        %{relver}%{?prever:~%{prever}}
8ad6051
Release:        %autorelease
10358ad
Summary:        Emulator for rapid prototyping of Software Defined Networks
10358ad
8ad6051
License:        BSD-3-Clause
10358ad
URL:            https://github.com/%{name}/%{name}
dc51b24
Source0:        %{url}/archive/%{gitver}/%{name}-%{gitver}.tar.gz
10358ad
10358ad
BuildRequires:  python3-devel
10358ad
BuildRequires:  gcc
10358ad
BuildRequires:  help2man
10358ad
Requires:       openvswitch
10358ad
Requires:       libcgroup-tools
10358ad
Requires:       xterm, openssh-clients
10358ad
Requires:       which, psmisc, procps-ng
10358ad
Requires:       iproute, ethtool, net-tools
10358ad
Requires:       telnet, socat, iperf
10358ad
10358ad
%description
10358ad
Mininet emulates a complete network of hosts, links, and switches on a single
10358ad
machine. To create a sample two-host, one-switch network, just run: 'sudo mn'
10358ad
10358ad
Mininet is useful for interactive development, testing, and demos, especially
10358ad
those using OpenFlow and SDN. OpenFlow-based network controllers prototyped
10358ad
in Mininet can usually be transferred to hardware with minimal changes for
10358ad
full line-rate execution.
10358ad
10358ad
10358ad
%prep
dc51b24
%autosetup -p1 -n %{name}-%{gitver}
10358ad
10358ad
10358ad
%generate_buildrequires
10358ad
%pyproject_buildrequires
10358ad
10358ad
10358ad
%build
10358ad
%pyproject_wheel
10358ad
export PYTHON=%{python3}
10358ad
export CC="gcc %{optflags}"
10358ad
%make_build man
10358ad
%make_build mnexec
10358ad
10358ad
10358ad
%install
10358ad
install -D mnexec %{buildroot}%{_bindir}/mnexec
10358ad
install -D -t %{buildroot}%{_mandir}/man1 mn.1 mnexec.1
10358ad
%pyproject_install
10358ad
%pyproject_save_files %{name}
10358ad
10358ad
10358ad
%check
10358ad
%pyproject_check_import -t
10358ad
10358ad
10358ad
%files -f %{pyproject_files}
10358ad
%doc README.* CONTRIBUTORS
10358ad
%license LICENSE
10358ad
%{_bindir}/mn
10358ad
%{_bindir}/mnexec
10358ad
%{_mandir}/man1/mn.1*
10358ad
%{_mandir}/man1/mnexec.1*
10358ad
10358ad
a2fb1e8
%changelog
8ad6051
%autochangelog