forked from gooddata/sgmanager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sgmanager.spec
47 lines (37 loc) · 1.05 KB
/
sgmanager.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
%global with_check 0
Name: sgmanager
Version: 1.4.5
Release: 1%{?dist}
Summary: Tooling for EC2 security groups management
Group: Development/Libraries
License: BSD
URL: https://github.com/gooddata/sgmanager
Source0: sgmanager.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: python2-devel python-setuptools-devel
Requires: python-requests python-boto PyYAML
%if 0%{?rhel} < 7
Requires: python-argparse
%endif
%description
Tooling for management of security groups. Load local configuration, load
remote groups and apply differences.
%prep
%setup -q -n sgmanager
%build
%{__python} setup.py build
%install
%{__rm} -rf %{buildroot}
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
%if 0%{?with_check}
%check
%{__python} setup.py test
%endif #with_check
%clean
%{__rm} -rf %{buildroot}
%files
%defattr(-,root,root,-)
%{python_sitelib}/*.egg-info
%{python_sitelib}/sgmanager
/usr/bin/sgmanager