]>
Commit | Line | Data |
---|---|---|
fb56e992 ER |
1 | # No releases, source only available through svn. |
2 | # svn co http://pyenet.googlecode.com/svn/trunk/ pyenet-trunk-svn24 | |
3 | %define module pyenet | |
4 | %define svnrev svn24 | |
75e7fc08 | 5 | %define rel 3 |
fb56e992 ER |
6 | Summary: Python bindings for ENet |
7 | Name: python-enet | |
8 | Version: 0.0.0 | |
9 | Release: 0.%{svnrev}.%{rel} | |
10 | License: MIT | |
11 | Group: Libraries/Python | |
12 | URL: http://code.google.com/p/pyenet | |
40d1c990 | 13 | BuildRequires: rpmbuild(macros) >= 1.710 |
fb56e992 ER |
14 | Source0: %{module}-trunk-%{svnrev}.tar.bz2 |
15 | # Source0-md5: 1fa3e0ff41974fee2defc88d03a1c293 | |
16 | Patch0: pyenet-build-against-system-enet.patch | |
17 | BuildRequires: enet-devel >= 1.3.3 | |
18 | BuildRequires: python-Cython >= 0.13 | |
19 | BuildRequires: python-devel | |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
21 | ||
22 | %description | |
23 | Pyenet was written originally by Scott Robinson <scott@tranzoa.com>. | |
24 | ||
25 | It's currently maintained by Andrew Resch <andrewresch@gmail.com> and | |
26 | provides the Python bindings for ENet. | |
27 | ||
28 | %prep | |
29 | %setup -q -n %{module}-trunk-%{svnrev} | |
30 | %patch0 -p1 | |
31 | ||
32 | %build | |
05720f10 | 33 | %py_build |
fb56e992 ER |
34 | |
35 | %install | |
36 | rm -rf $RPM_BUILD_ROOT | |
05720f10 | 37 | %py_install |
fb56e992 ER |
38 | |
39 | %clean | |
40 | rm -rf $RPM_BUILD_ROOT | |
41 | ||
42 | %files | |
43 | %defattr(644,root,root,755) | |
44 | %doc LICENSE README ChangeLog | |
45 | %attr(755,root,root) %{py_sitedir}/enet.so | |
46 | %{py_sitedir}/enet-%{version}-py*.egg-info |