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