diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-04-10 08:45:34 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-04-10 08:45:34 +0000 |
| commit | 4cc8ee3f4ed0ff46df93abc02528a64f770f564c (patch) | |
| tree | c226453fd767935b9b4a9458810a058e1ceb965e | |
| parent | 7746aa90b7e561d71b4d7e7a1f1e8593b14e9a14 (diff) | |
automatic import of python-pre-commit
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-pre-commit.spec | 101 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 103 insertions, 0 deletions
@@ -0,0 +1 @@ +/pre_commit-3.2.2.tar.gz diff --git a/python-pre-commit.spec b/python-pre-commit.spec new file mode 100644 index 0000000..63db313 --- /dev/null +++ b/python-pre-commit.spec @@ -0,0 +1,101 @@ +%global _empty_manifest_terminate_build 0 +Name: python-pre-commit +Version: 3.2.2 +Release: 1 +Summary: A framework for managing and maintaining multi-language pre-commit hooks. +License: MIT +URL: https://github.com/pre-commit/pre-commit +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/89/40/0f5b8d53178545f736172c8c2fc4f5eb68fffa828dba5ddad3cc43af878e/pre_commit-3.2.2.tar.gz +BuildArch: noarch + +Requires: python3-cfgv +Requires: python3-identify +Requires: python3-nodeenv +Requires: python3-pyyaml +Requires: python3-virtualenv + +%description +[](https://github.com/pre-commit/pre-commit/actions/workflows/main.yml) +[](https://results.pre-commit.ci/latest/github/pre-commit/pre-commit/main) + +## pre-commit + +A framework for managing and maintaining multi-language pre-commit hooks. + +For more information see: https://pre-commit.com/ + + +%package -n python3-pre-commit +Summary: A framework for managing and maintaining multi-language pre-commit hooks. +Provides: python-pre-commit +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-pre-commit +[](https://github.com/pre-commit/pre-commit/actions/workflows/main.yml) +[](https://results.pre-commit.ci/latest/github/pre-commit/pre-commit/main) + +## pre-commit + +A framework for managing and maintaining multi-language pre-commit hooks. + +For more information see: https://pre-commit.com/ + + +%package help +Summary: Development documents and examples for pre-commit +Provides: python3-pre-commit-doc +%description help +[](https://github.com/pre-commit/pre-commit/actions/workflows/main.yml) +[](https://results.pre-commit.ci/latest/github/pre-commit/pre-commit/main) + +## pre-commit + +A framework for managing and maintaining multi-language pre-commit hooks. + +For more information see: https://pre-commit.com/ + + +%prep +%autosetup -n pre-commit-3.2.2 + +%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-pre-commit -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 3.2.2-1 +- Package Spec generated @@ -0,0 +1 @@ +b9a52dacd352a7dd22ee587d4e4ea342 pre_commit-3.2.2.tar.gz |
