summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-11 22:52:11 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-11 22:52:11 +0000
commitdefe6d278f29e9d5f64429a7c913840fc4693919 (patch)
tree51a7806de9b6679261d8a0951c7cfa2540743e67
parent418241ed808e881544bf9390c2f136b489ec6b00 (diff)
automatic import of python-pathmatch
-rw-r--r--.gitignore1
-rw-r--r--python-pathmatch.spec78
-rw-r--r--sources1
3 files changed, 80 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..cb8ecdb 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/pathmatch-0.2.2.tar.gz
diff --git a/python-pathmatch.spec b/python-pathmatch.spec
new file mode 100644
index 0000000..b692f94
--- /dev/null
+++ b/python-pathmatch.spec
@@ -0,0 +1,78 @@
+%global _empty_manifest_terminate_build 0
+Name: python-pathmatch
+Version: 0.2.2
+Release: 1
+Summary: Path matching utilities
+License: MIT License
+URL: https://github.com/demurgos/py-pathmatch
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/ed/98/7ef76707728a9f82c30917e807e0e6d5925c6f1b90913c8bef36f30795c0/pathmatch-0.2.2.tar.gz
+BuildArch: noarch
+
+
+%description
+Python implementation of ``git``'s ``wildmatch`` and `POSIX.1-2008 <http://pubs.opengroup.org/onlinepubs/9699919799/>`_ ``fnmatch``.
+The aim of this package is to provide a file matching module complying with the POSIX standard and
+allow compatibility with ``git``.
+
+%package -n python3-pathmatch
+Summary: Path matching utilities
+Provides: python-pathmatch
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-pathmatch
+Python implementation of ``git``'s ``wildmatch`` and `POSIX.1-2008 <http://pubs.opengroup.org/onlinepubs/9699919799/>`_ ``fnmatch``.
+The aim of this package is to provide a file matching module complying with the POSIX standard and
+allow compatibility with ``git``.
+
+%package help
+Summary: Development documents and examples for pathmatch
+Provides: python3-pathmatch-doc
+%description help
+Python implementation of ``git``'s ``wildmatch`` and `POSIX.1-2008 <http://pubs.opengroup.org/onlinepubs/9699919799/>`_ ``fnmatch``.
+The aim of this package is to provide a file matching module complying with the POSIX standard and
+allow compatibility with ``git``.
+
+%prep
+%autosetup -n pathmatch-0.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-pathmatch -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 0.2.2-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..1a5015e
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+03535c183805d466433660a675070cb8 pathmatch-0.2.2.tar.gz