-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathopenflow.spec
56 lines (47 loc) · 1.24 KB
/
openflow.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
%define build_timestamp %(date +"%Y%m%d")
%define repo_url https://github.com/mininet/openflow
Name: openflow
Version: master
Release: %{build_timestamp}%{?dist}
Summary: OpenFlow is a flow-based switch specification designed to enable researchers to run experiments in live networks.
License: GPL2
URL: https://github.com/mininet/openflow
Source0: %{repo_url}
BuildRequires: gcc make openssl-devel autoconf automake git
Requires: openssl
%description
OpenFlow is a flow-based switch specification designed to enable researchers to run experiments in live networks.
%prep
if [ ! -d "%{SOURCE0}" ]; then
git clone %{repo_url} %{SOURCE0}
fi
if [ ! -d "openflow" ]; then
git clone %{SOURCE0}
fi
%build
ls
cd openflow
./boot.sh
%configure
make %{?_smp_mflags}
%install
cd openflow
%make_install
%files
/usr/bin/controller
/usr/bin/dpctl
/usr/bin/ofdatapath
/usr/bin/ofp-discover
/usr/bin/ofp-kill
/usr/bin/ofp-pki
/usr/bin/ofprotocol
/usr/bin/vlogconf
/usr/share/man/man8/controller.8.gz
/usr/share/man/man8/dpctl.8.gz
/usr/share/man/man8/ofdatapath.8.gz
/usr/share/man/man8/ofp-discover.8.gz
/usr/share/man/man8/ofp-kill.8.gz
/usr/share/man/man8/ofp-pki.8.gz
/usr/share/man/man8/ofprotocol.8.gz
/usr/share/man/man8/vlogconf.8.gz
/usr/share/openflow/commands/reboot