diff --git a/README.md b/README.md index ad1df13..d2923ee 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # python-pycadf #### 介绍 -CADF Python module +This library provides an auditing data model based on the Cloud Auditing Data Federation specification, primarily for use by OpenStack. The goal is to establish strict expectations about what auditors can expect from audit notifications. #### 软件架构 软件架构说明 diff --git a/pycadf-3.1.1.tar.gz b/pycadf-3.1.1.tar.gz new file mode 100644 index 0000000..cc294e7 Binary files /dev/null and b/pycadf-3.1.1.tar.gz differ diff --git a/python-pycadf.spec b/python-pycadf.spec new file mode 100644 index 0000000..1669b29 --- /dev/null +++ b/python-pycadf.spec @@ -0,0 +1,76 @@ + +Name: python-pycadf +Version: 3.1.1 +Release: 1 +Summary: CADF Python module +License: Apache Software License +URL: https://docs.openstack.org/pycadf/latest/ +Source0: https://files.pythonhosted.org/packages/83/5a/45506b000bf13fee4da64304aec169f9cddd0704add9a0339fd61f76a25c/pycadf-3.1.1.tar.gz +BuildArch: noarch + +%description +This library provides an auditing data model based on \ +the Cloud Auditing Data Federation specification, primarily \ +for use by OpenStack. The goal is to establish strict expectations \ +about what auditors can expect from audit notifications. + + +%package -n python3-pycadf +Summary: CADF Python module +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pbr + +Requires: python3-debtcollector >= 1.2.0 +Requires: python3-oslo-config +Requires: python3-oslo-serialization >= 2.18.0 +Requires: python3-pytz +Requires: python3-six >= 1.10.0 +Requires: python-pycadf-common = %{version}-%{release} + +%description -n python3-pycadf +This library provides an auditing data model based on \ +the Cloud Auditing Data Federation specification, primarily \ +for use by OpenStack. The goal is to establish strict expectations \ +about what auditors can expect from audit notifications. + +%package -n python-pycadf-common +Summary: CADF Python module + +%description -n python-pycadf-common +This library provides an auditing data model based on \ +the Cloud Auditing Data Federation specification, primarily \ +for use by OpenStack. The goal is to establish strict expectations \ +about what auditors can expect from audit notifications. + + +%prep + +%setup -q -n pycadf-3.1.1 +rm -rf pycadf.egg-info + +%build +%{py3_build} + +%install +%{py3_install} + +mkdir -p %{buildroot}/%{_sysconfdir} +mv %{buildroot}/usr/etc/pycadf %{buildroot}/%{_sysconfdir}/ + +%files -n python3-pycadf +%{python3_sitelib}/pycadf +%{python3_sitelib}/pycadf-3.1.1-py%{python3_version}.egg-info + +%files -n python-pycadf-common +%doc README.rst +%license LICENSE +%dir %{_sysconfdir}/pycadf +%config(noreplace) %{_sysconfdir}/pycadf/*.conf + + +%changelog +* Wed Dec 30 2020 Python_Bot +- Package Spec generated + +