]> git.pld-linux.org Git - packages/python-pyclamav.git/blob - python-pyclamav.spec
- release 6
[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:        6
8 License:        GPL
9 Group:          Libraries/Python
10 Source0:        http://norman.free.fr/norman/python/pyclamav/pyclamav-%{version}.tar.gz
11 # Source0-md5:  9e1f29ea118bac87223ff4df3c077556
12 URL:            http://xael.org/norman/python/pyclamav/index.html
13 BuildRequires:  clamav-devel >= 0:0.80
14 BuildRequires:  python
15 BuildRequires:  python-devel >= 1:2.4
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
24 %description -l pl.UTF-8
25 Interfejs Pythona do libclamav.
26
27 %prep
28 %setup -q -n pyclamav-%{version}
29
30 %build
31 env CFLAGS="%{rpmcflags}" %{__python} setup.py build
32
33 %install
34 rm -rf $RPM_BUILD_ROOT
35 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
36 %{__python} -- setup.py install \
37         --root=$RPM_BUILD_ROOT \
38         --optimize=2
39
40 cp -a example.py $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
41
42 %clean
43 rm -rf $RPM_BUILD_ROOT
44
45 %files
46 %defattr(644,root,root,755)
47 %doc README.txt CHANGELOG
48 %attr(755,root,root) %{py_sitedir}/*.so
49 %dir %{_examplesdir}/%{name}-%{version}
50 %{_examplesdir}/%{name}-%{version}/example.py
51 %if "%{py_ver}" > "2.4"
52 %{py_sitedir}/*.egg-info
53 %endif
This page took 0.063208 seconds and 4 git commands to generate.