| Revision 5701,
1.3 KB
checked in by Takemikaduchi, 15 years ago
(diff) |
|
python-2.7.2
|
| Line | |
|---|
| 1 | Summary: a quick hack to use libclamav with python |
|---|
| 2 | Name: python-pyclamav |
|---|
| 3 | Version: 0.4.1 |
|---|
| 4 | Release: 2%{?_dist_release} |
|---|
| 5 | License: GPLv2 |
|---|
| 6 | Group: Development/Libraries |
|---|
| 7 | URL: http://xael.org/norman/python/pyclamav/ |
|---|
| 8 | Source0: pyclamav-%{version}.tar.gz |
|---|
| 9 | ## from Debian python-clamav 0.4.1-5 |
|---|
| 10 | # http://svn.debian.org/viewsvn/python-modules/packages/python-clamav/trunk/debian/patches/clamav-095-compat.patch?revision=15795&view=markup |
|---|
| 11 | Patch0: clamav-095-compat.patch |
|---|
| 12 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot |
|---|
| 13 | |
|---|
| 14 | BuildRequires: python-devel |
|---|
| 15 | BuildRequires: clamav-devel >= 0.95 |
|---|
| 16 | |
|---|
| 17 | %description |
|---|
| 18 | pyClamAV is a python binding to libclamav written in C. By using pyClamAV, |
|---|
| 19 | you can add virus detection capabilities to your python software in an |
|---|
| 20 | efficient and easy way. |
|---|
| 21 | |
|---|
| 22 | %prep |
|---|
| 23 | %setup -q -n pyclamav-%{version} |
|---|
| 24 | %patch0 -p1 -b .debian |
|---|
| 25 | |
|---|
| 26 | %build |
|---|
| 27 | %__python setup.py build |
|---|
| 28 | |
|---|
| 29 | %install |
|---|
| 30 | %__rm -rf %{buildroot} |
|---|
| 31 | %__python setup.py install --root %{buildroot} |
|---|
| 32 | |
|---|
| 33 | %clean |
|---|
| 34 | %__rm -rf %{buildroot} |
|---|
| 35 | |
|---|
| 36 | %files |
|---|
| 37 | %defattr(-,root,root,-) |
|---|
| 38 | %doc CHANGELOG README.txt gpl.txt |
|---|
| 39 | %{python_sitearch}/pyclamav* |
|---|
| 40 | |
|---|
| 41 | %changelog |
|---|
| 42 | * Sun Feb 19 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.4.1-2 |
|---|
| 43 | - rebuild with python-2.7.2 |
|---|
| 44 | |
|---|
| 45 | * Mon Mar 28 2011 IWAI, Masaharu <iwai@alib.jp> 0.4.1-1 |
|---|
| 46 | - Initial build. |
|---|
| 47 | - add clamav-095-compat.patch (Patch0) from Debian python-clamav 0.4.1-5 |
|---|
Note: See
TracBrowser
for help on using the repository browser.