-
Notifications
You must be signed in to change notification settings - Fork 11
/
SciPass.spec
64 lines (53 loc) · 1.68 KB
/
SciPass.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
56
57
58
59
60
61
62
63
64
Summary: Science DMZ and IDS loadbalancer via OpenFlow RYU
Name: SciPass
Version: 1.0.4
Release: 1
License: Apache2
Group: GRNOC
URL: http://globalnoc.iu.edu
Source0: %{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
Requires: python-lxml
Requires: python-ryu >= 3.21
Requires: perl-Term-ReadLine-Gnu
Requires: python-ipaddr
Requires: python-WebOb >= 1.4.1
Requires: python-netaddr
Requires: python-oslo.config >= 1.11
Requires: python-six >= 1.9.0
Requires: python-stevedore >= 1.4.0
%description
SciPass is a Science DMZ and IDS load balance via OpenFlow and Ryu
%prep
%setup -q
%build
%install
rm -rf $RPM_BUILD_ROOT
%{__install} -d -p %{buildroot}/%{python_sitelib}/SciPass/
%{__install} -d -p %{buildroot}/%{perl_vendorlib}/SciPass/
%{__install} -d -p %{buildroot}/etc/SciPass/
%{__install} -d -p %{buildroot}/etc/init.d
%{__install} -d -p %{buildroot}/usr/bin/
%{__install} python/*.py %{buildroot}/%{python_sitelib}/SciPass/
%{__install} perl/lib/SciPass/*.pm %{buildroot}/%{perl_vendorlib}/SciPass/
%{__install} etc/SciPass.xml %{buildroot}/etc/SciPass/
%{__install} etc/SciPass.xsd %{buildroot}/etc/SciPass/
%{__install} etc/ryu.conf %{buildroot}/etc/SciPass/
%{__install} etc/scipass-init %{buildroot}/etc/init.d/scipass
%{__install} perl/bin/scipass-cli.pl %{buildroot}/usr/bin/scipass-cli.pl
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
/etc/init.d/scipass
%config(noreplace) /etc/SciPass/SciPass.xml
/etc/SciPass/SciPass.xsd
/etc/SciPass/ryu.conf
%{python_sitelib}/SciPass/*
%{perl_vendorlib}/*
%defattr(755, root, root, -)
/usr/bin/scipass-cli.pl
%doc
%changelog
* Fri Jul 25 2014 aragusa <[email protected]> -
- Initial build.