]>
Commit | Line | Data |
---|---|---|
750ce8df | 1 | |
2 | %include /usr/lib/rpm/macros.python | |
3 | %define pname medusa | |
4 | ||
5 | %define py_ver 2.3 | |
6 | %define py_prefix %{_prefix} | |
7 | %define py_scriptdir %{py_prefix}/share/python%{py_ver} | |
8 | %define py_sitescriptdir %{py_scriptdir}/site-packages | |
9 | ||
10 | Summary: Framework for writing asynchronous socket-based servers. | |
11 | Name: python-%{pname} | |
12 | Version: 0.5.4 | |
13 | Release: 1 | |
14 | License: UNKNOWN | |
15 | Vendor: Robin Dunn <robin@alldunn.com> | |
16 | Group: Development/Languages/Python | |
17 | Source0: http://www.amk.ca/files/python/%{pname}-%{version}.tar.gz | |
18 | # Source0-md5: 5d10505036bc38f8d4cb51d87516e069 | |
19 | URL: http://www.amk.ca/python/code/medusa.html | |
20 | BuildRequires: python-devel >= 2.3 | |
21 | BuildRequires: rpm-pythonprov | |
22 | %pyrequires_eq python-modules | |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
24 | ||
25 | %description | |
26 | Medusa is an architecture for very-high-performance TCP/IP servers | |
27 | (like HTTP, FTP, and SMTP). Medusa is different from most other servers | |
28 | because it runs as a single process, multiplexing I/O with its various | |
29 | client and server connections within a single process/thread. | |
30 | ||
31 | %prep | |
32 | %setup -q -n %{pname}-%{version} | |
33 | ||
34 | %build | |
35 | env CFLAGS="%{rpmcflags}" python setup.py build | |
36 | ||
37 | %install | |
38 | rm -rf $RPM_BUILD_ROOT | |
39 | python -- setup.py install --root=$RPM_BUILD_ROOT --optimize=2 | |
40 | ||
41 | ||
42 | %clean | |
43 | rm -rf $RPM_BUILD_ROOT | |
44 | ||
45 | %files | |
46 | %defattr(644,root,root,755) | |
47 | %doc README.txt TODO.txt CHANGES.txt LICENSE.txt docs | |
48 | %{py_sitescriptdir}/%{pname} |