]> git.pld-linux.org Git - packages/python-pyclamav.git/blame - python-pyclamav.spec
- release 12
[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
e6d3f239 7Release: 12
2a308bc5
AZ
8License: GPL
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
dbbbf85a 14BuildRequires: clamav-devel >= 0:0.95
2a308bc5 15BuildRequires: python
88ae976f 16BuildRequires: python-devel >= 1:2.4
dbbbf85a 17BuildRequires: python-modules
d17ac3d9 18BuildRequires: rpm-pythonprov
dbbbf85a 19Requires: clamav >= 0:0.95
2a308bc5
AZ
20Requires: python
21%pyrequires_eq python-modules
22BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24%description
25A Python interface to libclamav.
26
dd402777 27%description -l pl.UTF-8
2a308bc5
AZ
28Interfejs Pythona do libclamav.
29
30%prep
31%setup -q -n pyclamav-%{version}
73f32aec 32%patch0 -p1
2a308bc5
AZ
33
34%build
dc8f3cbc 35env CFLAGS="%{rpmcflags}" %{__python} setup.py build
2a308bc5
AZ
36
37%install
38rm -rf $RPM_BUILD_ROOT
3b32fc90 39install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
88ae976f 40%{__python} -- setup.py install \
2a308bc5
AZ
41 --root=$RPM_BUILD_ROOT \
42 --optimize=2
43
b4491a2b 44cp -a example.py $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
3b32fc90 45
2a308bc5
AZ
46%clean
47rm -rf $RPM_BUILD_ROOT
48
49%files
50%defattr(644,root,root,755)
3b32fc90 51%doc README.txt CHANGELOG
2a308bc5 52%attr(755,root,root) %{py_sitedir}/*.so
3b32fc90
AZ
53%dir %{_examplesdir}/%{name}-%{version}
54%{_examplesdir}/%{name}-%{version}/example.py
88ae976f 55%if "%{py_ver}" > "2.4"
8ee71459 56%{py_sitedir}/*.egg-info
88ae976f 57%endif
This page took 0.051858 seconds and 4 git commands to generate.