diff --git a/README.en.md b/README.en.md deleted file mode 100644 index 0747824f97fe3e17203b932661e1a8f91b792537..0000000000000000000000000000000000000000 --- a/README.en.md +++ /dev/null @@ -1,36 +0,0 @@ -# linglong - -#### 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 - -#### Contribution - -1. Fork the repository -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 77362f337f17e0651801cb1eff77f5da7e001f07..798235337ea2ae94b7478ea49a05b07287ca13ee 100644 --- a/README.md +++ b/README.md @@ -1,39 +1,37 @@ -# linglong +# Linglong -#### 介绍 -{**以下是 Gitee 平台说明,您可以替换此简介** -Gitee 是 OSCHINA 推出的基于 Git 的代码托管平台(同时支持 SVN)。专为开发者提供稳定、高效、安全的云端软件开发协作平台 -无论是个人、团队、或是企业,都能够用 Gitee 实现代码托管、项目管理、协作开发。企业项目请看 [https://gitee.com/enterprises](https://gitee.com/enterprises)} +English / [中文](./README.zh_CN.md) -#### 软件架构 -软件架构说明 +Linglong is the container application toolkit of deepin. +Linglong is the abbreviation of Linglong Tower, +which not only means that the container can control the application, +but also shows the idea +that the application/runtime/system is layered like a tower. -#### 安装教程 +## Getting help -1. xxxx -2. xxxx -3. xxxx +Any usage issues can ask for help via -#### 使用说明 +- [Gitter](https://gitter.im/orgs/linuxdeepin/rooms) +- [IRC channel](https://webchat.freenode.net/?channels=deepin) +- [Forum](https://bbs.deepin.org) +- [Wiki](https://wiki.deepin.org/) -1. xxxx -2. xxxx -3. xxxx +## Getting involved -#### 参与贡献 +We encourage you to report issues and contribute changes -1. Fork 本仓库 -2. 新建 Feat_xxx 分支 -3. 提交代码 -4. 新建 Pull Request +[Contribution guide for developers][guide] +[guide]: https://github.com/linuxdeepin/developer-center/wiki/Contribution-Guidelines-for-Developers-en -#### 特技 +Check [BUILD.md](./BUILD.md) for instructions for building linglong from source. -1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md -2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com) -3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目 -4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目 -5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) -6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) +## License + +This project is licensed under [LGPL-3.0-or-later](LICENSE). + +## Credits and references + +- [OStree](https://github.com/ostreedev/ostree) diff --git a/README.zh_CN.md b/README.zh_CN.md new file mode 100644 index 0000000000000000000000000000000000000000..810ef7bd02e415391e7aadda35effd90606f7520 --- /dev/null +++ b/README.zh_CN.md @@ -0,0 +1,36 @@ +# 玲珑 + +[English](./README.md) / 中文 + +玲珑是深度发行版本的默认应用容器工具。 + +玲珑是玲珑塔的简称, +既表示容器能对应用有管控作用, +也表明了应用/运行时/系统像塔一样分层的思想。 + +## 获取帮助 + +有任何使用方面的问题都可以通过以下途径获取帮助。 + +- [Gitter](https://gitter.im/orgs/linuxdeepin/rooms) +- [IRC 频道](https://webchat.freenode.net/?channels=deepin) +- [论坛](https://bbs.deepin.org) +- [Wiki](https://wiki.deepin.org/) + +## 参与贡献 + +我们鼓励大家报告问题和贡献代码。 + +- [开发者代码贡献指南][指南] + +[指南]: https://github.com/linuxdeepin/developer-center/wiki/Contribution-Guidelines-for-Developers + +[BUILD.zh_CN.md](./BUILD.zh_CN.md) 中记录了从源码构建玲珑的方法. + +## 许可证 + +本项目以 [LGPL-3.0-or-later](LICENSE) 许可证发布。 + +## Credits and references + +- [OStree](https://github.com/ostreedev/ostree) diff --git a/linglong-1.5.6.4.tar.gz b/linglong-1.5.6.4.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..2e6d312159f4c22acfc6bd5308eb65c201281176 Binary files /dev/null and b/linglong-1.5.6.4.tar.gz differ diff --git a/linglong.spec b/linglong.spec new file mode 100644 index 0000000000000000000000000000000000000000..39a7ef8ff9ddb8fa260f8c98f4acbc666b896c93 --- /dev/null +++ b/linglong.spec @@ -0,0 +1,143 @@ +%define anolis_release 1 + +Name: linglong +Version: 1.5.6.4 +Release: %{anolis_release}%{?dist} +Summary: Linglong Package FrameWork +License: LGPLv3 +URL: https://github.com/kamiyadm/%{name} +Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz + +BuildRequires: cmake gcc-c++ +BuildRequires: qt5-qtbase-devel qt5-qtwebsockets-devel qt5-qtbase-private-devel +BuildRequires: glib2-devel nlohmann-json-devel ostree-devel yaml-cpp-devel +BuildRequires: systemd-devel gtest-devel libseccomp-devel elfutils-libelf-devel +BuildRequires: glibc-static libstdc++-static +Requires: linglong-bin = %{version}-%{release} + +%description +This package is a linglong package framework. + +%package -n linglong-bin +Summary: Linglong package manager +Requires: linglong-box = %{version}-%{release} +Requires: linglong-installer erofs-fuse +%description -n linglong-bin +Linglong package management command line tool. + +%package -n linglong-builder +Summary: Linglong build tools +Requires: linglong-box = %{version}-%{release} linglong-bin = %{version}-%{release} +Requires: erofs-utils erofs-fuse +%description -n linglong-builder +This package is a tool that makes it easy to build applications and dependencies. + +%package -n linglong-box +Summary: Linglong sandbox +%description -n linglong-box +Linglong sandbox with OCI standard. + +%package -n linglong-installer +Summary: Linglong web store installer +Requires: linglong-bin = %{version}-%{release} +%description -n linglong-installer +Linglong web store installer. + +%prep +%autosetup -p1 -n linglong-%{version} + +%build +export PATH=%{_qt5_bindir}:$PATH +mkdir build && cd build +cmake -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \ + -DINCLUDE_INSTALL_DIR:PATH=%{_includedir} \ + -DLIB_INSTALL_DIR:PATH=%{_libdir} \ + -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \ + -DSHARE_INSTALL_PREFIX:PATH=%{_datadir} \ + -DBUILD_SHARED_LIBS=OFF \ + -DCPM_LOCAL_PACKAGES_ONLY=ON \ + -DENABLE_LINGLONG_INSTALLER=ON .. +%make_build -j4 + +%install +cd build +%make_install INSTALL_ROOT=%{buildroot} + +%post -n linglong-bin +%systemd_post org.deepin.linglong.PackageManager.service +/usr/bin/busctl call org.freedesktop.DBus /org/freedesktop/DBus org.freedesktop.DBus ReloadConfig + +%preun -n linglong-bin +%systemd_preun org.deepin.linglong.PackageManager.service + +%postun -n linglong-bin +%systemd_postun_with_restart org.deepin.linglong.PackageManager.service + +%files +%doc README.md +%license LICENSE +%exclude %{_libdir}/cmake/linglong-*/*.cmake +%exclude %{_datadir}/polkit-1/actions/org.deepin.linglong.PackageManager.policy +%{_prefix}/src/* + + +%files -n linglong-bin +%doc README.md +%license LICENSE +%{_sysconfdir}/profile.d/* +%{_sysconfdir}/X11/Xsession.d/* +%{_bindir}/ll-cli +%{_bindir}/llpkg +%{_bindir}/linglong-repair-tool +%{_prefix}/lib/%{name}/container/* +%{_prefix}/lib/sysusers.d/*.conf +%{_prefix}/lib/tmpfiles.d/*.conf +%{_prefix}/lib/systemd/system/*.service +%{_prefix}/lib/systemd/system-preset/*.preset +%{_prefix}/lib/systemd/user/* +%{_prefix}/lib/systemd/system-environment-generators/* +%{_prefix}/lib/systemd/user-environment-generators/* +%{_libexecdir}/%{name}/ll-package-manager +%{_libexecdir}/%{name}/00-id-mapping-static +%{_libexecdir}/%{name}/05-initialize-static +%{_libexecdir}/%{name}/20-devices-static +%{_libexecdir}/%{name}/25-host-env-static +%{_libexecdir}/%{name}/30-user-home-static +%{_libexecdir}/%{name}/40-host-ipc-static +%{_libexecdir}/%{name}/90-legacy-static +%{_libexecdir}/%{name}/upgrade-all +%{_libexecdir}/%{name}/ll-session-helper +%{_datadir}/bash-completion/completions/ll-cli +%{_datadir}/dbus-1/system-services/*.service +%{_datadir}/dbus-1/system.d/*.conf +%{_datadir}/%{name}/config.yaml +%{_datadir}/mime/packages/* +%{_datadir}/%{name}/api/api.json +%{_datadir}/applications/linglong-repair-tool.desktop + +%files -n linglong-builder +%license LICENSE +%{_bindir}/ll-builder +%{_libexecdir}/%{name}/fetch-dsc-source +%{_libexecdir}/%{name}/fetch-git-source +%{_libexecdir}/%{name}/fetch-file-source +%{_libexecdir}/%{name}/fetch-archive-source +%{_libexecdir}/%{name}/app-conf-generator +%{_libexecdir}/%{name}/builder/helper/*.sh +%{_datadir}/bash-completion/completions/ll-builder +%{_datadir}/%{name}/builder/templates/*.yaml + +%files -n linglong-box +%license LICENSE +%{_bindir}/ll-box + +%files -n linglong-installer +%license LICENSE +%{_bindir}/ll-installer +%{_datadir}/applications/linglong-store-installer.desktop + +%changelog +* Thu Aug 22 2024 chenhuixing - 1.5.6.4-1 +- Release 1.5.6.4 +* Thu Apr 25 2024 chenhuixing - 1.4.3-1 +- Init project