1 |
mikala |
85089 |
Name: python-yenc |
2 |
|
|
Version: 0.3 |
3 |
umeabot |
379728 |
Release: %mkrel 4 |
4 |
mikala |
85089 |
Summary: yEnc Module for Python |
5 |
|
|
Group: Development/Python |
6 |
|
|
License: GPLv2+ |
7 |
|
|
URL: http://www.hellanzb.com/trac/ |
8 |
|
|
Source0: http://www.hellanzb.com/hellanzb-content/yenc-%{version}.tar.gz |
9 |
|
|
BuildRequires: python-devel |
10 |
|
|
BuildRequires: python-setuptools |
11 |
|
|
|
12 |
|
|
%description |
13 |
|
|
python-yenc is a yEnc decoding library for Python. yEnc is a |
14 |
|
|
binary-to-text encoding scheme for transferring binary files |
15 |
|
|
in messages on Usenet or via e-mail. |
16 |
|
|
|
17 |
|
|
%prep |
18 |
|
|
%setup -q -n yenc-%{version} |
19 |
|
|
|
20 |
|
|
|
21 |
|
|
%build |
22 |
|
|
CFLAGS="$RPM_OPT_FLAGS" %{__python} -c 'import setuptools; execfile("setup.py")' build |
23 |
|
|
|
24 |
|
|
|
25 |
|
|
%install |
26 |
|
|
rm -rf $RPM_BUILD_ROOT |
27 |
|
|
%{__python} -c 'import setuptools; execfile("setup.py")' install -O1 --skip-build --root $RPM_BUILD_ROOT |
28 |
|
|
chmod g-w $RPM_BUILD_ROOT/%{python_sitearch}/_yenc.so |
29 |
|
|
|
30 |
|
|
|
31 |
|
|
%check |
32 |
|
|
PYTHONPATH="$PYTHONPATH:$RPM_BUILD_ROOT/%{python_sitearch}" %{__python} test/test.py |
33 |
|
|
|
34 |
|
|
|
35 |
|
|
%clean |
36 |
|
|
rm -rf $RPM_BUILD_ROOT |
37 |
|
|
|
38 |
|
|
|
39 |
|
|
%files |
40 |
|
|
%defattr(-,root,root,-) |
41 |
|
|
%doc README TODO COPYING |
42 |
|
|
%{py_platsitedir}/* |