From d5d4d50add363e1d8e4984f89678ccc2407380ac Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Wed, 8 Jan 2025 10:59:15 +0000 Subject: automatic import of file-reorganize --- file-reognaze.spec | 46 ---------------------------------------------- file-reorganize.spec | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 48 insertions(+), 46 deletions(-) delete mode 100644 file-reognaze.spec create mode 100644 file-reorganize.spec diff --git a/file-reognaze.spec b/file-reognaze.spec deleted file mode 100644 index a31867c..0000000 --- a/file-reognaze.spec +++ /dev/null @@ -1,46 +0,0 @@ -Name: file-reorganize -Version: 1.0 -Release: 1%{?dist} -Summary: file reoganize - -License: MulanPSL2.0 -URL: https://atomgit.com/openeuler123/x_haihua.git -Source0: %{name}-%{version}.tar.gz - -%define debug_package %{nil} - -%description - - -%prep -%autosetup - -# 安装cangjie -plt=`uname -m` -if [[ $plt -eq "x86_64" ]]; then - wget https://cangjie-lang.cn/v1/files/auth/downLoad?nsId=142267&fileName=Cangjie-0.53.13-linux_x64.tar.gz&objectKey=6719f1eb3af6947e3c6af327 -else - cd %{_builddir}/%{name}-%{version}/lib - tar -xzvf Cangjie-0.53.13-linux_aarch64.tar.gz cangjie -fi -source %{_builddir}/%{name}-%{version}/lib/cangjie/envsetup.sh - -%build -cjpm build - -%install -# 将需要打包的文件拷贝到buildroot目录中去 -mkdir -p %{buildroot}/root/file-reorganize/bin -mkdir -p %{buildroot}/root/file-reorganize/config -cp -r %{_builddir}/%{name}-%{version}/target/release/bin/* %{buildroot}/root/file-reorganize/bin -cp -r %{_builddir}/%{name}-%{version}/config/* %{buildroot}/root/file-reorganize/config - -%files -# 指定将要部署的文件有哪些 -/root/file-reorganize/bin/* -/root/file-reorganize/config/* - - -%changelog -* Tue Dec 24 2024 x_haihua -- diff --git a/file-reorganize.spec b/file-reorganize.spec new file mode 100644 index 0000000..f8e0b7c --- /dev/null +++ b/file-reorganize.spec @@ -0,0 +1,48 @@ +Name: file-reorganize +Version: 1.0 +Release: 1%{?dist} +Summary: file reoganize + +License: MulanPSL2.0 +URL: https://atomgit.com/openeuler123/x_haihua.git +Source0: %{name}-%{version}.tar.gz + +BuildRequires: wget, dnf-plugins-core, binutils, glibc-devel, gcc-c++, openssl + +%define debug_package %{nil} + +%description + + +%prep +%autosetup + +# 安装cangjie +plt=`uname -m` +if [[ $plt -eq "x86_64" ]]; then + wget https://cangjie-lang.cn/v1/files/auth/downLoad?nsId=142267&fileName=Cangjie-0.53.13-linux_x64.tar.gz&objectKey=6719f1eb3af6947e3c6af327 +else + cd %{_builddir}/%{name}-%{version}/lib + tar -xzvf Cangjie-0.53.13-linux_aarch64.tar.gz cangjie +fi +source %{_builddir}/%{name}-%{version}/lib/cangjie/envsetup.sh + +%build +cjpm build + +%install +# 将需要打包的文件拷贝到buildroot目录中去 +mkdir -p %{buildroot}/root/file-reorganize/bin +mkdir -p %{buildroot}/root/file-reorganize/config +cp -r %{_builddir}/%{name}-%{version}/target/release/bin/* %{buildroot}/root/file-reorganize/bin +cp -r %{_builddir}/%{name}-%{version}/config/* %{buildroot}/root/file-reorganize/config + +%files +# 指定将要部署的文件有哪些 +/root/file-reorganize/bin/* +/root/file-reorganize/config/* + + +%changelog +* Tue Dec 24 2024 x_haihua +- -- cgit v1.2.3