%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 [![Build Status](https://travis-ci.com/ludeeus/customjson.svg?branch=master)](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 *** [![BuyMeCoffee](https://camo.githubusercontent.com/cd005dca0ef55d7725912ec03a936d3a7c8de5b5/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6275792532306d6525323061253230636f666665652d646f6e6174652d79656c6c6f772e737667)](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 [![Build Status](https://travis-ci.com/ludeeus/customjson.svg?branch=master)](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 *** [![BuyMeCoffee](https://camo.githubusercontent.com/cd005dca0ef55d7725912ec03a936d3a7c8de5b5/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6275792532306d6525323061253230636f666665652d646f6e6174652d79656c6c6f772e737667)](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 [![Build Status](https://travis-ci.com/ludeeus/customjson.svg?branch=master)](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 *** [![BuyMeCoffee](https://camo.githubusercontent.com/cd005dca0ef55d7725912ec03a936d3a7c8de5b5/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6275792532306d6525323061253230636f666665652d646f6e6174652d79656c6c6f772e737667)](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 - 2.13.1-1 - Package Spec generated