diff --git a/A-Ops-v1.0.0-1.tar.gz b/A-Ops-v1.0.0-1.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..a9915af6339a323381a87bf7ab162695d2444ec0 Binary files /dev/null and b/A-Ops-v1.0.0-1.tar.gz differ diff --git a/A-Ops-v1.0.0.tar.gz b/A-Ops-v1.0.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..507d31d1c8b1f96f2562612fbd88231546dba3a7 Binary files /dev/null and b/A-Ops-v1.0.0.tar.gz differ diff --git a/A-Ops.spec b/A-Ops.spec new file mode 100644 index 0000000000000000000000000000000000000000..0c0fde8c5fa6f35692409858a5e46082191d1244 --- /dev/null +++ b/A-Ops.spec @@ -0,0 +1,145 @@ +Name: A-Ops +Version: 1.0.0 +Release: 1 +Summary: The intelligent ops toolkit for openEuler +License: MulanPSL2 +URL: https://gitee.com/openeuler/A-Ops +Source0: a-ops-%{version}.tar.gz + + +# build for aops basic module +BuildRequires: python3-setuptools +BuildRequires: python3-devel + + +%description +The intelligent ops toolkit for openEuler + + +%package -n aops-utils +Summary: utils for A-Ops +Requires: python3-concurrent-log-handler python3-xmltodict python3-pyyaml python3-marshmallow >= 3.13.0 +Requires: python3-requests python3-xlrd + +%description -n aops-utils +utils for A-Ops + + +%package -n aops-cli +Summary: cli of A-ops +Requires: aops-utils = %{version}-%{release} + +%description -n aops-cli +commandline tool of aops, offer commands for account management, host management, +host group management, task and template management of ansible. + + +%package -n aops-manager +Summary: manager of A-ops +Requires: aops-utils = %{version}-%{release} ansible >= 2.9.0 +Requires: python3-pyyaml python3-marshmallow >= 3.13.0 python3-flask python3-flask-restful +Requires: python3-requests sshpass + +%description -n aops-manager +manager of A-ops, support software deployment and installation, account management, host management, +host group management, task and template management of ansible. + + +%package -n aops-database +Summary: database center of A-ops +Requires: aops-utils = %{version}-%{release} python3-pyyaml +Requires: python3-elasticsearch >= 7 python3-requests python3-werkzeug python3-urllib3 +Requires: python3-flask python3-flask-restful python3-PyMySQL python3-sqlalchemy + +%description -n aops-database +database center of A-ops, offer database proxy of mysql, elasticsearch and prometheus time series database. + + +%define debug_package %{nil} + +%prep +%autosetup -n %{name}-v%{version}-%{release} + + +%build +# build for aops-utils +pushd aops-utils +%py3_build +popd + +#build for aops-cli +pushd aops-cli +%py3_build +popd + +#build for aops-manager +pushd aops-manager +%py3_build +popd + +#build for aops-database +pushd aops-database +%py3_build +popd + + +%install +# install for utils +pushd aops-utils +%py3_install +popd + +# install for cli +pushd aops-cli +%py3_install +popd + +# install for manager +pushd aops-manager +%py3_install +mkdir -p %{buildroot}/%{python3_sitelib}/aops_manager/deploy_manager/ansible_handler +cp -r aops_manager/deploy_manager/ansible_handler/* %{buildroot}/%{python3_sitelib}/aops_manager/deploy_manager/ansible_handler +mkdir -p %{buildroot}/%{python3_sitelib}/aops_manager/deploy_manager/tasks +cp -r aops_manager/deploy_manager/tasks/* %{buildroot}/%{python3_sitelib}/aops_manager/deploy_manager/tasks +popd + +# install for database +pushd aops-database +%py3_install +popd + + +%files -n aops-utils +%doc README.* +%{python3_sitelib}/aops_utils*.egg-info +%{python3_sitelib}/aops_utils/* +%attr(0755,root,root) %{_bindir}/aops-utils + + +%files -n aops-cli +%attr(0755,root,root) %{_bindir}/aops +%attr(0644,root,root) %{_sysconfdir}/aops/system.ini +%{python3_sitelib}/aops_cli*.egg-info +%{python3_sitelib}/aops_cli/* + + +%files -n aops-manager +%attr(0644,root,root) %{_sysconfdir}/aops/manager.ini +%attr(0755,root,root) %{_bindir}/aops-manager +%attr(0755,root,root) %{_unitdir}/aops-manager.service +%{python3_sitelib}/aops_manager*.egg-info +%{python3_sitelib}/aops_manager/* + + +%files -n aops-database +%attr(0644,root,root) %{_sysconfdir}/aops/database.ini +%attr(0755,root,root) %{_unitdir}/aops-database.service +%attr(0755,root,root) %{_bindir}/aops-database +%attr(0755,root,root) %{_bindir}/aops-basedatabase +%{python3_sitelib}/aops_database*.egg-info +%{python3_sitelib}/aops_database/* + + +%changelog +* Fri 27 Aug 2021 zhu-yuncheng - 1.0.0-1 +- Update spec diff --git a/a-ops-1.0.0.tar.gz b/a-ops-1.0.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..507d31d1c8b1f96f2562612fbd88231546dba3a7 Binary files /dev/null and b/a-ops-1.0.0.tar.gz differ