summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-09-18 05:04:50 +0000
committerCoprDistGit <infra@openeuler.org>2023-09-18 05:04:50 +0000
commit0b3a96335bb6ba8392ca67ef4d044575e9b8e3d4 (patch)
treed4989a44fc934b5e07552638781db8a53efe27ab
parent33fc995feedb3334b5ae67bc5ee71bbc03b2bd35 (diff)
-rw-r--r--.gitignore1
-rw-r--r--drv-img.spec35
-rw-r--r--sources1
3 files changed, 37 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..4ea213f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/drv-img-0.1.0.tar.gz
diff --git a/drv-img.spec b/drv-img.spec
new file mode 100644
index 0000000..5fd91a0
--- /dev/null
+++ b/drv-img.spec
@@ -0,0 +1,35 @@
+Name: drv-img
+Version: 0.1.0
+Release: 1
+Summary: A cli tool to inject diver and package to Linux iso image
+License: GPLv2
+
+URL: https://github.com/IZUMI-Zu/%{name}
+Source0: https://github.com/IZUMI-Zu/%{name}/archive/%{name}-%{version}.tar.gz
+
+BuildArch: noarch
+BuildRequires: python3-setuptools python3-devel
+Requires: createrepo_c genisoimage isomd5sum kmod
+Requires: python3-packaging python3-rpm rpm coreutils squashfs-tools util-linux
+
+%description
+A cli tool to inject diver and package to Linux iso image
+
+%prep
+%autosetup -n %{name}-%{version} -p1
+
+%build
+%py3_build
+
+%install
+%py3_install
+
+%files
+%license LICENSE
+%{python3_sitelib}/*
+%{_bindir}/%{name}
+%doc README.md
+
+%changelog
+* Sun Sep 17 2023 binshuozu binshuozu@gmail.com - 0.1.0-1
+- Initial package
diff --git a/sources b/sources
new file mode 100644
index 0000000..1e5590d
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+7723003a00cd5888bcea282afb178de1 drv-img-0.1.0.tar.gz