diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-04-11 06:32:21 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-04-11 06:32:21 +0000 |
| commit | 25d164781c4567d440122f32609e7d6ccdd8ed30 (patch) | |
| tree | bcb196d8ce1c8be32a0cc8817af37fc9e507213f /python-kwconfig.spec | |
| parent | d625518ee5c50d250e1329064cd78b3974fc8937 (diff) | |
automatic import of python-kwconfig
Diffstat (limited to 'python-kwconfig.spec')
| -rw-r--r-- | python-kwconfig.spec | 81 |
1 files changed, 81 insertions, 0 deletions
diff --git a/python-kwconfig.spec b/python-kwconfig.spec new file mode 100644 index 0000000..22134c1 --- /dev/null +++ b/python-kwconfig.spec @@ -0,0 +1,81 @@ +%global _empty_manifest_terminate_build 0 +Name: python-kwconfig +Version: 1.1.7 +Release: 1 +Summary: A Python module for managing config files in keyword style json format. +License: MIT +URL: https://github.com/rrwen/kwconfig +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/47/49/87ca96c4c299d24700daf45f4bb8d900b05e15e8c48179b13008fc29c509/kwconfig-1.1.7.tar.gz +BuildArch: noarch + + +%description +1. Install `Python <https://www.python.org/downloads/>`_ +2. Install `kwconfig <https://pypi.python.org/pypi/kwconfig>`_ via ``pip`` + pip install kwconfig +For the latest developer version, see `Developer Install`_. + +%package -n python3-kwconfig +Summary: A Python module for managing config files in keyword style json format. +Provides: python-kwconfig +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-kwconfig +1. Install `Python <https://www.python.org/downloads/>`_ +2. Install `kwconfig <https://pypi.python.org/pypi/kwconfig>`_ via ``pip`` + pip install kwconfig +For the latest developer version, see `Developer Install`_. + +%package help +Summary: Development documents and examples for kwconfig +Provides: python3-kwconfig-doc +%description help +1. Install `Python <https://www.python.org/downloads/>`_ +2. Install `kwconfig <https://pypi.python.org/pypi/kwconfig>`_ via ``pip`` + pip install kwconfig +For the latest developer version, see `Developer Install`_. + +%prep +%autosetup -n kwconfig-1.1.7 + +%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-kwconfig -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 1.1.7-1 +- Package Spec generated |
