summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-10 07:44:04 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-10 07:44:04 +0000
commit92f01ff98cac995f8d86a5d9e30e8fa424071168 (patch)
treef8b79ecee16b9460260e598a11c211f58f00f92d
parenteeef96c1d0d951922e21dbe2600b423945f04d74 (diff)
automatic import of python-pathspec
-rw-r--r--.gitignore1
-rw-r--r--python-pathspec.spec81
-rw-r--r--sources1
3 files changed, 83 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..830e95d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/pathspec-0.11.1.tar.gz
diff --git a/python-pathspec.spec b/python-pathspec.spec
new file mode 100644
index 0000000..fce1046
--- /dev/null
+++ b/python-pathspec.spec
@@ -0,0 +1,81 @@
+%global _empty_manifest_terminate_build 0
+Name: python-pathspec
+Version: 0.11.1
+Release: 1
+Summary: Utility library for gitignore style pattern matching of file paths.
+License: Mozilla Public License 2.0 (MPL 2.0)
+URL: https://pypi.org/project/pathspec/
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/95/60/d93628975242cc515ab2b8f5b2fc831d8be2eff32f5a1be4776d49305d13/pathspec-0.11.1.tar.gz
+BuildArch: noarch
+
+
+%description
+*pathspec* is a utility library for pattern matching of file paths. So
+far this only includes Git's wildmatch pattern matching which itself is
+derived from Rsync's wildmatch. Git uses wildmatch for its `gitignore`_
+files.
+
+%package -n python3-pathspec
+Summary: Utility library for gitignore style pattern matching of file paths.
+Provides: python-pathspec
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-pathspec
+*pathspec* is a utility library for pattern matching of file paths. So
+far this only includes Git's wildmatch pattern matching which itself is
+derived from Rsync's wildmatch. Git uses wildmatch for its `gitignore`_
+files.
+
+%package help
+Summary: Development documents and examples for pathspec
+Provides: python3-pathspec-doc
+%description help
+*pathspec* is a utility library for pattern matching of file paths. So
+far this only includes Git's wildmatch pattern matching which itself is
+derived from Rsync's wildmatch. Git uses wildmatch for its `gitignore`_
+files.
+
+%prep
+%autosetup -n pathspec-0.11.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-pathspec -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 0.11.1-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..243515f
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+22d173ba2a5912738b2b70e93a0d4b5f pathspec-0.11.1.tar.gz