gixy.spec 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. ########################################################################################
  2. Summary: Nginx configuration static analyzer
  3. Name: gixy
  4. Version: 0.1.5
  5. Release: 0%{?dist}
  6. License: MPLv2.0
  7. Group: Development/Utilities
  8. URL: https://github.com/yandex/gixy
  9. Source: https://github.com/yandex/%{name}/archive/v%{version}.tar.gz
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
  11. BuildArch: noarch
  12. BuildRequires: python-devel python-setuptools
  13. Requires: python-setuptools python-six >= 1.1.0 python-jinja >= 2.8
  14. Requires: python2-cached_property >= 1.2.0 python2-configargparse >= 0.11.0
  15. Requires: python-argparse >= 1.4.0 pyparsing >= 1.5.5 python-markupsafe
  16. Provides: %{name} = %{verion}-%{release}
  17. ########################################################################################
  18. %description
  19. Gixy is a tool to analyze Nginx configuration. The main goal of Gixy is to prevent
  20. misconfiguration and automate flaw detection.
  21. ########################################################################################
  22. %prep
  23. %setup -qn %{name}-%{version}
  24. %clean
  25. rm -rf %{buildroot}
  26. %build
  27. python setup.py build
  28. %install
  29. rm -rf %{buildroot}
  30. python setup.py install --prefix=%{_prefix} \
  31. --root=%{buildroot}
  32. ########################################################################################
  33. %files
  34. %defattr(-,root,root,-)
  35. %doc LICENSE AUTHORS README.md docs/*
  36. %{python_sitelib}/*
  37. %{_bindir}/%{name}
  38. ########################################################################################
  39. %changelog
  40. * Sun May 21 2017 Yandex Team <opensource@yandex-team.ru> - 0.1.5-0
  41. - Supported Python 2.6
  42. - Supported multiple config files scanning
  43. - Fixed summary count
  44. - Fixed symlink resolution
  45. - Minor improvements and fixes
  46. * Sun May 14 2017 Yandex Team <opensource@yandex-team.ru> - 0.1.4-0
  47. - Allow processing stdin, file descriptors
  48. - Fixed configuration parser
  49. * Thu May 11 2017 Yandex Team <opensource@yandex-team.ru> - 0.1.3-0
  50. - Uses english versions in plugins references
  51. * Tue May 02 2017 Yandex Team <opensource@yandex-team.ru> - 0.1.2-0
  52. - Fixed blank comments parsing
  53. - Added "auth_request_set" directive
  54. * Sat Apr 29 2017 Yandex Team <opensource@yandex-team.ru> - 0.1.1-0
  55. - Initial build