]> git.pld-linux.org Git - packages/python-pyclamav.git/blobdiff - python-pyclamav.spec
- release 8
[packages/python-pyclamav.git] / python-pyclamav.spec
index f27acc856bf70d0bbaaa1b71766b635a79be2c49..f2421c1eebd1f82425b2497718cc4cb6e4d911f7 100644 (file)
@@ -1,16 +1,18 @@
+# TODO
+# - R: clamav? library requiring daemon???
 Summary:       A Python interface to libclamav
 Summary(pl.UTF-8):     Interfejs Pythona do libclamav
 Name:          python-pyclamav
-Version:       0.3.3
-Release:       2
+Version:       0.4.1
+Release:       8
 License:       GPL
 Group:         Libraries/Python
 Source0:       http://norman.free.fr/norman/python/pyclamav/pyclamav-%{version}.tar.gz
-# Source0-md5: 7899cff81288b201503747a0ba4d7db3
+# Source0-md5: 9e1f29ea118bac87223ff4df3c077556
 URL:           http://xael.org/norman/python/pyclamav/index.html
 BuildRequires:  clamav-devel >= 0:0.80
 BuildRequires: python
-BuildRequires: python-devel >= 1:2.5
+BuildRequires: python-devel >= 1:2.4
 Requires:       clamav >= 0:0.80
 Requires:      python
 %pyrequires_eq python-modules
@@ -26,17 +28,16 @@ Interfejs Pythona do libclamav.
 %setup -q -n pyclamav-%{version}
 
 %build
-env CFLAGS="%{rpmcflags}" %{_bindir}/python setup.py build
+env CFLAGS="%{rpmcflags}" %{__python} setup.py build
 
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
-
-python -- setup.py install \
+%{__python} -- setup.py install \
        --root=$RPM_BUILD_ROOT \
        --optimize=2
 
-cp -aR example.py $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+cp -a example.py $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -47,4 +48,6 @@ rm -rf $RPM_BUILD_ROOT
 %attr(755,root,root) %{py_sitedir}/*.so
 %dir %{_examplesdir}/%{name}-%{version}
 %{_examplesdir}/%{name}-%{version}/example.py
+%if "%{py_ver}" > "2.4"
 %{py_sitedir}/*.egg-info
+%endif
This page took 0.079208 seconds and 4 git commands to generate.