]>
Commit | Line | Data |
---|---|---|
b4491a2b ER |
1 | # TODO |
2 | # - R: clamav? library requiring daemon??? | |
2a308bc5 | 3 | Summary: A Python interface to libclamav |
7636c8de | 4 | Summary(pl.UTF-8): Interfejs Pythona do libclamav |
2a308bc5 | 5 | Name: python-pyclamav |
88ae976f | 6 | Version: 0.4.1 |
04557586 | 7 | Release: 2 |
2a308bc5 AZ |
8 | License: GPL |
9 | Group: Libraries/Python | |
10 | Source0: http://norman.free.fr/norman/python/pyclamav/pyclamav-%{version}.tar.gz | |
88ae976f | 11 | # Source0-md5: 9e1f29ea118bac87223ff4df3c077556 |
2a308bc5 AZ |
12 | URL: http://xael.org/norman/python/pyclamav/index.html |
13 | BuildRequires: clamav-devel >= 0:0.80 | |
14 | BuildRequires: python | |
88ae976f | 15 | BuildRequires: python-devel >= 1:2.4 |
2a308bc5 AZ |
16 | Requires: clamav >= 0:0.80 |
17 | Requires: python | |
18 | %pyrequires_eq python-modules | |
19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
20 | ||
21 | %description | |
22 | A Python interface to libclamav. | |
23 | ||
dd402777 | 24 | %description -l pl.UTF-8 |
2a308bc5 AZ |
25 | Interfejs Pythona do libclamav. |
26 | ||
27 | %prep | |
28 | %setup -q -n pyclamav-%{version} | |
29 | ||
30 | %build | |
dc8f3cbc | 31 | env CFLAGS="%{rpmcflags}" %{__python} setup.py build |
2a308bc5 AZ |
32 | |
33 | %install | |
34 | rm -rf $RPM_BUILD_ROOT | |
3b32fc90 | 35 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
88ae976f | 36 | %{__python} -- setup.py install \ |
2a308bc5 AZ |
37 | --root=$RPM_BUILD_ROOT \ |
38 | --optimize=2 | |
39 | ||
b4491a2b | 40 | cp -a example.py $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
3b32fc90 | 41 | |
2a308bc5 AZ |
42 | %clean |
43 | rm -rf $RPM_BUILD_ROOT | |
44 | ||
45 | %files | |
46 | %defattr(644,root,root,755) | |
3b32fc90 | 47 | %doc README.txt CHANGELOG |
2a308bc5 | 48 | %attr(755,root,root) %{py_sitedir}/*.so |
3b32fc90 AZ |
49 | %dir %{_examplesdir}/%{name}-%{version} |
50 | %{_examplesdir}/%{name}-%{version}/example.py | |
88ae976f | 51 | %if "%{py_ver}" > "2.4" |
8ee71459 | 52 | %{py_sitedir}/*.egg-info |
88ae976f | 53 | %endif |