summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-11 00:04:41 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-11 00:04:41 +0000
commitcdffc1975c4b46e413dadba438dcb9bf57d7ff57 (patch)
tree50954877fe4d7bc5bbd79a16efdc2f4e8df66942
parent73d1b8d477d58c7ed25788286010d2a168d1bc5a (diff)
automatic import of python-gitignore-parser
-rw-r--r--.gitignore1
-rw-r--r--python-gitignore-parser.spec78
-rw-r--r--sources1
3 files changed, 80 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..2b95b7e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/gitignore_parser-0.1.3.tar.gz
diff --git a/python-gitignore-parser.spec b/python-gitignore-parser.spec
new file mode 100644
index 0000000..d33d57b
--- /dev/null
+++ b/python-gitignore-parser.spec
@@ -0,0 +1,78 @@
+%global _empty_manifest_terminate_build 0
+Name: python-gitignore-parser
+Version: 0.1.3
+Release: 1
+Summary: A spec-compliant gitignore parser for Python 3.5+
+License: MIT
+URL: https://github.com/mherrmann/gitignore_parser
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/42/64/dbfca6866fd4be113935316768ca8472bb510f2c156b5b5c002225a97550/gitignore_parser-0.1.3.tar.gz
+BuildArch: noarch
+
+
+%description
+A spec-compliant gitignore parser for Python 3.5+
+
+https://github.com/mherrmann/gitignore_parser
+
+%package -n python3-gitignore-parser
+Summary: A spec-compliant gitignore parser for Python 3.5+
+Provides: python-gitignore-parser
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-gitignore-parser
+A spec-compliant gitignore parser for Python 3.5+
+
+https://github.com/mherrmann/gitignore_parser
+
+%package help
+Summary: Development documents and examples for gitignore-parser
+Provides: python3-gitignore-parser-doc
+%description help
+A spec-compliant gitignore parser for Python 3.5+
+
+https://github.com/mherrmann/gitignore_parser
+
+%prep
+%autosetup -n gitignore-parser-0.1.3
+
+%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-gitignore-parser -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 0.1.3-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..9026de5
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+55accd5bb6dcd253d39c62f8c14d6857 gitignore_parser-0.1.3.tar.gz