]> git.pld-linux.org Git - packages/python-pyclamav.git/blob - python-pyclamav.spec
- need new clam api fix
[packages/python-pyclamav.git] / python-pyclamav.spec
1 # TODO
2 # - patch for clamav 0.93
3 Summary:        A Python interface to libclamav
4 Summary(pl.UTF-8):      Interfejs Pythona do libclamav
5 Name:           python-pyclamav
6 Version:        0.3.3
7 Release:        4
8 License:        GPL
9 Group:          Libraries/Python
10 Source0:        http://norman.free.fr/norman/python/pyclamav/pyclamav-%{version}.tar.gz
11 # Source0-md5:  7899cff81288b201503747a0ba4d7db3
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.5
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}" %{_bindir}/python setup.py build
32
33 %install
34 rm -rf $RPM_BUILD_ROOT
35 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
36
37 python -- setup.py install \
38         --root=$RPM_BUILD_ROOT \
39         --optimize=2
40
41 cp -aR example.py $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
42
43 %clean
44 rm -rf $RPM_BUILD_ROOT
45
46 %files
47 %defattr(644,root,root,755)
48 %doc README.txt CHANGELOG
49 %attr(755,root,root) %{py_sitedir}/*.so
50 %dir %{_examplesdir}/%{name}-%{version}
51 %{_examplesdir}/%{name}-%{version}/example.py
52 %{py_sitedir}/*.egg-info
This page took 0.048349 seconds and 4 git commands to generate.