Blame SPECS/yara.spec

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