/[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 85089 - (hide annotations) (download)
Thu Apr 14 10:14:30 2011 UTC (13 years ago) by mikala
File size: 1131 byte(s)
imported package python-yenc
1 mikala 85089 Name: python-yenc
2     Version: 0.3
3     Release: %mkrel 2
4     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     BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
10     BuildRequires: python-devel
11     BuildRequires: python-setuptools
12    
13     %description
14     python-yenc is a yEnc decoding library for Python. yEnc is a
15     binary-to-text encoding scheme for transferring binary files
16     in messages on Usenet or via e-mail.
17    
18     %prep
19     %setup -q -n yenc-%{version}
20    
21    
22     %build
23     CFLAGS="$RPM_OPT_FLAGS" %{__python} -c 'import setuptools; execfile("setup.py")' build
24    
25    
26     %install
27     rm -rf $RPM_BUILD_ROOT
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     %clean
37     rm -rf $RPM_BUILD_ROOT
38    
39    
40     %files
41     %defattr(-,root,root,-)
42     %doc README TODO COPYING
43     %{py_platsitedir}/*
44    
45    

  ViewVC Help
Powered by ViewVC 1.1.30