honggfuzz/honggfuzz.spec
Martin Pluskal 20cb796de7 Accepting request 999245 from home:cgiboudeaux:branches:devel:tools
- Update to 2.5
  * fixed build for Android NDK >= 23
  * fixed build for CygWin
  * improved hfuzz-cc, so it supports -x correctly
  * error returned if unknown cmd-line parameters are provided
  * support for thread CPU pinning
  * various fixes for *BSD
  * increased number of dictionary entries (to 8192)
- Add upstream changes to fix build with recent binutils:
  * 0001-Always-pass-4-arguments-to-init_disassemble_info-no-.patch
  * 0002-linux-bfd-use-DIAGNOSTIC_ERROR_SWITCH-define-to-figu.patch
  * 0003-linux-bfd-cover-include-diagnostics.h-with-__has_inc.patch

OBS-URL: https://build.opensuse.org/request/show/999245
OBS-URL: https://build.opensuse.org/package/show/devel:tools/honggfuzz?expand=0&rev=25
2022-08-29 06:57:05 +00:00

57 lines
1.9 KiB
RPMSpec

#
# spec file for package honggfuzz
#
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: honggfuzz
Version: 2.5
Release: 0
Summary: Security-oriented fuzzer with various analysis options
License: Apache-2.0
Group: Development/Tools/Other
URL: https://honggfuzz.com
Source: https://github.com/google/honggfuzz/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
# PATCH-FIX-UPSTREAM -- binutils compatibility changes
Patch0: 0001-Always-pass-4-arguments-to-init_disassemble_info-no-.patch
Patch1: 0002-linux-bfd-use-DIAGNOSTIC_ERROR_SWITCH-define-to-figu.patch
Patch2: 0003-linux-bfd-cover-include-diagnostics.h-with-__has_inc.patch
BuildRequires: binutils-devel
BuildRequires: libunwind-devel
BuildRequires: zlib-devel
%description
Security-oriented fuzzer with powerful analysis options. Supports
evolutionary, feedback-driven fuzzing based on code coverage
(software and hardware).
%prep
%autosetup -p1
%build
export CFLAGS="%{optflags}"
%make_build ARCH_LDFLAGS="-L/usr/local/include -L/usr/include -lpthread -lunwind-ptrace -lunwind-generic -lbfd -lopcodes -lrt -liberty -lz -ldl"
%install
install -Dpm 0755 %{name} \
%{buildroot}%{_bindir}/%{name}
%files
%license COPYING
%doc CHANGELOG CONTRIBUTING.md README.md
%{_bindir}/%{name}
%changelog