Blob Blame History Raw
%global srcname ara

Name:           %{srcname}
Version:        1.2.0
Release:        2%{?dist}
Summary:        ARA Records Ansible playbooks and makes them easier to understand and troubleshoot

License:        GPLv3
BuildArch:      noarch

BuildRequires:  git

Requires:       python3-%{srcname} = %{version}-%{release}


It provides Ansible plugins to record Ansible playbooks to a local or remote
database and an API to query and browse playbook results

%package -n python3-%{srcname}
Summary:        %{summary}

BuildRequires:  python3-devel
BuildRequires:  python3-pbr

Requires:       python3-requests

%{?python_provide:%python_provide python3-%{srcname}}

%description -n python3-%{srcname}

This package contains the python files and Ansible plugins

%package -n python3-%{srcname}-server
Summary:        %{summary}

Provides:       %{srcname}-server = %{version}-%{release}

# Test dependencies for check macro
BuildRequires:  python3-django
BuildRequires:  python3-django-cors-headers
BuildRequires:  python3-django-health-check
BuildRequires:  python3-django-filter
BuildRequires:  python3-django-rest-framework
BuildRequires:  python3-dynaconf
BuildRequires:  python3-factory-boy
BuildRequires:  python3-faker
BuildRequires:  python3-pygments
BuildRequires:  python3-PyYAML
BuildRequires:  python3-tzlocal
BuildRequires:  python3-whitenoise

Requires:       python3-%{srcname}
Requires:       python3-django
Requires:       python3-django-cors-headers
Requires:       python3-django-health-check
Requires:       python3-django-filter
Requires:       python3-django-rest-framework
Requires:       python3-dynaconf
Requires:       python3-pygments
Requires:       python3-PyYAML
Requires:       python3-tzlocal
Requires:       python3-whitenoise

%description -n python3-%{srcname}-server

This package installs the necessary dependencies to run the API server

%package -n python3-%{srcname}-tests
Summary:        %{summary}

Requires:       python3-%{srcname}-server = %{version}-%{release}
Requires:       python3-factory-boy
Requires:       python3-faker

%description -n python3-%{srcname}-tests

This package installs the necessary test dependencies and contains the test files

%package doc
Summary:        %{summary}

BuildRequires:  python3-sphinx
BuildRequires:  python3-sphinx_rtd_theme

%description doc

This package installs the documentation files

%autosetup -n %{srcname}-%{version} -S git

sphinx-build -b html doc/source doc/build/html


# Run unit tests
cd %{_builddir}/%{srcname}-%{version}
# Set time zone to UTC -- buildsystem's timezone is "local" which isn't valid
ARA_TIME_ZONE=UTC %{__python3} test %{srcname}

%doc README.rst
%license LICENSE

%files -n python3-%{srcname}
%doc README.rst
%license LICENSE
%exclude %{python3_sitelib}/%{srcname}/api/tests

%files -n python3-%{srcname}-server
%doc README.rst
%license LICENSE

%files -n python3-%{srcname}-tests
%doc README.rst
%license LICENSE

%files doc
%doc README.rst doc/build/html
%license LICENSE

* Wed Nov 6 2019 David Moreau Simard <> - 1.2.0-2
- Add missing pygments dependency

* Wed Nov 6 2019 David Moreau Simard <> - 1.2.0-1
- Update to latest upstream release

* Tue Oct 8 2019 David Moreau Simard <> - 1.1.0-3
- Add an ara-server package alias to python3-ara-server

* Tue Sep 10 2019 David Moreau Simard <> - 1.1.0-1
- Update to latest upstream release

* Wed Jul 24 2019 Fedora Release Engineering <> - 0.16.1-4
- Rebuilt for

* Thu Jan 31 2019 Fedora Release Engineering <> - 0.16.1-3
- Rebuilt for

* Mon Sep 10 2018 David Moreau Simard <> - 0.16.1
- Update to latest upstream release
- Default to python3

* Thu Jul 12 2018 Fedora Release Engineering <> - 0.14.6-3
- Rebuilt for

* Tue Jun 19 2018 Miro HronĨok <> - 0.14.6-2
- Rebuilt for Python 3.7

* Sat Feb 24 2018 David Moreau Simard <> - 0.14.6-1
- Update to upstream 0.14.6

* Wed Feb 07 2018 Fedora Release Engineering <> - 0.14.0-2
- Rebuilt for

* Sat Aug 5 2017 David Moreau Simard <> - 0.14.0-1
- First packaged version of ARA