From c1e73ccf37f24f50700d4a1cca890a355dc9b78b Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Wed, 17 May 2023 04:24:29 +0000 Subject: automatic import of python-protofuzz --- .gitignore | 1 + python-protofuzz.spec | 85 +++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 87 insertions(+) create mode 100644 python-protofuzz.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..cfd8805 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/protofuzz-0.2.tar.gz diff --git a/python-protofuzz.spec b/python-protofuzz.spec new file mode 100644 index 0000000..7d1eed1 --- /dev/null +++ b/python-protofuzz.spec @@ -0,0 +1,85 @@ +%global _empty_manifest_terminate_build 0 +Name: python-protofuzz +Version: 0.2 +Release: 1 +Summary: Google protobuf message generator +License: MIT +URL: https://github.com/trailofbits/protofuzz +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/52/55/a32658d0b1bd92f0c72c2612ce09268d767e57d974fe264a046ed7cac717/protofuzz-0.2.tar.gz +BuildArch: noarch + +Requires: python3-protobuf + +%description +"ProtoFuzz is a generic fuzzer for Google’s Protocol Buffers format. +Instead of defining a new fuzzer generator for custom binary formats, protofuzz automatically creates a fuzzer based on +the same format definition that programs use. ProtoFuzz is implemented as a stand-alone Python3 program. + + + +%package -n python3-protofuzz +Summary: Google protobuf message generator +Provides: python-protofuzz +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-protofuzz +"ProtoFuzz is a generic fuzzer for Google’s Protocol Buffers format. +Instead of defining a new fuzzer generator for custom binary formats, protofuzz automatically creates a fuzzer based on +the same format definition that programs use. ProtoFuzz is implemented as a stand-alone Python3 program. + + + +%package help +Summary: Development documents and examples for protofuzz +Provides: python3-protofuzz-doc +%description help +"ProtoFuzz is a generic fuzzer for Google’s Protocol Buffers format. +Instead of defining a new fuzzer generator for custom binary formats, protofuzz automatically creates a fuzzer based on +the same format definition that programs use. ProtoFuzz is implemented as a stand-alone Python3 program. + + + +%prep +%autosetup -n protofuzz-0.2 + +%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-protofuzz -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed May 17 2023 Python_Bot - 0.2-1 +- Package Spec generated diff --git a/sources b/sources new file mode 100644 index 0000000..17c8211 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +287817d7e8c96431c11bda267d28c176 protofuzz-0.2.tar.gz -- cgit v1.2.3