diff --git a/README.en.md b/README.en.md index 2e5d530081e9b91f4c1d4498f0f360c37331c012..f9ba53fa0b8bd6ddac8cfef832832642a1101192 100644 --- a/README.en.md +++ b/README.en.md @@ -1,22 +1,7 @@ # ovirt-engine-ui-extensions #### Description -{**When you're done, you can delete the content in this README and update the file with details for others getting started with your repository**} - -#### Software Architecture -Software architecture description - -#### Installation - -1. xxxx -2. xxxx -3. xxxx - -#### Instructions - -1. xxxx -2. xxxx -3. xxxx +UI plugin that provides various extensions to oVirt administration UI. #### Contribution @@ -24,13 +9,3 @@ Software architecture description 2. Create Feat_xxx branch 3. Commit your code 4. Create Pull Request - - -#### Gitee Feature - -1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md -2. Gitee blog [blog.gitee.com](https://blog.gitee.com) -3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore) -4. The most valuable open source project [GVP](https://gitee.com/gvp) -5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help) -6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) diff --git a/README.md b/README.md index 28c2d0dd064a087989a8f37f53c7e36e1ca1fbdf..a6f4ceb1b9aee400fb335eb473c11bb653a15e65 100644 --- a/README.md +++ b/README.md @@ -1,25 +1,7 @@ # ovirt-engine-ui-extensions #### 介绍 -{**以下是码云平台说明,您可以替换此简介** -码云是 OSCHINA 推出的基于 Git 的代码托管平台(同时支持 SVN)。专为开发者提供稳定、高效、安全的云端软件开发协作平台 -无论是个人、团队、或是企业,都能够用码云实现代码托管、项目管理、协作开发。企业项目请看 [https://gitee.com/enterprises](https://gitee.com/enterprises)} - -#### 软件架构 -软件架构说明 - - -#### 安装教程 - -1. xxxx -2. xxxx -3. xxxx - -#### 使用说明 - -1. xxxx -2. xxxx -3. xxxx +UI插件,提供oVirt管理UI的各种扩展 #### 参与贡献 @@ -27,13 +9,3 @@ 2. 新建 Feat_xxx 分支 3. 提交代码 4. 新建 Pull Request - - -#### 码云特技 - -1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md -2. 码云官方博客 [blog.gitee.com](https://blog.gitee.com) -3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解码云上的优秀开源项目 -4. [GVP](https://gitee.com/gvp) 全称是码云最有价值开源项目,是码云综合评定出的优秀开源项目 -5. 码云官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) -6. 码云封面人物是一档用来展示码云会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) diff --git a/ovirt-engine-ui-extensions-1.0.10.tar.gz b/ovirt-engine-ui-extensions-1.0.10.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..ae66a0ba0bd32a1ca8c72f64b2b615f28a170991 Binary files /dev/null and b/ovirt-engine-ui-extensions-1.0.10.tar.gz differ diff --git a/ovirt-engine-ui-extensions.spec b/ovirt-engine-ui-extensions.spec new file mode 100644 index 0000000000000000000000000000000000000000..7104d88d559c14b47eac7b8a4eea9460e61943dd --- /dev/null +++ b/ovirt-engine-ui-extensions.spec @@ -0,0 +1,70 @@ +Name: ovirt-engine-ui-extensions +Summary: oVirt UI Extensions +Version: 1.0.10 +Release: 1%{?dist} +License: ASL 2.0 +URL: http://www.ovirt.org/ +Source: ovirt-engine-ui-extensions-1.0.10.tar.gz + +BuildArch: noarch + +BuildRequires: ovirt-engine-nodejs +BuildRequires: ovirt-engine-nodejs-modules +BuildRequires: ovirt-engine-yarn + +Requires: ovirt-engine-webadmin-portal >= 4.3 +Requires: ovirt-ansible-cluster-upgrade >= 1.1.12 + +Obsoletes: ovirt-engine-dashboard < 1.3 +Provides: ovirt-engine-dashboard = 1.3 + +%description +UI plugin that provides various extensions to oVirt administration UI. + +Extensions include: + - dashboard + - VM migrate dialog + - Cluster upgrade wizard + +%prep + +# Unpack the source: +%setup -q -n %{name}-%{version} + +# Set up Node.js environment with dependencies linked to ./node_modules: +source %{_datadir}/ovirt-engine-nodejs-modules/setup-env.sh + +# Build the application: +yarn build + +%install + +# Install the files: +mkdir -p %{buildroot}%{_datadir}/%{name} +cp -r dist/* %{buildroot}%{_datadir}/%{name} +cp -r ansible-playbooks %{buildroot}%{_datadir}/%{name} + +# Ensure that Engine ui-plugins directory exists: +mkdir -p %{buildroot}%{_datadir}/ovirt-engine/ui-plugins + +# Link plugin resources to Engine ui-plugins directory: +ln -s "%{_datadir}/%{name}/ui-extensions.json" "%{buildroot}%{_datadir}/ovirt-engine/ui-plugins" +ln -s "%{_datadir}/%{name}/ui-extensions-resources" "%{buildroot}%{_datadir}/ovirt-engine/ui-plugins" + +# Ensure the Engine playbooks directory exists: +mkdir -p %{buildroot}%{_datadir}/ovirt-engine/playbooks + +# Link plugin playbooks to Engine playbooks directory: +ln -s "%{_datadir}/%{name}/ansible-playbooks/ovirt-cluster-upgrade.yml" "%{buildroot}%{_datadir}/ovirt-engine/playbooks" + +%files +%{_datadir}/%{name} +%{_datadir}/ovirt-engine/ui-plugins/ui-extensions.json +%{_datadir}/ovirt-engine/ui-plugins/ui-extensions-resources +%{_datadir}/ovirt-engine/playbooks/ovirt-cluster-upgrade.yml +%doc README.adoc +%license LICENSE + +%changelog +* Thu Mar 05 2020 huihui.fu - 1.0.10-1 +- Package initialization