summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-03-26 09:02:56 +0000
committerCoprDistGit <infra@openeuler.org>2023-03-26 09:02:56 +0000
commitc77640e30030f8fbd080e3e1a09822fb95f4b701 (patch)
treef7be9623158423ba29cba24ba4e8cf8089131369
parent1b1b47b7f7f3c3b7ca0d455df08d4303caf3438f (diff)
automatic import of dib-utilsopeneuler20.03
-rw-r--r--.gitignore1
-rw-r--r--dib-utils.spec54
-rw-r--r--sources1
3 files changed, 56 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..138ecb0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/dib-utils-0.0.11.tar.gz
diff --git a/dib-utils.spec b/dib-utils.spec
new file mode 100644
index 0000000..85fa9b4
--- /dev/null
+++ b/dib-utils.spec
@@ -0,0 +1,54 @@
+# Macros for py2/py3 compatibility
+%if 0%{?fedora} || 0%{?rhel} > 7 || 0%{?openEuler}
+%global pyver 3
+%else
+%global pyver 2
+%endif
+
+%global pyver_bin python%{pyver}
+%global pyver_sitelib %{expand:%{python%{pyver}_sitelib}}
+%global pyver_install %{expand:%{py%{pyver}_install}}
+%global pyver_build %{expand:%{py%{pyver}_build}}
+# End of macros for py2/py3 compatibility
+
+%{!?upstream_version: %global upstream_version %{version}%{?milestone}}
+Name: dib-utils
+Summary: Pieces of diskimage-builder that are useful standalone
+Version: 0.0.11
+Release: 1%{?dist}
+License: ASL 2.0
+Group: System Environment/Base
+URL: https://git.openstack.org/cgit/openstack/dib-utils
+Source0: https://tarballs.openstack.org/dib-utils/dib-utils-%{upstream_version}.tar.gz
+
+BuildArch: noarch
+
+BuildRequires: python%{pyver}-devel
+BuildRequires: python%{pyver}-setuptools
+BuildRequires: python%{pyver}-pbr
+
+Conflicts: diskimage-builder < 0.1.15
+
+%description
+Pieces of diskimage-builder that are useful standalone.
+This allows them to be used without pulling in all of
+diskimage-builder and its dependencies.
+
+%prep
+%setup -q -n %{name}-%{upstream_version}
+
+%build
+%{pyver_build}
+
+%install
+%{pyver_install}
+
+
+%files
+%doc README.md
+%{_bindir}/dib-run-parts
+%{pyver_sitelib}/dib_utils*
+
+%changelog
+* Thu Aug 16 2018 RDO <dev@lists.rdoproject.org> 0.0.11-1
+- Update to 0.0.11
diff --git a/sources b/sources
new file mode 100644
index 0000000..a6ee517
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+a6038ed7d94def7b8a8cd1410d61acc3 dib-utils-0.0.11.tar.gz