Ai
6 Star 0 Fork 10

src-openEuler/oeDevPlugin
关闭

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
oeDevPlugin.spec 2.83 KB
一键复制 编辑 原始数据 按行查看 历史
吴冬儿 提交于 2025-06-10 17:30 +08:00 . 文档规范
Name: oeDevPlugin
Version: 1.0.2
Release: 4
Summary: oeDevPlugin is designed for all developers, based on the widely-used IDE VSCode.
License: MulanPSL-2.0
URL: https://gitee.com/openeuler/oeDevPlugin
Source0: %{name}-%{version}.tar.gz
Source1: %{name}-node_modules_extension-Linux-x86_64.tar.gz
Source2: %{name}-node_modules_webview-Linux-x86_64.tar.gz
Source3: %{name}-node_modules_extension-Linux-aarch64.tar.gz
Source4: %{name}-node_modules_webview-Linux-aarch64.tar.gz
Source5: %{name}-node_modules_extension-Linux-riscv64.tar.gz
Source6: %{name}-node_modules_webview-Linux-riscv64.tar.gz
Patch1000: 1000-fix-build-on-riscv64.patch
BuildRequires: nodejs
Requires: vscodium
Requires: oegitext
%description
oeDevPlugin is designed for all developers, based on the widely-used IDE VSCode. It enables developers to quickly participate in openEuler community development by using the VSCode plugin to easily pull code repositories, compile with the AI4C compiler, and invoke EulerMaker with one click. It helps developers seamlessly leverage the openEuler community infrastructure.
%global debug_package %{nil}
%prep
%setup -c -q
%ifarch x86_64
tar -xzf %{SOURCE1} -C .
tar -xzf %{SOURCE2} -C webview-ui
%endif
%ifarch aarch64
tar -xzf %{SOURCE3} -C .
tar -xzf %{SOURCE4} -C webview-ui
%endif
%ifarch riscv64
tar -xzf %{SOURCE5} -C .
%patch 1000 -p1
tar -xzf %{SOURCE6} -C webview-ui
%endif
if [ ! -f LICENSE ]; then
echo "MulanPSL-2.0 license file is missing" >&2
exit 1
fi
%build
npm run build
npm run vscode:prepublish
%install
mkdir -p %{buildroot}%{_datadir}/vscodium/resources/app/extensions/%{name}-%{version}
mkdir -p %{buildroot}%{_datadir}/vscodium/resources/app/extensions/%{name}-%{version}/webview-ui
cp -r out resource package.json README.md README.en.md LICENSE %{buildroot}%{_datadir}/vscodium/resources/app/extensions/%{name}-%{version}
cp -r webview-ui/build %{buildroot}%{_datadir}/vscodium/resources/app/extensions/%{name}-%{version}/webview-ui/build
%files
%license LICENSE
%{_datadir}/vscodium/resources/app/extensions/%{name}-%{version}
%changelog
* Tue Jun 10 2025 wu-donger <wudonger@huawei.com> - 1.0.2-4
- Revise docs formatting guidelines
* Fri Jun 06 2025 misaka00251 <liuxin@iscas.ac.cn> - 1.0.2-3
- Add riscv64 build
* Fri May 30 2025 Li Zixin 2271170409@qq.com - 1.0.2-2
- update docs
* Fri May 16 2025 Liu Wang 1823363429@qq.com - 1.0.2-1
- update release to 1.0.2-1
* Wed Mar 19 2025 2271170409@qq.com - 1.0.1-1
- 修复部分bug
* Fri Mar 14 2025 2271170409@qq.com - 1.0.0-1
- 修复新建PR过程中的bug
* Wed Mar 12 2025 2271170409@qq.com - 0.0.3-1
- 适配vscodium相关
* Wed Feb 26 2025 2271170409@qq.com - 0.0.2-1
- 增加PR相关功能
* Wed Dec 25 2024 gjn_2012@foxmail.com - 0.0.1-1
- Initial RPM release.
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/oeDevPlugin.git
git@gitee.com:src-openeuler/oeDevPlugin.git
src-openeuler
oeDevPlugin
oeDevPlugin
master

搜索帮助