diff options
Diffstat (limited to 'python-capstone-windows.spec')
-rw-r--r-- | python-capstone-windows.spec | 141 |
1 files changed, 141 insertions, 0 deletions
diff --git a/python-capstone-windows.spec b/python-capstone-windows.spec new file mode 100644 index 0000000..40e8d9d --- /dev/null +++ b/python-capstone-windows.spec @@ -0,0 +1,141 @@ +%global _empty_manifest_terminate_build 0 +Name: python-capstone-windows +Version: 3.0.4 +Release: 1 +Summary: Capstone disassembly engine +License: UNKNOWN +URL: http://www.capstone-engine.org +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/2c/95/cdf70f9d592e9a0ce130097d60d708bb368e5c9bc1c7d935e6b7feffe6e0/capstone-windows-3.0.4.tar.gz +BuildArch: noarch + + +%description +Capstone is a disassembly framework with the target of becoming the ultimate +disasm engine for binary analysis and reversing in the security community. +Created by Nguyen Anh Quynh, then developed and maintained by a small community, +Capstone offers some unparalleled features: +- Support multiple hardware architectures: ARM, ARM64 (ARMv8), Mips, PPC, Sparc, + SystemZ, XCore and X86 (including X86_64). +- Having clean/simple/lightweight/intuitive architecture-neutral API. +- Provide details on disassembled instruction (called “decomposer” by others). +- Provide semantics of the disassembled instruction, such as list of implicit + registers read & written. +- Implemented in pure C language, with lightweight wrappers for C++, C#, Go, + Java, NodeJS, Ocaml, Python, Ruby & Vala ready (available in main code, + or provided externally by the community). +- Native support for all popular platforms: Windows, Mac OSX, iOS, Android, + Linux, *BSD, Solaris, etc. +- Thread-safe by design. +- Special support for embedding into firmware or OS kernel. +- High performance & suitable for malware analysis (capable of handling various + X86 malware tricks). +- Distributed under the open source BSD license. +Further information is available at http://www.capstone-engine.org +[License] +This project is released under the BSD license. If you redistribute the binary +or source code of Capstone, please attach file LICENSE.TXT with your products. + +%package -n python3-capstone-windows +Summary: Capstone disassembly engine +Provides: python-capstone-windows +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-capstone-windows +Capstone is a disassembly framework with the target of becoming the ultimate +disasm engine for binary analysis and reversing in the security community. +Created by Nguyen Anh Quynh, then developed and maintained by a small community, +Capstone offers some unparalleled features: +- Support multiple hardware architectures: ARM, ARM64 (ARMv8), Mips, PPC, Sparc, + SystemZ, XCore and X86 (including X86_64). +- Having clean/simple/lightweight/intuitive architecture-neutral API. +- Provide details on disassembled instruction (called “decomposer” by others). +- Provide semantics of the disassembled instruction, such as list of implicit + registers read & written. +- Implemented in pure C language, with lightweight wrappers for C++, C#, Go, + Java, NodeJS, Ocaml, Python, Ruby & Vala ready (available in main code, + or provided externally by the community). +- Native support for all popular platforms: Windows, Mac OSX, iOS, Android, + Linux, *BSD, Solaris, etc. +- Thread-safe by design. +- Special support for embedding into firmware or OS kernel. +- High performance & suitable for malware analysis (capable of handling various + X86 malware tricks). +- Distributed under the open source BSD license. +Further information is available at http://www.capstone-engine.org +[License] +This project is released under the BSD license. If you redistribute the binary +or source code of Capstone, please attach file LICENSE.TXT with your products. + +%package help +Summary: Development documents and examples for capstone-windows +Provides: python3-capstone-windows-doc +%description help +Capstone is a disassembly framework with the target of becoming the ultimate +disasm engine for binary analysis and reversing in the security community. +Created by Nguyen Anh Quynh, then developed and maintained by a small community, +Capstone offers some unparalleled features: +- Support multiple hardware architectures: ARM, ARM64 (ARMv8), Mips, PPC, Sparc, + SystemZ, XCore and X86 (including X86_64). +- Having clean/simple/lightweight/intuitive architecture-neutral API. +- Provide details on disassembled instruction (called “decomposer” by others). +- Provide semantics of the disassembled instruction, such as list of implicit + registers read & written. +- Implemented in pure C language, with lightweight wrappers for C++, C#, Go, + Java, NodeJS, Ocaml, Python, Ruby & Vala ready (available in main code, + or provided externally by the community). +- Native support for all popular platforms: Windows, Mac OSX, iOS, Android, + Linux, *BSD, Solaris, etc. +- Thread-safe by design. +- Special support for embedding into firmware or OS kernel. +- High performance & suitable for malware analysis (capable of handling various + X86 malware tricks). +- Distributed under the open source BSD license. +Further information is available at http://www.capstone-engine.org +[License] +This project is released under the BSD license. If you redistribute the binary +or source code of Capstone, please attach file LICENSE.TXT with your products. + +%prep +%autosetup -n capstone-windows-3.0.4 + +%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-capstone-windows -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed May 17 2023 Python_Bot <Python_Bot@openeuler.org> - 3.0.4-1 +- Package Spec generated |