/[packages]/cauldron/python-yenc/current/SPECS/python-yenc.spec
ViewVC logotype

Annotation of /cauldron/python-yenc/current/SPECS/python-yenc.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 629116 - (hide annotations) (download)
Sat May 31 15:50:14 2014 UTC (9 years, 10 months ago) by pterjan
File size: 1020 byte(s)
Rebuild for new Python
1 philippem 450340 %define commit ee6b73a5b14f
2    
3 mikala 85089 Name: python-yenc
4 philippem 450340 Version: 0.4.0
5 pterjan 629116 Release: %mkrel 4
6 mikala 85089 Summary: yEnc Module for Python
7     Group: Development/Python
8     License: GPLv2+
9 philippem 450340 URL: https://bitbucket.org/dual75/yenc
10     Source0: https://bitbucket.org/dual75/yenc/get/%{version}.tar.gz
11     BuildRequires: pkgconfig(python)
12 mikala 85089 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 philippem 450340 %setup -q -n dual75-yenc-%{commit}
21 mikala 85089
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}/*

  ViewVC Help
Powered by ViewVC 1.1.30