|
|
faddd5 |
Name: yara
|
|
|
faddd5 |
Version: 4.2.3
|
|
|
faddd5 |
Release: 1%{?dist}
|
|
|
faddd5 |
Summary: Pattern matching Swiss knife for malware researchers
|
|
|
faddd5 |
|
|
|
faddd5 |
License: BSD-3-Clause
|
|
|
faddd5 |
VCS: http://github.com/VirusTotal/yara/
|
|
|
faddd5 |
# http://github.com/VirusTotal/yara/releases
|
|
|
faddd5 |
URL: http://VirusTotal.github.io/yara/
|
|
|
faddd5 |
|
|
|
faddd5 |
|
|
|
faddd5 |
%global gituser VirusTotal
|
|
|
faddd5 |
%global gitname yara
|
|
|
faddd5 |
|
|
|
faddd5 |
# Build from git release version
|
|
|
faddd5 |
Source0: https://github.com/%{gituser}/%{gitname}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
|
|
faddd5 |
|
|
|
faddd5 |
|
|
|
faddd5 |
BuildRequires: git
|
|
|
faddd5 |
BuildRequires: gcc
|
|
|
faddd5 |
BuildRequires: autoconf
|
|
|
faddd5 |
BuildRequires: automake
|
|
|
faddd5 |
BuildRequires: m4
|
|
|
faddd5 |
BuildRequires: binutils
|
|
|
faddd5 |
BuildRequires: coreutils
|
|
|
faddd5 |
BuildRequires: sharutils
|
|
|
faddd5 |
BuildRequires: file
|
|
|
faddd5 |
BuildRequires: gawk
|
|
|
faddd5 |
BuildRequires: gzip
|
|
|
faddd5 |
BuildRequires: xz
|
|
|
faddd5 |
BuildRequires: pcre
|
|
|
faddd5 |
BuildRequires: bison
|
|
|
faddd5 |
BuildRequires: flex
|
|
|
faddd5 |
BuildRequires: libtool
|
|
|
faddd5 |
BuildRequires: file-devel
|
|
|
faddd5 |
BuildRequires: jansson-devel >= 2.5
|
|
|
faddd5 |
BuildRequires: openssl-devel
|
|
|
faddd5 |
BuildRequires: protobuf-c-devel
|
|
|
faddd5 |
BuildRequires: protobuf-compiler
|
|
|
faddd5 |
|
|
|
faddd5 |
# html doc generation
|
|
|
faddd5 |
BuildRequires: /usr/bin/sphinx-build
|
|
|
faddd5 |
|
|
|
faddd5 |
%description
|
|
|
faddd5 |
YARA is a tool aimed at (but not limited to) helping malware researchers to
|
|
|
faddd5 |
identify and classify malware samples. With YARA you can create descriptions
|
|
|
faddd5 |
of malware families (or whatever you want to describe) based on textual or
|
|
|
faddd5 |
binary patterns. Each description, a.k.a rule, consists of a set of strings
|
|
|
faddd5 |
and a Boolean expression which determine its logic.
|
|
|
faddd5 |
|
|
|
faddd5 |
|
|
|
faddd5 |
%package doc
|
|
|
faddd5 |
Summary: Documentation for %{name}
|
|
|
faddd5 |
BuildArch: noarch
|
|
|
faddd5 |
|
|
|
faddd5 |
%description doc
|
|
|
faddd5 |
This package contains documentation for %{name}.
|
|
|
faddd5 |
|
|
|
faddd5 |
|
|
|
faddd5 |
%package devel
|
|
|
faddd5 |
Summary: Development files for %{name}
|
|
|
faddd5 |
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
faddd5 |
|
|
|
faddd5 |
|
|
|
faddd5 |
%description devel
|
|
|
faddd5 |
The %{name}-devel package contains libraries and header files for
|
|
|
faddd5 |
developing applications that use %{name}.
|
|
|
faddd5 |
|
|
|
faddd5 |
|
|
|
faddd5 |
%prep
|
|
|
faddd5 |
%autosetup -p 1 -S git
|
|
|
faddd5 |
%setup -q
|
|
|
faddd5 |
autoreconf --force --install
|
|
|
faddd5 |
|
|
|
faddd5 |
|
|
|
faddd5 |
%build
|
|
|
faddd5 |
|
|
|
faddd5 |
# Add missing definition on RHEL7
|
|
|
faddd5 |
%if 0%{?rhel} && 0%{?rhel} == 7
|
|
|
faddd5 |
export CFLAGS="$CFLAGS -D PROTOBUF_C_FIELD_FLAG_ONEOF=4"
|
|
|
faddd5 |
%endif
|
|
|
faddd5 |
|
|
|
faddd5 |
# macro %%configure already does use CFLAGS="\{optflags}" and yara build
|
|
|
faddd5 |
# scripts configure/make already honors that CFLAGS
|
|
|
faddd5 |
%configure --enable-magic --enable-cuckoo --enable-debug --enable-dotnet \
|
|
|
faddd5 |
--enable-macho --enable-dex --enable-pb-tests \
|
|
|
faddd5 |
--with-crypto \
|
|
|
faddd5 |
--htmldir=%{_datadir}/doc/%{name}/html
|
|
|
faddd5 |
%make_build
|
|
|
faddd5 |
|
|
|
faddd5 |
# build the HTML documentation
|
|
|
faddd5 |
pushd docs
|
|
|
faddd5 |
make html
|
|
|
faddd5 |
popd
|
|
|
faddd5 |
|
|
|
faddd5 |
|
|
|
faddd5 |
%install
|
|
|
faddd5 |
%make_install
|
|
|
faddd5 |
|
|
|
faddd5 |
# Remove static libraries
|
|
|
faddd5 |
rm %{buildroot}%{_libdir}/lib%{name}.la
|
|
|
faddd5 |
rm %{buildroot}%{_libdir}/lib%{name}.a
|
|
|
faddd5 |
|
|
|
faddd5 |
# Remove the rebuild-needed tag so it is not installed in doc pkg
|
|
|
faddd5 |
rm -f %{buildroot}%{_datadir}/doc/%{name}/html/.buildinfo
|
|
|
faddd5 |
|
|
|
faddd5 |
|
|
|
faddd5 |
%files
|
|
|
faddd5 |
%license COPYING
|
|
|
faddd5 |
%doc AUTHORS CONTRIBUTORS README.md
|
|
|
faddd5 |
%{_bindir}/%{name}
|
|
|
faddd5 |
%{_bindir}/%{name}c
|
|
|
faddd5 |
%{_libdir}/lib%{name}.so.*
|
|
|
faddd5 |
%{_mandir}/man1/%{name}.1*
|
|
|
faddd5 |
%{_mandir}/man1/%{name}c.1*
|
|
|
faddd5 |
|
|
|
faddd5 |
|
|
|
faddd5 |
%files devel
|
|
|
faddd5 |
%{_includedir}/%{name}.h
|
|
|
faddd5 |
%{_includedir}/%{name}/
|
|
|
faddd5 |
%{_libdir}/*.so
|
|
|
faddd5 |
%{_libdir}/pkgconfig/%{name}.pc
|
|
|
faddd5 |
|
|
|
faddd5 |
|
|
|
faddd5 |
%files doc
|
|
|
faddd5 |
%license COPYING
|
|
|
faddd5 |
%doc docs/_build/html
|
|
|
faddd5 |
|
|
|
faddd5 |
|
|
|
faddd5 |
%changelog
|
|
|
faddd5 |
* Tue Aug 16 2022 Mark Huth <mhuth@redhat.com> - 4.2.3-1
|
|
|
faddd5 |
- Bump to 4.2.3
|
|
|
faddd5 |
- Remove androguard module - github repo no longer exists
|
|
|
faddd5 |
|
|
|
faddd5 |
* Thu Jun 16 2022 Mark Huth <mhuth@redhat.com> - 4.2.1-4
|
|
|
faddd5 |
- Use licence identifier BSD-3-Clause
|
|
|
faddd5 |
|
|
|
faddd5 |
* Thu Jun 9 2022 Mark Huth <mhuth@redhat.com> - 4.2.1-2
|
|
|
faddd5 |
- Change spec file license to match COPYING file
|
|
|
faddd5 |
|
|
|
faddd5 |
* Mon May 9 2022 Mark Huth <mhuth@redhat.com> - 4.2.1-1
|
|
|
faddd5 |
- bump to 4.2.1
|
|
|
faddd5 |
|
|
|
faddd5 |
* Fri Mar 25 2022 Mark Huth <mhuth@redhat.com> - 4.2.0-1
|
|
|
faddd5 |
- bump to 4.2.0
|
|
|
faddd5 |
|
|
|
faddd5 |
* Wed Nov 10 2021 Michal Ambroz <rebus at, seznam.cz> - 4.1.3-1
|
|
|
faddd5 |
- bump to 4.1.3
|
|
|
faddd5 |
|
|
|
faddd5 |
* Sat Nov 06 2021 Adrian Reber <adrian@lisas.de> - 4.1.1-5
|
|
|
faddd5 |
- Rebuilt for protobuf 3.19.0
|
|
|
faddd5 |
|
|
|
faddd5 |
* Mon Oct 25 2021 Adrian Reber <adrian@lisas.de> - 4.1.1-4
|
|
|
faddd5 |
- Rebuilt for protobuf 3.18.1
|
|
|
faddd5 |
|
|
|
faddd5 |
* Tue Sep 14 2021 Sahana Prasad <sahana@redhat.com> - 4.1.1-3
|
|
|
faddd5 |
- Rebuilt with OpenSSL 3.0.0
|
|
|
faddd5 |
|
|
|
faddd5 |
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.1-2
|
|
|
faddd5 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
faddd5 |
|
|
|
faddd5 |
* Mon May 24 2021 Michal Ambroz <rebus at, seznam.cz> - 4.1.1-1
|
|
|
faddd5 |
- bump to 4.1.1
|
|
|
faddd5 |
|
|
|
faddd5 |
* Mon Apr 26 2021 Michal Ambroz <rebus at, seznam.cz> - 4.1.0-1
|
|
|
faddd5 |
- bump to 4.1.0
|
|
|
faddd5 |
|
|
|
faddd5 |
* Sun Apr 25 2021 Michal Ambroz <rebus at, seznam.cz> - 4.0.5-2
|
|
|
faddd5 |
- rebuild for epel
|
|
|
faddd5 |
|
|
|
faddd5 |
* Fri Feb 5 2021 Michal Ambroz <rebus at, seznam.cz> - 4.0.5-1
|
|
|
faddd5 |
- bump to yara bugfix 4.0.5 release
|
|
|
faddd5 |
|
|
|
faddd5 |
* Wed Feb 3 2021 Michal Ambroz <rebus at, seznam.cz> - 4.0.4-1
|
|
|
faddd5 |
- bump to yara bugfix 4.0.4 release
|
|
|
faddd5 |
|
|
|
faddd5 |
* Thu Jul 16 2020 Michal Ambroz <rebus at, seznam.cz> - 4.0.2-1
|
|
|
faddd5 |
- bump to yara bugfix 4.0.2 release
|
|
|
faddd5 |
- fix build on epel7
|
|
|
faddd5 |
|
|
|
faddd5 |
* Sun Jun 14 2020 Adrian Reber <adrian@lisas.de> - 4.0.1-2
|
|
|
faddd5 |
- Rebuilt for protobuf 3.12
|
|
|
faddd5 |
|
|
|
faddd5 |
* Tue Jun 2 2020 Michal Ambroz <rebus at, seznam.cz> - 4.0.1-1
|
|
|
faddd5 |
- bump to yara bugfix 4.0.1 release
|
|
|
faddd5 |
|
|
|
faddd5 |
* Tue Apr 28 2020 Michal Ambroz <rebus at, seznam.cz> - 4.0.0-1
|
|
|
faddd5 |
- bump to yara 4.0.0 release
|
|
|
faddd5 |
|
|
|
faddd5 |
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.11.0-2
|
|
|
faddd5 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
faddd5 |
|
|
|
faddd5 |
* Fri Oct 11 2019 Michal Ambroz <rebus at, seznam.cz> - 3.11.0-1
|
|
|
faddd5 |
- bump to 3.11.0 release (#1760678)
|
|
|
faddd5 |
- BUGFIX: Some regexp character classes not matching correctly when used with “nocase” modifier (upstream #1117)
|
|
|
faddd5 |
- BUGFIX: Reduce the number of ERROR_TOO_MANY_RE_FIBERS errors for certain hex pattern containing large jumps (upstream #1107)
|
|
|
faddd5 |
- BUGFIX: Buffer overrun in “dotnet” module (upstream #1108)
|
|
|
faddd5 |
- BUGFIX: Memory leak while attaching to a process fails (upstream #1070)
|
|
|
faddd5 |
|
|
|
faddd5 |
* Sat Sep 28 2019 Michal Ambroz <rebus at, seznam.cz> - 3.10.0-3
|
|
|
faddd5 |
- change the sphinx build dependency
|
|
|
faddd5 |
|
|
|
faddd5 |
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.10.0-2
|
|
|
faddd5 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
faddd5 |
|
|
|
faddd5 |
* Fri May 03 2019 Michal Ambroz <rebus at, seznam.cz> - 3.10.0-1
|
|
|
faddd5 |
- bump to 3.10.0 release (#1680204)
|
|
|
faddd5 |
- Harden virtual machine against malicious code.
|
|
|
faddd5 |
- BUGFIX: Regression bug in hex strings containing wildcards (upstream #1025).
|
|
|
faddd5 |
- BUGFIX: Buffer overrun in “elf” module.
|
|
|
faddd5 |
- BUGFIX: Buffer overrun in “dotnet” module.
|
|
|
faddd5 |
|
|
|
faddd5 |
* Sat Mar 16 2019 Michal Ambroz <rebus at, seznam.cz> - 3.9.0-1
|
|
|
faddd5 |
- bump to 3.9.0 release (#1680203)
|
|
|
faddd5 |
- switch from python-sphinx to python3-sphinx for generating the documentation for fc31+
|
|
|
faddd5 |
- should fix also #1660398 (CVE-2018-19974 CVE-2018-19975 CVE-2018-19976),
|
|
|
faddd5 |
but by design it might be always dangerous to run yara signatures compiled by 3rd party,
|
|
|
faddd5 |
so it is advised to re-compile yara rules instead
|
|
|
faddd5 |
- BUGFIX: Denial of service when using "dex" module. Found by the Cisco Talos team. (upstream #1023, CVE-2019-5020)
|
|
|
faddd5 |
- BUGFIX: Buffer overflow in "dotnet" module.
|
|
|
faddd5 |
- BUGFIX: Regexp regression when using nested quantifiers {x,y} for certain values of x and y. (#1018)
|
|
|
faddd5 |
|
|
|
faddd5 |
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.8.1-2
|
|
|
faddd5 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
faddd5 |
|
|
|
faddd5 |
* Mon Aug 27 2018 Michal Ambroz <rebus at, seznam.cz> - 3.8.1-1
|
|
|
faddd5 |
- bump to 3.8.1 release (#1613093)
|
|
|
faddd5 |
|
|
|
faddd5 |
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.7.1-3
|
|
|
faddd5 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
faddd5 |
|
|
|
faddd5 |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.7.1-2
|
|
|
faddd5 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
faddd5 |
|
|
|
faddd5 |
* Mon Feb 05 2018 Michal Ambroz <rebus at, seznam.cz> - 3.7.1-1
|
|
|
faddd5 |
- bump to 3.7.1 release (#1534993)
|
|
|
faddd5 |
|
|
|
faddd5 |
* Wed Nov 15 2017 Michal Ambroz <rebus at, seznam.cz> - 3.7.0-1
|
|
|
faddd5 |
- bump to 3.7.0 release (#1511921)
|
|
|
faddd5 |
|
|
|
faddd5 |
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.6.3-3
|
|
|
faddd5 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
faddd5 |
|
|
|
faddd5 |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.6.3-2
|
|
|
faddd5 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
faddd5 |
|
|
|
faddd5 |
* Sun Jul 16 2017 Michal Ambroz <rebus at, seznam.cz> - 3.6.3-1
|
|
|
faddd5 |
- bump to 3.6.3 release - bugfix CVE-2017-11328
|
|
|
faddd5 |
|
|
|
faddd5 |
* Mon Jul 03 2017 Michal Ambroz <rebus at, seznam.cz> - 3.6.2-1
|
|
|
faddd5 |
- bump to 3.6.2 release - bugfix CVE-2017-9304, CVE-2017-9465
|
|
|
faddd5 |
|
|
|
faddd5 |
* Wed May 24 2017 Michal Ambroz <rebus at, seznam.cz> - 3.6.0-1
|
|
|
faddd5 |
- bump to 3.6.0 release
|
|
|
faddd5 |
- update the androguard-yara with bugfixes
|
|
|
faddd5 |
|
|
|
faddd5 |
* Thu Apr 13 2017 Michal Ambroz <rebus at, seznam.cz> - 3.5.0-7
|
|
|
faddd5 |
- Adding patch from pull request 627 until 3.5.1 is released
|
|
|
faddd5 |
- https://patch-diff.githubusercontent.com/raw/VirusTotal/yara/pull/627.patch
|
|
|
faddd5 |
- Fixes CVE-2016-10210 CVE-2016-10211 CVE-2017-5923 CVE-2017-5924
|
|
|
faddd5 |
|
|
|
faddd5 |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.5.0-6
|
|
|
faddd5 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
faddd5 |
|
|
|
faddd5 |
* Tue Aug 09 2016 Michal Ambroz <rebus at, seznam.cz> - 3.5.0-5
|
|
|
faddd5 |
- import package to Fedora
|
|
|
faddd5 |
- remove unnecessary .buildinfo tag from doc package
|
|
|
faddd5 |
|
|
|
faddd5 |
* Fri Aug 05 2016 Michal Ambroz <rebus at, seznam.cz> - 3.5.0-4
|
|
|
faddd5 |
- package review - bugzilla #1362265
|
|
|
faddd5 |
- cosmetics of the changelog
|
|
|
faddd5 |
- using default spinx theme to remove the static fonts
|
|
|
faddd5 |
|
|
|
faddd5 |
* Fri Aug 05 2016 Michal Ambroz <rebus at, seznam.cz> - 3.5.0-3
|
|
|
faddd5 |
- package review - bugzilla #1362265
|
|
|
faddd5 |
- dropped Buildroot, pkgconfig, zlib-devel, defattr
|
|
|
faddd5 |
- added buildrequires gcc
|
|
|
faddd5 |
- change license back to ASL 2.0 only
|
|
|
faddd5 |
|
|
|
faddd5 |
* Thu Aug 04 2016 Michal Ambroz <rebus at, seznam.cz> - 3.5.0-2
|
|
|
faddd5 |
- package review - bugzilla #1362265
|
|
|
faddd5 |
- changed packaging of doc sub-package
|
|
|
faddd5 |
|
|
|
faddd5 |
* Thu Aug 04 2016 Michal Ambroz <rebus at, seznam.cz> - 3.5.0-1
|
|
|
faddd5 |
- bump to new 3.5.0
|
|
|
faddd5 |
|
|
|
faddd5 |
* Wed Aug 03 2016 Michal Ambroz <rebus at, seznam.cz> - 3.4.0-6
|
|
|
faddd5 |
- package review - bugzilla #1362265
|
|
|
faddd5 |
- dropped dependency of python-tools
|
|
|
faddd5 |
|
|
|
faddd5 |
* Mon Aug 01 2016 Michal Ambroz <rebus at, seznam.cz> - 3.4.0-4
|
|
|
faddd5 |
- compile with the androguard module
|
|
|
faddd5 |
|
|
|
faddd5 |
* Wed Jun 08 2016 Michal Ambroz <rebus at, seznam.cz> - 3.4.0-2
|
|
|
faddd5 |
- jansson dependency >= 2.5
|
|
|
faddd5 |
|
|
|
faddd5 |
* Wed Jun 08 2016 Michal Ambroz <rebus at, seznam.cz> - 3.4.0-1
|
|
|
faddd5 |
- python3 stuff
|
|
|
faddd5 |
|
|
|
faddd5 |
* Mon Jun 22 2015 Michal Ambroz <rebus at, seznam.cz> - 3.4.0-0.git20150618
|
|
|
faddd5 |
- initial build for Fedora Project
|