Created
February 23, 2017 19:25
-
-
Save dmsimard/8938d525f7bd2cd4a749f9b72bb5009e to your computer and use it in GitHub Desktop.
ara.spec
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%global package_name ara | |
Name: %{package_name} | |
Version: 0.10.3 | |
Release: 1%{?dist} | |
Summary: Record and visualize Ansible Playbook runs | |
# ARA is Apache v2 but Ansible plugins are GPLv3 | |
License: APSLv2 and GPLv3 | |
URL: https://git.openstack.org/cgit/openstack/ara | |
Source0: https://pypi.io/packages/source/a/%{package_name}/%{package_name}-%{version}.tar.gz | |
BuildArch: noarch | |
BuildRequires: python2-devel | |
BuildRequires: python-pbr | |
BuildRequires: python-setuptools | |
BuildRequires: gcc | |
BuildRequires: libffi-devel | |
BuildRequires: openssl-devel | |
BuildRequires: redhat-rpm-config | |
BuildRequires: git | |
Requires: ansible >= 2.1.1.0 | |
Requires: python-cliff | |
Requires: python-debtcollector | |
Requires: python-decorator >= 4.0.0 | |
Requires: python-flask | |
Requires: python-flask-migrate | |
Requires: python-flask-script | |
Requires: python-frozen-flask | |
Requires: python-pygments | |
Requires: python-sqlalchemy | |
%description | |
ARA: Ansible Run Analysis | |
ARA records Ansible Playbook runs seamlessly to make them easier to | |
visualize, understand and troubleshoot. It integrates with Ansible wherever you | |
run it. | |
%package -n %{package_name}-doc | |
Summary: Documentation for %{package_name} | |
BuildRequires: python-sphinx | |
BuildRequires: python-sphinx_rtd_theme | |
%description -n %{package_name}-doc | |
ARA: Ansible Run Analysis | |
ARA records Ansible Playbook runs seamlessly to make them easier to | |
visualize, understand and troubleshoot. It integrates with Ansible wherever you | |
run it. | |
This package contains the documentation. | |
%package -n %{package_name}-tests | |
Summary: Tests for %{package_name} | |
BuildRequires: ansible >= 2.1.1.0 | |
BuildRequires: python-cliff | |
BuildRequires: python-debtcollector | |
BuildRequires: python-decorator | |
BuildRequires: python-flask | |
BuildRequires: python-flask-migrate | |
BuildRequires: python-flask-script | |
BuildRequires: python-frozen-flask | |
BuildRequires: python-pygments | |
BuildRequires: python-sqlalchemy | |
BuildRequires: python-pytest | |
Requires: %{package_name} = %{version}-%{release} | |
%description -n %{package_name}-tests | |
ARA: Ansible Run Analysis | |
ARA records Ansible Playbook runs seamlessly to make them easier to | |
visualize, understand and troubleshoot. It integrates with Ansible wherever you | |
run it. | |
This package contains the test files. | |
%prep | |
%autosetup -n %{package_name}-%{version} -S git | |
%build | |
%py2_build | |
sphinx-build -W -b html doc/source doc/build/html | |
%install | |
%py2_install | |
%check | |
%{__python2} -m py.test | |
%files -n %{package_name} | |
%doc README.rst | |
%license LICENSE | |
%{python2_sitelib}/%{package_name} | |
%{python2_sitelib}/%{package_name}-*.egg-info | |
%{_bindir}/ara | |
%{_bindir}/ara-manage | |
%exclude %{python2_sitelib}/%{package_name}/tests | |
%files -n %{package_name}-doc | |
%doc README.rst doc/build/html | |
%license LICENSE | |
%files -n %{package_name}-tests | |
%doc README.rst | |
%license LICENSE | |
%{python2_sitelib}/%{package_name}/tests | |
%changelog | |
* Sat Dec 10 2016 David Moreau Simard <dmsimard@redhat.com> - 0.10.1-1 | |
- First version |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment