forked from yandex/gixy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gixy.spec
78 lines (55 loc) · 2.31 KB
/
gixy.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
65
66
67
68
69
70
71
72
73
74
75
76
77
########################################################################################
Summary: Nginx configuration static analyzer
Name: gixy
Version: 0.1.5
Release: 0%{?dist}
License: MPLv2.0
Group: Development/Utilities
URL: https://github.com/yandex/gixy
Source: https://github.com/yandex/%{name}/archive/v%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: python-devel python-setuptools
Requires: python-setuptools python-six >= 1.1.0 python-jinja >= 2.8
Requires: python2-cached_property >= 1.2.0 python2-configargparse >= 0.11.0
Requires: python-argparse >= 1.4.0 pyparsing >= 1.5.5 python-markupsafe
Provides: %{name} = %{verion}-%{release}
########################################################################################
%description
Gixy is a tool to analyze Nginx configuration. The main goal of Gixy is to prevent
misconfiguration and automate flaw detection.
########################################################################################
%prep
%setup -qn %{name}-%{version}
%clean
rm -rf %{buildroot}
%build
python setup.py build
%install
rm -rf %{buildroot}
python setup.py install --prefix=%{_prefix} \
--root=%{buildroot}
########################################################################################
%files
%defattr(-,root,root,-)
%doc LICENSE AUTHORS README.md docs/*
%{python_sitelib}/*
%{_bindir}/%{name}
########################################################################################
%changelog
* Sun May 21 2017 Yandex Team <[email protected]> - 0.1.5-0
- Supported Python 2.6
- Supported multiple config files scanning
- Fixed summary count
- Fixed symlink resolution
- Minor improvements and fixes
* Sun May 14 2017 Yandex Team <[email protected]> - 0.1.4-0
- Allow processing stdin, file descriptors
- Fixed configuration parser
* Thu May 11 2017 Yandex Team <[email protected]> - 0.1.3-0
- Uses english versions in plugins references
* Tue May 02 2017 Yandex Team <[email protected]> - 0.1.2-0
- Fixed blank comments parsing
- Added "auth_request_set" directive
* Sat Apr 29 2017 Yandex Team <[email protected]> - 0.1.1-0
- Initial build