3 %bcond_without static_libs # don't build static libraries
5 Summary: A malware identification and classification tool
11 Source0: http://yara-project.googlecode.com/files/%{name}-%{version}.tar.gz
12 # Source0-md5: ecc744a67482dc9d717936ccd69dc39f
13 URL: http://code.google.com/p/yara-project/
14 BuildRequires: pcre-devel
15 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 YARA is a tool aimed at helping malware researchers to identify and
19 classify malware samples. With YARA you can create descriptions of
20 malware families based on textual or binary patterns contained on
21 samples of those families. Each description consists of a set of
22 strings and a Boolean expression which determines its logic.
25 Summary: Header files for yara library
26 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki yara
27 Group: Development/Libraries
28 Requires: %{name} = %{version}-%{release}
32 Header files for yara library.
34 %description devel -l pl.UTF-8
35 Pliki nagłówkowe biblioteki yara.
38 Summary: Static yara library
39 Summary(pl.UTF-8): Statyczna biblioteka yara
40 Group: Development/Libraries
41 Requires: %{name}-devel = %{version}-%{release}
46 %description static -l pl.UTF-8
47 Statyczna biblioteka yara.
54 %{!?with_static_libs:--disable-static}
58 rm -rf $RPM_BUILD_ROOT
61 DESTDIR=$RPM_BUILD_ROOT
63 rm -f $RPM_BUILD_ROOT%{_libdir}/libyara.la
66 rm -rf $RPM_BUILD_ROOT
68 %post -p /sbin/ldconfig
69 %postun -p /sbin/ldconfig
72 %defattr(644,root,root,755)
73 %doc AUTHORS ChangeLog NEWS README
74 %attr(755,root,root) %{_bindir}/yara
75 %attr(755,root,root) %{_libdir}/libyara.so.*.*.*
76 %attr(755,root,root) %ghost %{_libdir}/libyara.so.0
77 %{_mandir}/man1/yara.1*
80 %defattr(644,root,root,755)
84 %if %{with static_libs}
86 %defattr(644,root,root,755)