]>
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 |
e6d3f239 | 7 | Release: 12 |
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 |
73f32aec | 12 | Patch0: %{name}-new-api.patch |
2a308bc5 | 13 | URL: http://xael.org/norman/python/pyclamav/index.html |
dbbbf85a | 14 | BuildRequires: clamav-devel >= 0:0.95 |
2a308bc5 | 15 | BuildRequires: python |
88ae976f | 16 | BuildRequires: python-devel >= 1:2.4 |
dbbbf85a | 17 | BuildRequires: python-modules |
d17ac3d9 | 18 | BuildRequires: rpm-pythonprov |
dbbbf85a | 19 | Requires: clamav >= 0:0.95 |
2a308bc5 AZ |
20 | Requires: python |
21 | %pyrequires_eq python-modules | |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
23 | ||
24 | %description | |
25 | A Python interface to libclamav. | |
26 | ||
dd402777 | 27 | %description -l pl.UTF-8 |
2a308bc5 AZ |
28 | Interfejs Pythona do libclamav. |
29 | ||
30 | %prep | |
31 | %setup -q -n pyclamav-%{version} | |
73f32aec | 32 | %patch0 -p1 |
2a308bc5 AZ |
33 | |
34 | %build | |
dc8f3cbc | 35 | env CFLAGS="%{rpmcflags}" %{__python} setup.py build |
2a308bc5 AZ |
36 | |
37 | %install | |
38 | rm -rf $RPM_BUILD_ROOT | |
3b32fc90 | 39 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
88ae976f | 40 | %{__python} -- setup.py install \ |
2a308bc5 AZ |
41 | --root=$RPM_BUILD_ROOT \ |
42 | --optimize=2 | |
43 | ||
b4491a2b | 44 | cp -a example.py $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
3b32fc90 | 45 | |
2a308bc5 AZ |
46 | %clean |
47 | rm -rf $RPM_BUILD_ROOT | |
48 | ||
49 | %files | |
50 | %defattr(644,root,root,755) | |
3b32fc90 | 51 | %doc README.txt CHANGELOG |
2a308bc5 | 52 | %attr(755,root,root) %{py_sitedir}/*.so |
3b32fc90 AZ |
53 | %dir %{_examplesdir}/%{name}-%{version} |
54 | %{_examplesdir}/%{name}-%{version}/example.py | |
88ae976f | 55 | %if "%{py_ver}" > "2.4" |
8ee71459 | 56 | %{py_sitedir}/*.egg-info |
88ae976f | 57 | %endif |