diff --git a/README.en.md b/README.en.md deleted file mode 100644 index 15a43088cb2dda2211184081f94443098dd318d1..0000000000000000000000000000000000000000 --- a/README.en.md +++ /dev/null @@ -1,36 +0,0 @@ -# jsonnet - -#### Description -A data templating language for app and tool developers based on JSON - -#### 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 deleted file mode 100644 index 046f78b3201b1c35383df95e5832ae382b76ec8b..0000000000000000000000000000000000000000 --- a/README.md +++ /dev/null @@ -1,37 +0,0 @@ -# jsonnet - -#### 介绍 -A data templating language for app and tool developers based on JSON - -#### 软件架构 -软件架构说明 - - -#### 安装教程 - -1. xxxx -2. xxxx -3. xxxx - -#### 使用说明 - -1. xxxx -2. xxxx -3. xxxx - -#### 参与贡献 - -1. Fork 本仓库 -2. 新建 Feat_xxx 分支 -3. 提交代码 -4. 新建 Pull Request - - -#### 特技 - -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/) diff --git a/jsonnet-0.20.0.tar.gz b/jsonnet-0.20.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..273ba750b381e3f4d70ffbfd93eeef32d82d7939 Binary files /dev/null and b/jsonnet-0.20.0.tar.gz differ diff --git a/jsonnet.spec b/jsonnet.spec new file mode 100644 index 0000000000000000000000000000000000000000..7ab81442b3c5fc30388da75e0cc707b3b4d3624b --- /dev/null +++ b/jsonnet.spec @@ -0,0 +1,73 @@ +%global _empty_manifest_terminate_build 0 +Name: jsonnet +Version: 0.20.0 +Release: 1 +Summary: Python bindings for Jsonnet - The data templating language +License: Apache License 2.0 +URL: https://jsonnet.org +Source0: https://files.pythonhosted.org/packages/a5/0e/76e5029265bc4bc4d99ad521fcb32a83070af29a0babc331ad181c299ee0/%{name}-%{version}.tar.gz +BuildArch: noarch + +%global _description %{expand: +A data templating language for app and tool developers based on JSON} +%description %{_description} + + +%package -n python3-jsonnet +Summary: Python bindings for Jsonnet - The data templating language +Provides: python-jsonnet +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-wheel +BuildRequires: python3-pip +BuildRequires: gcc-c++ +%description -n python3-jsonnet %{_description} + + +%package help +Summary: Development documents and examples for jsonnet +Provides: python3-jsonnet-doc +%description help %{_description} + + +%prep +%autosetup -n jsonnet-0.20.0 + +%build +%pyproject_build + +%install +%pyproject_install +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +touch filelist.lst +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "\"/%h/%f\"\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "\"/%h/%f\"\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "\"/%h/%f\"\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "\"/%h/%f.gz\"\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . + +%files -n python3-jsonnet -f filelist.lst +%{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon Mar 04 2024 Python_Bot - 0.20.0-1 +- Package Spec generated diff --git a/jsonnet.yaml b/jsonnet.yaml new file mode 100644 index 0000000000000000000000000000000000000000..027706195c1b41ee51fc1fa943c251a87c1852c2 --- /dev/null +++ b/jsonnet.yaml @@ -0,0 +1,4 @@ +version_control: pypi +src_repo: mtg +tag_prefix: ^v +separator: .