Blame SPECS/yara.spec

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