diff options
Diffstat (limited to 'python-pykrete.spec')
| -rw-r--r-- | python-pykrete.spec | 138 |
1 files changed, 138 insertions, 0 deletions
diff --git a/python-pykrete.spec b/python-pykrete.spec new file mode 100644 index 0000000..5f91829 --- /dev/null +++ b/python-pykrete.spec @@ -0,0 +1,138 @@ +%global _empty_manifest_terminate_build 0 +Name: python-pykrete +Version: 1.4.7 +Release: 1 +Summary: Build script foundation +License: MIT +URL: http://ait-tool-center.iil.intel.com/ +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/a1/14/f1ad27cd153006b913b461e5009a7f86b70fa7aa8d347e4df3e7f1fb3d12/pykrete-1.4.7.tar.gz +BuildArch: noarch + + +%description +# python-utils +Common python utilities, currently for Build scripts + +## pykrete +Python package for import in Build scripts: +pykrete +|-- args - argument types verifiers +|-- builder - build management +|-- calls - shell calls +|-- ci - manage Continuous Integration +|-- credentials - manage access credentials +|-- distrib - distutils commands +| . |-- pylint - pylint commands +|-- io - I/O management +| . |-- file - file I/O +|-- logging - logging helpers +|-- packages - package management +|-- patterns - Design patterns bases +| . |-- visitor - Visitor pattern bases +|-- repo - repository management +|-- source - source code management +|-- tools - tool wrappers +|-- versioning - version management + +%package -n python3-pykrete +Summary: Build script foundation +Provides: python-pykrete +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-pykrete +# python-utils +Common python utilities, currently for Build scripts + +## pykrete +Python package for import in Build scripts: +pykrete +|-- args - argument types verifiers +|-- builder - build management +|-- calls - shell calls +|-- ci - manage Continuous Integration +|-- credentials - manage access credentials +|-- distrib - distutils commands +| . |-- pylint - pylint commands +|-- io - I/O management +| . |-- file - file I/O +|-- logging - logging helpers +|-- packages - package management +|-- patterns - Design patterns bases +| . |-- visitor - Visitor pattern bases +|-- repo - repository management +|-- source - source code management +|-- tools - tool wrappers +|-- versioning - version management + +%package help +Summary: Development documents and examples for pykrete +Provides: python3-pykrete-doc +%description help +# python-utils +Common python utilities, currently for Build scripts + +## pykrete +Python package for import in Build scripts: +pykrete +|-- args - argument types verifiers +|-- builder - build management +|-- calls - shell calls +|-- ci - manage Continuous Integration +|-- credentials - manage access credentials +|-- distrib - distutils commands +| . |-- pylint - pylint commands +|-- io - I/O management +| . |-- file - file I/O +|-- logging - logging helpers +|-- packages - package management +|-- patterns - Design patterns bases +| . |-- visitor - Visitor pattern bases +|-- repo - repository management +|-- source - source code management +|-- tools - tool wrappers +|-- versioning - version management + +%prep +%autosetup -n pykrete-1.4.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-pykrete -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon May 15 2023 Python_Bot <Python_Bot@openeuler.org> - 1.4.7-1 +- Package Spec generated |
