summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-31 07:47:17 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-31 07:47:17 +0000
commitb0e22e16c0f30b92c6c1f839755dd61230d10c3c (patch)
treecbde13f36e9519198e014eea415afb5365f31401
parentc6197e6028f8074b2ce138400fd6229b8732d45e (diff)
automatic import of python-file
-rw-r--r--.gitignore1
-rw-r--r--python-file.spec72
-rw-r--r--sources1
3 files changed, 74 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..a111e79 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/file-0.3.0.tar.gz
diff --git a/python-file.spec b/python-file.spec
new file mode 100644
index 0000000..b6be1a8
--- /dev/null
+++ b/python-file.spec
@@ -0,0 +1,72 @@
+%global _empty_manifest_terminate_build 0
+Name: python-file
+Version: 0.3.0
+Release: 1
+Summary: CFFI bindings for libmagic.
+License: MIT license
+URL: https://github.com/ionelmc/python-file
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/0a/49/317ac8ed10afb25c4c24972ea4de4c5507d6b0ab13bca4941c9a0bdc64ea/file-0.3.0.tar.gz
+BuildArch: noarch
+
+
+%description
+
+
+%package -n python3-file
+Summary: CFFI bindings for libmagic.
+Provides: python-file
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-file
+
+
+%package help
+Summary: Development documents and examples for file
+Provides: python3-file-doc
+%description help
+
+
+%prep
+%autosetup -n file-0.3.0
+
+%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-file -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Wed May 31 2023 Python_Bot <Python_Bot@openeuler.org> - 0.3.0-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..e5be296
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+0014b0761f33390788a810ae4ea06ca1 file-0.3.0.tar.gz