summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-29 10:04:40 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-29 10:04:40 +0000
commit4f9707b0bb2116ba5b210b64702e914970d8e596 (patch)
tree6dbaf44cb79ffd601a355f96430edf4e5464fdc0
parent48389160cd9351d7db80582c1e289354742f53ca (diff)
automatic import of python-clangtooling
-rw-r--r--.gitignore1
-rw-r--r--python-clangtooling.spec72
-rw-r--r--sources1
3 files changed, 74 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..eb74feb 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/clangTooling-0.0.7.tar.gz
diff --git a/python-clangtooling.spec b/python-clangtooling.spec
new file mode 100644
index 0000000..628239d
--- /dev/null
+++ b/python-clangtooling.spec
@@ -0,0 +1,72 @@
+%global _empty_manifest_terminate_build 0
+Name: python-clangTooling
+Version: 0.0.7
+Release: 1
+Summary: clangTooling static libraries
+License: MIT
+URL: https://github.com/mckib2/clangTooling
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/45/7f/a235b8c0d08c51176700e868136072ae8a58db7d125add598b8a1ca53bbd/clangTooling-0.0.7.tar.gz
+BuildArch: noarch
+
+
+%description
+Package clangTooling static libraries to bootstrap clang usage in Python C/C++ extensions.
+
+%package -n python3-clangTooling
+Summary: clangTooling static libraries
+Provides: python-clangTooling
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-clangTooling
+Package clangTooling static libraries to bootstrap clang usage in Python C/C++ extensions.
+
+%package help
+Summary: Development documents and examples for clangTooling
+Provides: python3-clangTooling-doc
+%description help
+Package clangTooling static libraries to bootstrap clang usage in Python C/C++ extensions.
+
+%prep
+%autosetup -n clangTooling-0.0.7
+
+%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-clangTooling -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Mon May 29 2023 Python_Bot <Python_Bot@openeuler.org> - 0.0.7-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..8119910
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+59650d5385616e7b1887cf0ad6f71dac clangTooling-0.0.7.tar.gz