diff options
author | CoprDistGit <infra@openeuler.org> | 2023-06-20 03:44:08 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-06-20 03:44:08 +0000 |
commit | 59bfa60f072e131a23e91a21bc29be570ae5f23a (patch) | |
tree | 1d746154169aa849b9e1ca8547eca7a5a74bd6d8 | |
parent | 2acd1403888558af6eb26a6c169b94f6a1fceccb (diff) |
automatic import of python-customjsonopeneuler20.03
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-customjson.spec | 249 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 251 insertions, 0 deletions
@@ -0,0 +1 @@ +/customjson-2.13.1.tar.gz diff --git a/python-customjson.spec b/python-customjson.spec new file mode 100644 index 0000000..3eb5936 --- /dev/null +++ b/python-customjson.spec @@ -0,0 +1,249 @@ +%global _empty_manifest_terminate_build 0 +Name: python-customjson +Version: 2.13.1 +Release: 1 +Summary: please add a summary manually as the author left a blank one +License: MIT License +URL: https://github.com/ludeeus/customjson +Source0: https://mirrors.aliyun.com/pypi/web/packages/db/62/8a82ba222f71663be6a32f87c6c0160daeeb4886342449d64bbefcf26fea/customjson-2.13.1.tar.gz +BuildArch: noarch + + +%description +# customjson [](https://travis-ci.com/ludeeus/customjson) + +This tool generates the "master" files that are used for the [`custom_updater`][custom_updater] and the [`custom_component_store`][custom_component_store] + +For the [`custom_updater`][custom_updater] it generates and update these jsonfiles: + +- [`custom-cards/information`][custom-cards/information] +- [`custom-components/information`][custom-components/information] + +For the [`custom_component_store`][custom_component_store] it generates and updates [`ludeeus/data/custom-component-store/V1`][ludeeus/data/custom-component-store/V1] + +## Install + +**Require Python version 3.5.3+** + +```bash +python3 -m pip install -U customjson +``` + +### Example + +```bash +customjson --token aaabbbccc111222333 --mode component +``` + +#### CLI options + +param | alias | description +-- | -- | -- +`--token` | `-T` | An GitHub `access_token` with `repo` permissions. +`--push` | `-P` | Push a new `repos.json` file to the information repo. +`--mode` | `-M` | Must be `card` or `component`. +`--version` | `-V` | Print the installed version. + +## Add more resources + +### Components + +The easiest way to add additional resources is to reuse the json file used by ['custom_updater'][custom_updater] if yo have that. + +**Examples:** + +https://github.com/ludeeus/customjson/blob/f0fd9643a3a5af63c5dc02cd228dfad99796fe3e/customjson/components/custom_updater.py#L7-L16 + +But there are other ways if you look in the `/customjson/components/` dir you can see different implementations that give more granular control. + +### cards + +look in the `/customjson/cards/` dir to see different implementations + +*** + +[](https://www.buymeacoffee.com/ludeeus) + + +[custom_updater]: https://github.com/custom-components/custom_updater +[custom_component_store]: https://github.com/ludeeus/custom-component-store +[custom-cards/information]: https://github.com/custom-cards/information/blob/master/repos.json +[custom-components/information]: https://github.com/custom-components/information/blob/master/repos.json +[ludeeus/data/custom-component-store/V1]: https://github.com/ludeeus/data/blob/master/custom-component-store/V1/data.json + +%package -n python3-customjson +Summary: please add a summary manually as the author left a blank one +Provides: python-customjson +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-customjson +# customjson [](https://travis-ci.com/ludeeus/customjson) + +This tool generates the "master" files that are used for the [`custom_updater`][custom_updater] and the [`custom_component_store`][custom_component_store] + +For the [`custom_updater`][custom_updater] it generates and update these jsonfiles: + +- [`custom-cards/information`][custom-cards/information] +- [`custom-components/information`][custom-components/information] + +For the [`custom_component_store`][custom_component_store] it generates and updates [`ludeeus/data/custom-component-store/V1`][ludeeus/data/custom-component-store/V1] + +## Install + +**Require Python version 3.5.3+** + +```bash +python3 -m pip install -U customjson +``` + +### Example + +```bash +customjson --token aaabbbccc111222333 --mode component +``` + +#### CLI options + +param | alias | description +-- | -- | -- +`--token` | `-T` | An GitHub `access_token` with `repo` permissions. +`--push` | `-P` | Push a new `repos.json` file to the information repo. +`--mode` | `-M` | Must be `card` or `component`. +`--version` | `-V` | Print the installed version. + +## Add more resources + +### Components + +The easiest way to add additional resources is to reuse the json file used by ['custom_updater'][custom_updater] if yo have that. + +**Examples:** + +https://github.com/ludeeus/customjson/blob/f0fd9643a3a5af63c5dc02cd228dfad99796fe3e/customjson/components/custom_updater.py#L7-L16 + +But there are other ways if you look in the `/customjson/components/` dir you can see different implementations that give more granular control. + +### cards + +look in the `/customjson/cards/` dir to see different implementations + +*** + +[](https://www.buymeacoffee.com/ludeeus) + + +[custom_updater]: https://github.com/custom-components/custom_updater +[custom_component_store]: https://github.com/ludeeus/custom-component-store +[custom-cards/information]: https://github.com/custom-cards/information/blob/master/repos.json +[custom-components/information]: https://github.com/custom-components/information/blob/master/repos.json +[ludeeus/data/custom-component-store/V1]: https://github.com/ludeeus/data/blob/master/custom-component-store/V1/data.json + +%package help +Summary: Development documents and examples for customjson +Provides: python3-customjson-doc +%description help +# customjson [](https://travis-ci.com/ludeeus/customjson) + +This tool generates the "master" files that are used for the [`custom_updater`][custom_updater] and the [`custom_component_store`][custom_component_store] + +For the [`custom_updater`][custom_updater] it generates and update these jsonfiles: + +- [`custom-cards/information`][custom-cards/information] +- [`custom-components/information`][custom-components/information] + +For the [`custom_component_store`][custom_component_store] it generates and updates [`ludeeus/data/custom-component-store/V1`][ludeeus/data/custom-component-store/V1] + +## Install + +**Require Python version 3.5.3+** + +```bash +python3 -m pip install -U customjson +``` + +### Example + +```bash +customjson --token aaabbbccc111222333 --mode component +``` + +#### CLI options + +param | alias | description +-- | -- | -- +`--token` | `-T` | An GitHub `access_token` with `repo` permissions. +`--push` | `-P` | Push a new `repos.json` file to the information repo. +`--mode` | `-M` | Must be `card` or `component`. +`--version` | `-V` | Print the installed version. + +## Add more resources + +### Components + +The easiest way to add additional resources is to reuse the json file used by ['custom_updater'][custom_updater] if yo have that. + +**Examples:** + +https://github.com/ludeeus/customjson/blob/f0fd9643a3a5af63c5dc02cd228dfad99796fe3e/customjson/components/custom_updater.py#L7-L16 + +But there are other ways if you look in the `/customjson/components/` dir you can see different implementations that give more granular control. + +### cards + +look in the `/customjson/cards/` dir to see different implementations + +*** + +[](https://www.buymeacoffee.com/ludeeus) + + +[custom_updater]: https://github.com/custom-components/custom_updater +[custom_component_store]: https://github.com/ludeeus/custom-component-store +[custom-cards/information]: https://github.com/custom-cards/information/blob/master/repos.json +[custom-components/information]: https://github.com/custom-components/information/blob/master/repos.json +[ludeeus/data/custom-component-store/V1]: https://github.com/ludeeus/data/blob/master/custom-component-store/V1/data.json + +%prep +%autosetup -n customjson-2.13.1 + +%build +%py3_build + +%install +%py3_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} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "\"/%h/%f\"\n" >> filelist.lst +fi +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-customjson -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Jun 20 2023 Python_Bot <Python_Bot@openeuler.org> - 2.13.1-1 +- Package Spec generated @@ -0,0 +1 @@ +6a45da19e1f0c29c614efdc75ca53ec0 customjson-2.13.1.tar.gz |