summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2025-04-02 09:55:28 +0000
committerCoprDistGit <infra@openeuler.org>2025-04-02 09:55:28 +0000
commitaa48e9f7c0cfd1cf47b47e8dcc0b08de3edcb1a3 (patch)
treed1ecaac13e821ab89660460e65898690dd7894ec
parentf0d3fddc4d27b711f89d334787d9cd8d672f2d6b (diff)
-rw-r--r--.gitignore1
-rw-r--r--pxeuler.spec39
-rw-r--r--sources1
3 files changed, 41 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..f7576b7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/pxeuler-1.0.0.tar.gz
diff --git a/pxeuler.spec b/pxeuler.spec
new file mode 100644
index 0000000..1efabac
--- /dev/null
+++ b/pxeuler.spec
@@ -0,0 +1,39 @@
+Name: pxeuler
+Version: 1.0.0
+Release: 1
+Summary: 用于pxe自动化系统安装
+
+License: GPLv3+
+URL: https://gitee.com/quanag_100/pxeuler
+Source0: %{name}-%{version}.tar.gz
+
+BuildRequires: python3-devel
+Requires: python3
+
+%description
+PXEuler自动化部署工具,用于快速配置网络启动环境。
+
+%prep
+%autosetup -p1 -n %{name}-%{version}
+
+%build
+%define debug_package %{nil}
+
+%install
+mkdir -p %{buildroot}/usr
+
+cp -rdpf %{_builddir}/%{name}-%{version}/usr/local %{buildroot}/usr
+
+%post
+set -u
+
+rm -rf /usr/sbin/pxeuler
+ln -s /usr/local/%{name}/pxeuler.py /usr/sbin/pxeuler
+
+%files
+/usr/local/%{name}/*
+
+
+%changelog
+* Fri Mar 21 2025 Your Name <your.email@example.com> - 1.0.0-1
+- 初始版本:实现基础功能与软链接创建
diff --git a/sources b/sources
new file mode 100644
index 0000000..4bbedc0
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+f757054f169e31fa478751a98b7405ab pxeuler-1.0.0.tar.gz