summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-17 04:24:29 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-17 04:24:29 +0000
commitc1e73ccf37f24f50700d4a1cca890a355dc9b78b (patch)
tree96af7a85fefb04ed52ded156fe4fb50c0beabec1
parent5c6994d059a8e5c79c3d0794921e894c1fd1d38e (diff)
automatic import of python-protofuzz
-rw-r--r--.gitignore1
-rw-r--r--python-protofuzz.spec85
-rw-r--r--sources1
3 files changed, 87 insertions, 0 deletions
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 <Python_Bot@openeuler.org> - 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