98e9281
%global srcname ara
6b37477
98e9281
Name:           %{srcname}
e0e0734
Version:        1.2.0
e0e0734
Release:        1%{?dist}
baaf183
Summary:        ARA Records Ansible playbooks and makes them easier to understand and troubleshoot
6b37477
6b37477
License:        GPLv3
98e9281
URL:            https://github.com/ansible-community/ara
98e9281
Source0:        https://pypi.io/packages/source/a/%{srcname}/%{srcname}-%{version}.tar.gz
6b37477
BuildArch:      noarch
6b37477
6b37477
BuildRequires:  git
6b37477
98e9281
Requires:       python3-%{srcname} = %{version}-%{release}
6b37477
6b37477
%description
98e9281
%{summary}
98e9281
98e9281
It provides Ansible plugins to record Ansible playbooks to a local or remote
baaf183
database and an API to query and browse playbook results
6b37477
98e9281
%package -n python3-%{srcname}
6b37477
Summary:        %{summary}
6b37477
6b37477
BuildRequires:  python3-devel
6b37477
BuildRequires:  python3-pbr
6b37477
98e9281
Requires:       python3-requests
6b37477
98e9281
%{?python_provide:%python_provide python3-%{srcname}}
6b37477
98e9281
%description -n python3-%{srcname}
98e9281
%{summary}
6b37477
baaf183
This package contains the python files and Ansible plugins
6b37477
98e9281
%package -n python3-%{srcname}-server
98e9281
Summary:        %{summary}
6b37477
a69b0a0
Provides:       %{srcname}-server = %{version}-%{release}
a69b0a0
98e9281
# Test dependencies for check macro
98e9281
BuildRequires:  python3-django
98e9281
BuildRequires:  python3-django-cors-headers
e0e0734
BuildRequires:  python3-django-health-check
98e9281
BuildRequires:  python3-django-filter
98e9281
BuildRequires:  python3-django-rest-framework
98e9281
BuildRequires:  python3-dynaconf
98e9281
BuildRequires:  python3-factory-boy
98e9281
BuildRequires:  python3-faker
98e9281
BuildRequires:  python3-PyYAML
e0e0734
BuildRequires:  python3-tzlocal
98e9281
BuildRequires:  python3-whitenoise
98e9281
98e9281
Requires:       python3-%{srcname}
98e9281
Requires:       python3-django
98e9281
Requires:       python3-django-cors-headers
e0e0734
Requires:       python3-django-health-check
98e9281
Requires:       python3-django-filter
98e9281
Requires:       python3-django-rest-framework
98e9281
Requires:       python3-dynaconf
98e9281
Requires:       python3-PyYAML
e0e0734
Requires:       python3-tzlocal
98e9281
Requires:       python3-whitenoise
98e9281
98e9281
%description -n python3-%{srcname}-server
98e9281
%{summary}
98e9281
baaf183
This package installs the necessary dependencies to run the API server
98e9281
98e9281
%package -n python3-%{srcname}-tests
98e9281
Summary:        %{summary}
6b37477
98e9281
Requires:       python3-%{srcname}-server = %{version}-%{release}
98e9281
Requires:       python3-factory-boy
98e9281
Requires:       python3-faker
98e9281
98e9281
%description -n python3-%{srcname}-tests
98e9281
%{summary}
6b37477
baaf183
This package installs the necessary test dependencies and contains the test files
6b37477
6b37477
%package doc
98e9281
Summary:        %{summary}
6b37477
6b37477
BuildRequires:  python3-sphinx
6b37477
BuildRequires:  python3-sphinx_rtd_theme
6b37477
6b37477
%description doc
6b37477
%{common_desc}
6b37477
baaf183
This package installs the documentation files
6b37477
6b37477
%prep
98e9281
%autosetup -n %{srcname}-%{version} -S git
6b37477
6b37477
%build
6b37477
%py3_build
6b37477
sphinx-build -b html doc/source doc/build/html
6b37477
6b37477
%install
6b37477
%py3_install
6b37477
6b37477
%check
6b37477
# Run unit tests
98e9281
cd %{_builddir}/%{srcname}-%{version}
a4224a7
# Set time zone to UTC -- buildsystem's timezone is "local" which isn't valid
a4224a7
%{__python3} ARA_TIME_ZONE=UTC manage.py test %{srcname}
6b37477
6b37477
%files
6b37477
%doc README.rst
6b37477
%license LICENSE
6b37477
98e9281
%files -n python3-%{srcname}
6b37477
%doc README.rst
6b37477
%license LICENSE
98e9281
%{python3_sitelib}/%{srcname}
98e9281
%{python3_sitelib}/%{srcname}-*.egg-info
98e9281
%exclude %{python3_sitelib}/%{srcname}/api/tests
6b37477
98e9281
%files -n python3-%{srcname}-server
6b37477
%doc README.rst
6b37477
%license LICENSE
98e9281
%{_bindir}/ara-manage
6b37477
98e9281
%files -n python3-%{srcname}-tests
6b37477
%doc README.rst
6b37477
%license LICENSE
98e9281
%{python3_sitelib}/%{srcname}/api/tests
6b37477
6b37477
%files doc
6b37477
%doc README.rst doc/build/html
6b37477
%license LICENSE
6b37477
6b37477
%changelog
e0e0734
* Wed Nov 6 2019 David Moreau Simard <dmsimard@redhat.com> - 1.2.0-1
e0e0734
- Update to latest upstream release
e0e0734
a69b0a0
* Tue Oct 8 2019 David Moreau Simard <dmsimard@redhat.com> - 1.1.0-3
a69b0a0
- Add an ara-server package alias to python3-ara-server
a69b0a0
98e9281
* Tue Sep 10 2019 David Moreau Simard <dmsimard@redhat.com> - 1.1.0-1
98e9281
- Update to latest upstream release
98e9281
6b37477
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.16.1-4
6b37477
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
6b37477
6b37477
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.16.1-3
6b37477
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
6b37477
6b37477
* Mon Sep 10 2018 David Moreau Simard <dmsimard@redhat.com> - 0.16.1
6b37477
- Update to latest upstream release
6b37477
- Default to python3
6b37477
6b37477
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.14.6-3
6b37477
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
6b37477
6b37477
* Tue Jun 19 2018 Miro HronĨok <mhroncok@redhat.com> - 0.14.6-2
6b37477
- Rebuilt for Python 3.7
6b37477
6b37477
* Sat Feb 24 2018 David Moreau Simard <dmsimard@redhat.com> - 0.14.6-1
6b37477
- Update to upstream 0.14.6
6b37477
6b37477
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.14.0-2
6b37477
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
6b37477
6b37477
* Sat Aug 5 2017 David Moreau Simard <dmsimard@redhat.com> - 0.14.0-1
6b37477
- First packaged version of ARA