4
0
forked from pool/yara
Files
yara/yara.spec
Greg Freemyer a1ac4a9396 - update to 4.5.2:
* Increase the limit for the maximum number of rows in dotnet module (608fb3d).
  * Limit resource names to 1000 character at most (3f5b4c7).
  * Recover from syntax error at the end of an included file (4fc1ff8).
  * BUGFIX: Crash while parsing PE Rich headers with certain files (cbc982d).
  * BUGFIX: Segfault with regular expressions that matched the zero-length string (8616165).
  * BUGFIX: Mitigate stack overflow when scanning very deep directory trees (2a9f61d).
  * BUGFIX: Fix regression introduced in 6209630 (44fd094).

OBS-URL: https://build.opensuse.org/package/show/security:forensics/yara?expand=0&rev=51
2025-04-23 19:09:48 +00:00

130 lines
4.1 KiB
RPMSpec

#
# spec file for package yara
#
# Copyright (c) 2024 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/
#
%global soname 10
Name: yara
Version: 4.5.2
Release: 0
Summary: A malware identification and classification tool
License: BSD-3-Clause
Group: System/Filesystems
URL: https://virustotal.github.io/yara/
Source: https://github.com/VirusTotal/yara/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source99: baselibs.conf
BuildRequires: file-devel
BuildRequires: flex
BuildRequires: libtool
BuildRequires: pkgconfig
BuildRequires: pkgconfig(jansson)
%{?suse_build_hwcaps_libs}
%description
YARA is a tool aimed at helping malware researchers to identify and classify
malware samples. With YARA you can create descriptions of malware families
based on textual or binary patterns contained on samples of those families.
Each description consists of a set of strings and a Boolean expression which
determines its logic.
%package -n libyara%{soname}
Summary: Library to support the yara malware identification tool
Group: System/Libraries
%description -n libyara%{soname}
YARA is a tool aimed at helping malware researchers to identify and classify
malware samples. With YARA you can create descriptions of malware families
based on textual or binary patterns contained on samples of those families.
Each description consists of a set of strings and a Boolean expression which
determines its logic.
%package -n libyara-devel
Summary: Development files to support the yara malware identification tool
Group: Development/Libraries/C and C++
Requires: libyara%{soname} = %{version}-%{release}
%description -n libyara-devel
YARA is a tool aimed at helping malware researchers to identify and classify
malware samples. With YARA you can create descriptions of malware families
based on textual or binary patterns contained on samples of those families.
Each description consists of a set of strings and a Boolean expression which
determines its logic.
%package doc
Summary: Documentation files to support the YARA malware identification tool
Group: Development/Libraries/C and C++
Requires: libyara%{soname} = %{version}-%{release}
BuildArch: noarch
%description doc
Documentation and guideslines to support YARA.
YARA is a tool aimed at helping malware researchers to identify and classify
malware samples. With YARA you can create descriptions of malware families
based on textual or binary patterns contained on samples of those families.
Each description consists of a set of strings and a Boolean expression which
determines its logic.
%prep
%autosetup -p1
%build
autoreconf -fvi
%configure \
--disable-silent-rules \
--enable-magic \
--enable-cuckoo
%make_build
%install
%make_install
# Remove static library
# --disable-static can not be used, static library needed for tests
rm -vf %{buildroot}%{_libdir}/libyara.a
find %{buildroot} -type f -name "*.la" -delete -print
%check
/usr/bin/make check
%post -n libyara%{soname} -p /sbin/ldconfig
%postun -n libyara%{soname} -p /sbin/ldconfig
%files
%license COPYING
%doc README.md CONTRIBUTORS AUTHORS
%{_bindir}/yara
%{_bindir}/yarac
%{_mandir}/man1/yara.1%{?ext_man}
%{_mandir}/man1/yarac.1%{?ext_man}
%files -n libyara%{soname}
%license COPYING
%doc README.md CONTRIBUTORS AUTHORS
%{_libdir}/libyara.so.%{soname}*
%files -n libyara-devel
%license COPYING
%doc README.md CONTRIBUTORS AUTHORS
%{_includedir}/yara.h
%{_includedir}/yara
%{_libdir}/libyara.so
%{_libdir}/pkgconfig/yara.pc
%files doc
%doc docs
%changelog