]> git.pld-linux.org Git - packages/python-pyclamav.git/blob - python-pyclamav.spec
- adjusted new-api patch to cover clamav 0.101; release 15
[packages/python-pyclamav.git] / python-pyclamav.spec
1 # TODO
2 # - R: clamav? library requiring daemon???
3 Summary:        A Python interface to libclamav
4 Summary(pl.UTF-8):      Interfejs Pythona do libclamav
5 Name:           python-pyclamav
6 Version:        0.4.1
7 Release:        15
8 License:        GPL v2+
9 Group:          Libraries/Python
10 Source0:        http://norman.free.fr/norman/python/pyclamav/pyclamav-%{version}.tar.gz
11 # Source0-md5:  9e1f29ea118bac87223ff4df3c077556
12 Patch0:         %{name}-new-api.patch
13 URL:            http://xael.org/norman/python/pyclamav/index.html
14 BuildRequires:  clamav-devel >= 0.95
15 BuildRequires:  pkgconfig
16 BuildRequires:  python >= 1:2.4
17 BuildRequires:  python-devel >= 1:2.4
18 BuildRequires:  python-modules >= 1:2.4
19 BuildRequires:  rpm-pythonprov
20 BuildRequires:  rpmbuild(macros) >= 1.714
21 Requires:       clamav >= 0.95
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
29 %description -l pl.UTF-8
30 Interfejs Pythona do libclamav.
31
32 %prep
33 %setup -q -n pyclamav-%{version}
34 %patch0 -p1
35
36 %build
37 CFLAGS="%{rpmcflags} $(pkg-config --cflags libclamav)"
38 %py_build
39
40 %install
41 rm -rf $RPM_BUILD_ROOT
42 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
43
44 %py_install
45
46 cp -a example.py $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
47
48 %clean
49 rm -rf $RPM_BUILD_ROOT
50
51 %files
52 %defattr(644,root,root,755)
53 %doc README.txt CHANGELOG
54 %attr(755,root,root) %{py_sitedir}/pyclamav.so
55 %dir %{_examplesdir}/%{name}-%{version}
56 %{_examplesdir}/%{name}-%{version}/example.py
57 %if "%{py_ver}" > "2.4"
58 %{py_sitedir}/pyclamav-%{version}-py*.egg-info
59 %endif
This page took 0.080995 seconds and 3 git commands to generate.