]> git.pld-linux.org Git - packages/python-pyclamav.git/blob - python-pyclamav.spec
- release 2 (rebuild with new clamav)
[packages/python-pyclamav.git] / python-pyclamav.spec
1 Summary:        A Python interface to libclamav
2 Summary(pl.UTF-8):      Interfejs Pythona do libclamav
3 Name:           python-pyclamav
4 Version:        0.3.3
5 Release:        2
6 License:        GPL
7 Group:          Libraries/Python
8 Source0:        http://norman.free.fr/norman/python/pyclamav/pyclamav-%{version}.tar.gz
9 # Source0-md5:  7899cff81288b201503747a0ba4d7db3
10 URL:            http://xael.org/norman/python/pyclamav/index.html
11 BuildRequires:  clamav-devel >= 0:0.80
12 BuildRequires:  python
13 BuildRequires:  python-devel >= 1:2.5
14 Requires:       clamav >= 0:0.80
15 Requires:       python
16 %pyrequires_eq  python-modules
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %description
20 A Python interface to libclamav.
21
22 %description -l pl.UTF-8
23 Interfejs Pythona do libclamav.
24
25 %prep
26 %setup -q -n pyclamav-%{version}
27
28 %build
29 env CFLAGS="%{rpmcflags}" %{_bindir}/python setup.py build
30
31 %install
32 rm -rf $RPM_BUILD_ROOT
33 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
34
35 python -- setup.py install \
36         --root=$RPM_BUILD_ROOT \
37         --optimize=2
38
39 cp -aR example.py $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
40
41 %clean
42 rm -rf $RPM_BUILD_ROOT
43
44 %files
45 %defattr(644,root,root,755)
46 %doc README.txt CHANGELOG
47 %attr(755,root,root) %{py_sitedir}/*.so
48 %dir %{_examplesdir}/%{name}-%{version}
49 %{_examplesdir}/%{name}-%{version}/example.py
50 %{py_sitedir}/*.egg-info
This page took 0.067687 seconds and 4 git commands to generate.