[packages/yara] - pl, enabled more modules (cuckoo, dex, macho, magic); release 2
qboosh
qboosh at pld-linux.org
Sun Jun 18 19:41:23 CEST 2023
commit fc2c76d55099e27e98a956d0b8aafcd6024ba90a
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Jun 18 19:22:13 2023 +0200
- pl, enabled more modules (cuckoo, dex, macho, magic); release 2
yara.spec | 35 ++++++++++++++++++++++++++---------
1 file changed, 26 insertions(+), 9 deletions(-)
---
diff --git a/yara.spec b/yara.spec
index 2dbd702..81449fb 100644
--- a/yara.spec
+++ b/yara.spec
@@ -1,26 +1,28 @@
# TODO
# - http://yara.readthedocs.org/en/latest/gettingstarted.html#compiling-and-installing-yara
-# --enable-cuckoo --enable-magic
# Conditional build:
-%bcond_without static_libs # don't build static libraries
-%bcond_without crypto # build without tests
+%bcond_without static_libs # static library
+%bcond_without crypto # OpenSSL crypto support (in PE module)
Summary: The pattern matching swiss knife for malware researchers (and everyone else)
+Summary(pl.UTF-8): Narzędzie do dopasowywania wzorców dla wyszukujących złośliwe oprogramowanie (i nie tylko)
Name: yara
Version: 4.3.2
-Release: 1
+Release: 2
License: Apache v2.0
Group: Libraries
Source0: https://github.com/VirusTotal/yara/archive/v%{version}/%{name}-%{version}.tar.gz
# Source0-md5: cace2a274542e9c611c90b92b406a188
Patch0: cflags.patch
URL: https://virustotal.github.io/yara/
-BuildRequires: autoconf
-BuildRequires: automake
+BuildRequires: autoconf >= 2.50
+BuildRequires: automake >= 1:1.11
BuildRequires: bison
BuildRequires: flex
-BuildRequires: libtool
+BuildRequires: jansson-devel
+BuildRequires: libmagic-devel
+BuildRequires: libtool >= 2:2
%{?with_crypto:BuildRequires: openssl-devel}
BuildRequires: pkgconfig
BuildRequires: rpmbuild(macros) >= 1.714
@@ -34,12 +36,22 @@ describe) based on textual or binary patterns. Each description, a.k.a
rule, consists of a set of strings and a boolean expression which
determine its logic.
+%description -l pl.UTF-8
+YARA to narzędzie, którego celem jest (głównie, ale nie tylko) pomoc
+wyszukującym złośliwe oprogramowanie w identyfikacji i klasyfikacji
+próbek takiego kodu. Przy użyciu YARA można tworzyć opisy rodzin
+złośliwego oprogramowania (lub czegokolwiek innego) w oparciu o wzorce
+tekstowe lub binarne. Każdy opis (reguła) składa się ze zbioru
+łańcuchów i wyrażeń logicznych określających logikę.
+
%package devel
Summary: Header files for yara library
Summary(pl.UTF-8): Pliki nagłówkowe biblioteki yara
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
-Requires: pcre-devel
+Requires: jansson-devel
+Requires: libmagic-devel
+%{?with_crypto:Requires: openssl-devel}
%description devel
Header files for yara library.
@@ -64,18 +76,23 @@ Statyczna biblioteka yara.
%patch0 -p1
%build
-%{__aclocal} -I m4
%{__libtoolize}
+%{__aclocal} -I m4
%{__autoconf}
%{__automake}
%configure \
--disable-silent-rules \
%{__with_without crypto} \
+ --enable-cuckoo \
+ --enable-dex \
+ --enable-macho \
+ --enable-magic \
%{!?with_static_libs:--disable-static}
%{__make}
%install
rm -rf $RPM_BUILD_ROOT
+
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/yara.git/commitdiff/fc2c76d55099e27e98a956d0b8aafcd6024ba90a
More information about the pld-cvs-commit
mailing list