summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-10 13:49:05 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-10 13:49:05 +0000
commit67287dbd14a90c0fc7c1c72f2d3a1f1488104510 (patch)
tree5c4651221265de50004b0f83a86c48aaea2050d7
parent5943593c900101c0711178ae5621fa90fd16ed88 (diff)
automatic import of python-frida
-rw-r--r--.gitignore1
-rw-r--r--python-frida.spec123
-rw-r--r--sources1
3 files changed, 125 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..23118d3 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/frida-16.0.11.tar.gz
diff --git a/python-frida.spec b/python-frida.spec
new file mode 100644
index 0000000..fb7d698
--- /dev/null
+++ b/python-frida.spec
@@ -0,0 +1,123 @@
+%global _empty_manifest_terminate_build 0
+Name: python-frida
+Version: 16.0.11
+Release: 1
+Summary: Dynamic instrumentation toolkit for developers, reverse-engineers, and security researchers
+License: wxWindows Library Licence, Version 3.1
+URL: https://frida.re
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/21/9c/85bd7e21fbc847e804dbe2d6afb27987282a8e2ac4a0fe3a025ee172a02f/frida-16.0.11.tar.gz
+
+Requires: python3-typing-extensions
+
+%description
+# frida-python
+
+Python bindings for [Frida](https://frida.re).
+
+# Some tips during development
+
+To build and test your own wheel, do something along the following lines:
+
+```
+set FRIDA_VERSION=16.0.1-dev.7 # from C:\src\frida\build\tmp-windows\frida-version.h
+set FRIDA_EXTENSION=C:\src\frida\build\frida-windows\x64-Release\lib\python3.10\site-packages\_frida.pyd
+cd C:\src\frida\frida-python\
+pip wheel .
+pip uninstall frida
+pip install frida-16.0.1.dev7-cp34-abi3-win_amd64.whl
+```
+
+
+%package -n python3-frida
+Summary: Dynamic instrumentation toolkit for developers, reverse-engineers, and security researchers
+Provides: python-frida
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+BuildRequires: python3-cffi
+BuildRequires: gcc
+BuildRequires: gdb
+%description -n python3-frida
+# frida-python
+
+Python bindings for [Frida](https://frida.re).
+
+# Some tips during development
+
+To build and test your own wheel, do something along the following lines:
+
+```
+set FRIDA_VERSION=16.0.1-dev.7 # from C:\src\frida\build\tmp-windows\frida-version.h
+set FRIDA_EXTENSION=C:\src\frida\build\frida-windows\x64-Release\lib\python3.10\site-packages\_frida.pyd
+cd C:\src\frida\frida-python\
+pip wheel .
+pip uninstall frida
+pip install frida-16.0.1.dev7-cp34-abi3-win_amd64.whl
+```
+
+
+%package help
+Summary: Development documents and examples for frida
+Provides: python3-frida-doc
+%description help
+# frida-python
+
+Python bindings for [Frida](https://frida.re).
+
+# Some tips during development
+
+To build and test your own wheel, do something along the following lines:
+
+```
+set FRIDA_VERSION=16.0.1-dev.7 # from C:\src\frida\build\tmp-windows\frida-version.h
+set FRIDA_EXTENSION=C:\src\frida\build\frida-windows\x64-Release\lib\python3.10\site-packages\_frida.pyd
+cd C:\src\frida\frida-python\
+pip wheel .
+pip uninstall frida
+pip install frida-16.0.1.dev7-cp34-abi3-win_amd64.whl
+```
+
+
+%prep
+%autosetup -n frida-16.0.11
+
+%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-frida -f filelist.lst
+%dir %{python3_sitearch}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 16.0.11-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..39530b7
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+e2a3ee05da97c70f0bf97c26803efdbe frida-16.0.11.tar.gz