]> git.pld-linux.org Git - packages/yara.git/blob - yara.spec
389f4f4a2b8e03a40b27a8a4e1a9e815ca195a63
[packages/yara.git] / yara.spec
1 #
2 # Conditional build:
3 %bcond_without  static_libs     # don't build static libraries
4
5 Summary:        A malware identification and classification tool
6 Name:           yara
7 Version:        1.4
8 Release:        2
9 License:        GPL v3
10 Group:          Libraries
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)
16
17 %description
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.
23
24 %package devel
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}
29 Requires:       pcre-devel
30
31 %description devel
32 Header files for yara library.
33
34 %description devel -l pl.UTF-8
35 Pliki nagłówkowe biblioteki yara.
36
37 %package static
38 Summary:        Static yara library
39 Summary(pl.UTF-8):      Statyczna biblioteka yara
40 Group:          Development/Libraries
41 Requires:       %{name}-devel = %{version}-%{release}
42
43 %description static
44 Static yara library.
45
46 %description static -l pl.UTF-8
47 Statyczna biblioteka yara.
48
49 %prep
50 %setup -q
51
52 %build
53 %configure \
54         %{!?with_static_libs:--disable-static}
55 %{__make}
56
57 %install
58 rm -rf $RPM_BUILD_ROOT
59
60 %{__make} install \
61         DESTDIR=$RPM_BUILD_ROOT
62
63 rm -f $RPM_BUILD_ROOT%{_libdir}/libyara.la
64
65 %clean
66 rm -rf $RPM_BUILD_ROOT
67
68 %post   -p /sbin/ldconfig
69 %postun -p /sbin/ldconfig
70
71 %files
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*
78
79 %files devel
80 %defattr(644,root,root,755)
81 %{_includedir}/yara.h
82 %{_libdir}/libyara.so
83
84 %if %{with static_libs}
85 %files static
86 %defattr(644,root,root,755)
87 %{_libdir}/libyara.a
88 %endif
This page took 0.064634 seconds and 2 git commands to generate.