]>
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 |
d8fde091 JB |
7 | Release: 15 |
8 | License: GPL v2+ | |
2a308bc5 AZ |
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 |
d8fde091 JB |
14 | BuildRequires: clamav-devel >= 0.95 |
15 | BuildRequires: pkgconfig | |
16 | BuildRequires: python >= 1:2.4 | |
88ae976f | 17 | BuildRequires: python-devel >= 1:2.4 |
d8fde091 | 18 | BuildRequires: python-modules >= 1:2.4 |
d17ac3d9 | 19 | BuildRequires: rpm-pythonprov |
d8fde091 JB |
20 | BuildRequires: rpmbuild(macros) >= 1.714 |
21 | Requires: clamav >= 0.95 | |
2a308bc5 AZ |
22 | Requires: python |
23 | %pyrequires_eq python-modules | |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
25 | ||
26 | %description | |
27 | A Python interface to libclamav. | |
28 | ||
dd402777 | 29 | %description -l pl.UTF-8 |
2a308bc5 AZ |
30 | Interfejs Pythona do libclamav. |
31 | ||
32 | %prep | |
33 | %setup -q -n pyclamav-%{version} | |
73f32aec | 34 | %patch0 -p1 |
2a308bc5 AZ |
35 | |
36 | %build | |
d8fde091 | 37 | CFLAGS="%{rpmcflags} $(pkg-config --cflags libclamav)" |
50d71ac8 | 38 | %py_build |
2a308bc5 AZ |
39 | |
40 | %install | |
41 | rm -rf $RPM_BUILD_ROOT | |
3b32fc90 | 42 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
50d71ac8 JR |
43 | |
44 | %py_install | |
2a308bc5 | 45 | |
b4491a2b | 46 | cp -a example.py $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
3b32fc90 | 47 | |
2a308bc5 AZ |
48 | %clean |
49 | rm -rf $RPM_BUILD_ROOT | |
50 | ||
51 | %files | |
52 | %defattr(644,root,root,755) | |
3b32fc90 | 53 | %doc README.txt CHANGELOG |
d8fde091 | 54 | %attr(755,root,root) %{py_sitedir}/pyclamav.so |
3b32fc90 AZ |
55 | %dir %{_examplesdir}/%{name}-%{version} |
56 | %{_examplesdir}/%{name}-%{version}/example.py | |
88ae976f | 57 | %if "%{py_ver}" > "2.4" |
d8fde091 | 58 | %{py_sitedir}/pyclamav-%{version}-py*.egg-info |
88ae976f | 59 | %endif |