]> git.pld-linux.org Git - packages/python-pyclamav.git/blame - python-pyclamav.spec
- adjusted new-api patch to cover clamav 0.101; release 15
[packages/python-pyclamav.git] / python-pyclamav.spec
CommitLineData
b4491a2b
ER
1# TODO
2# - R: clamav? library requiring daemon???
2a308bc5 3Summary: A Python interface to libclamav
7636c8de 4Summary(pl.UTF-8): Interfejs Pythona do libclamav
2a308bc5 5Name: python-pyclamav
88ae976f 6Version: 0.4.1
d8fde091
JB
7Release: 15
8License: GPL v2+
2a308bc5
AZ
9Group: Libraries/Python
10Source0: http://norman.free.fr/norman/python/pyclamav/pyclamav-%{version}.tar.gz
88ae976f 11# Source0-md5: 9e1f29ea118bac87223ff4df3c077556
73f32aec 12Patch0: %{name}-new-api.patch
2a308bc5 13URL: http://xael.org/norman/python/pyclamav/index.html
d8fde091
JB
14BuildRequires: clamav-devel >= 0.95
15BuildRequires: pkgconfig
16BuildRequires: python >= 1:2.4
88ae976f 17BuildRequires: python-devel >= 1:2.4
d8fde091 18BuildRequires: python-modules >= 1:2.4
d17ac3d9 19BuildRequires: rpm-pythonprov
d8fde091
JB
20BuildRequires: rpmbuild(macros) >= 1.714
21Requires: clamav >= 0.95
2a308bc5
AZ
22Requires: python
23%pyrequires_eq python-modules
24BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26%description
27A Python interface to libclamav.
28
dd402777 29%description -l pl.UTF-8
2a308bc5
AZ
30Interfejs Pythona do libclamav.
31
32%prep
33%setup -q -n pyclamav-%{version}
73f32aec 34%patch0 -p1
2a308bc5
AZ
35
36%build
d8fde091 37CFLAGS="%{rpmcflags} $(pkg-config --cflags libclamav)"
50d71ac8 38%py_build
2a308bc5
AZ
39
40%install
41rm -rf $RPM_BUILD_ROOT
3b32fc90 42install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
50d71ac8
JR
43
44%py_install
2a308bc5 45
b4491a2b 46cp -a example.py $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
3b32fc90 47
2a308bc5
AZ
48%clean
49rm -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
This page took 0.070032 seconds and 4 git commands to generate.