[python-pycadf] initial import (#1073974)

Pádraig Brady pbrady at fedoraproject.org
Mon Mar 10 13:10:44 UTC 2014


commit eed6996920dc3cd5f31f66c0189402b487cf1423
Author: Pádraig Brady <P at draigBrady.com>
Date:   Mon Mar 10 13:09:34 2014 +0000

    initial import (#1073974)

 .gitignore         |    1 +
 python-pycadf.spec |   64 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources            |    1 +
 3 files changed, 66 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..c0ccce7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/pycadf-0.4.1.tar.gz
diff --git a/python-pycadf.spec b/python-pycadf.spec
new file mode 100644
index 0000000..9fc157f
--- /dev/null
+++ b/python-pycadf.spec
@@ -0,0 +1,64 @@
+# Created by pyp2rpm-1.0.1
+%global pypi_name pycadf
+
+# see https://fedoraproject.org/wiki/Packaging:Python#Macros
+%if 0%{?rhel} && 0%{?rhel} <= 6
+%{!?__python2: %global __python2 /usr/bin/python2}
+%{!?python2_sitelib: %global python2_sitelib %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
+%{!?python2_sitearch: %global python2_sitearch %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
+%endif
+
+Name:           python-%{pypi_name}
+Version:        0.4.1
+Release:        2%{?dist}
+Summary:        DMTF Cloud Audit (CADF) data model
+
+License:        ASL 2.0
+URL:            https://launchpad.net/pycadf
+Source0:        https://pypi.python.org/packages/source/p/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
+BuildArch:      noarch
+
+BuildRequires:  python2-devel
+BuildRequires:  python-pbr
+
+Requires:       python-babel
+Requires:       python-iso8601
+Requires:       python-netaddr
+Requires:       python-oslo-config >= 1:1.2.0
+Requires:       python-oslo-messaging
+Requires:       pytz
+Requires:       python-six >= 1.4.1
+Requires:       python-webob >= 1.2.3
+
+%description
+DMTF Cloud Audit (CADF) data model
+
+
+%prep
+%setup -q -n %{pypi_name}-%{version}
+# Remove bundled egg-info
+rm -rf %{pypi_name}.egg-info
+
+
+%build
+%{__python2} setup.py build
+
+
+%install
+%{__python2} setup.py install --skip-build --root %{buildroot}
+mkdir -p %{buildroot}/%{_sysconfdir}
+mv %{buildroot}/usr/etc/%{pypi_name} %{buildroot}/%{_sysconfdir}/
+rm -rf %{buildroot}/%{python_sitelib}/%{pypi_name}/tests
+
+
+%files
+%doc README.rst LICENSE
+%dir %{_sysconfdir}/%{pypi_name}
+%config(noreplace) %{_sysconfdir}/%{pypi_name}/*.conf
+%{python2_sitelib}/%{pypi_name}
+%{python2_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
+
+
+%changelog
+* Fri Mar 07 2014 Padraig Brady <P at draigBrady.com> - 0.4.1-2
+- Initial package.
diff --git a/sources b/sources
index e69de29..d76fe5b 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+610aa5dedf28dcf26bff630f1758c194  pycadf-0.4.1.tar.gz


More information about the scm-commits mailing list