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