%global debug_package %{nil}
Name: openscap-daemon
Version: 0.1.10
Release: 3%{?dist}
Summary: Manages continuous SCAP scans of your infrastructure
License: LGPLv2+
URL: http://open-scap.org
Source0: https://github.com/OpenSCAP/openscap-daemon/releases/download/%{version}/openscap_daemon-%{version}.tar.gz
BuildArch: noarch
BuildRequires: systemd-units
BuildRequires: python3-devel
Requires: %{__python3}
Requires: python3-gobject-base
Requires: dbus
Requires: python3-dbus
# for the oscap tool
Requires: openscap-scanner
# for oscap-ssh, oscap-docker, oscap-vm
Requires: openscap-utils
%description
OpenSCAP-daemon is a service that performs SCAP scans of bare-metal machines,
virtual machines and containers. These scans can be either one-shot or
continuous according to a schedule. You can interact with the service
using the provided oscapd-cli tool or via the DBus interface.
%prep
%setup -q -n openscap_daemon-%{version}
%build
%{__python3} setup.py build
%install
%{__python3} setup.py install --skip-build --root $RPM_BUILD_ROOT
%files
%doc %{_docdir}/%{name}/README.md
%doc %{_docdir}/%{name}/LICENSE
%dir %{python3_sitelib}/openscap_daemon
%{python3_sitelib}/openscap_daemon/*
%{python3_sitelib}/*egg-info
%{_bindir}/oscapd
%{_mandir}/man8/oscapd.8.gz
%{_bindir}/oscapd-cli
%{_mandir}/man8/oscapd-cli.8.gz
%{_bindir}/oscapd-evaluate
%{_mandir}/man8/oscapd-evaluate.8.gz
%config(noreplace) %{_sysconfdir}/dbus-1/system.d/org.oscapd.conf
%{_unitdir}/oscapd.service
%changelog
* Thu Sep 20 2018 Tomas Orsava <torsava@redhat.com> - 0.1.10-3
- Require the Python interpreter directly instead of using the package name
- Related: rhbz#1619153
* Fri May 25 2018 Jan Černý <jcerny@redhat.com> - 0.1.10-2
- drop Python 2 dependencies, update spec file
* Fri Feb 09 2018 Jan Cerny <jcerny@redhat.com> - 0.1.10-1
- upgrade to the latest upstream release
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.9-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Tue Jan 16 2018 Jan Cerny <jcerny@redhat.com> - 0.1.9-1
- upgrade to the latest upstream release
* Thu Sep 28 2017 Martin Preisler <mpreisle@redhat.com> - 0.1.8-1
- upgrade to the latest upstream release
* Thu Aug 03 2017 Jan Cerny <jcerny@redhat.com> - 0.1.7-1
- upgrade to the latest upstream release
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.6-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.6-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.1.6-2
- Rebuild for Python 3.6
* Tue Sep 06 2016 Martin Preisler <mpreisle@redhat.com> - 0.1.6-1
- upgrade to the latest upstream release
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.5-2
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
* Fri Apr 22 2016 Martin Preisler <mpreisle@redhat.com> - 0.1.5-1
- upgrade to the latest upstream release
* Mon Mar 28 2016 Martin Preisler <mpreisle@redhat.com> - 0.1.4-1
- upgrade to the latest upstream release
* Thu Feb 11 2016 Šimon Lukašík <slukasik@redhat.com> - 0.1.3-1
- upgrade to the latest upstream release
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
* Thu Jan 28 2016 Martin Preisler <mpreisle@redhat.com> - 0.1.2-1
- updated to 0.1.2
- dropped dependency on python-requests
* Thu Jan 21 2016 Šimon Lukašík <slukasik@redhat.com> - 0.1.1-4
- Add dependency on python requests
* Wed Jan 20 2016 Šimon Lukašík <slukasik@redhat.com> - 0.1.1-3
- Add dependency on python gobject
* Tue Jan 12 2016 Martin Preisler <mpreisle@redhat.com> - 0.1.1-2
- dropped the atomic requirement, it's an optional dependency
* Mon Jan 11 2016 Martin Preisler <mpreisle@redhat.com> - 0.1.1-1
- updated to 0.1.1
* Tue Dec 01 2015 Šimon Lukašík <slukasik@redhat.com> - 0.1.0-5
- build on all platforms where atomic is available
* Fri Nov 27 2015 Šimon Lukašík <slukasik@redhat.com> - 0.1.0-4
- install openscap-daemon in python3 directories on F23+
* Fri Nov 27 2015 Šimon Lukašík <slukasik@redhat.com> - 0.1.0-3
- openscap-daemon is now exlusively on x86_64
* Fri Nov 20 2015 Martin Preisler <mpreisle@redhat.com> - 0.1.0-2
- require dbus
- fixed license
- added config(noreplace) for org.oscapd.conf
* Mon Oct 26 2015 Martin Preisler <mpreisle@redhat.com> - 0.1.0-1
- initial version