Line
Link Here
|
0 |
-- a/python-module-twisted-web.spec |
0 |
++ b/python-module-twisted-web.spec |
Lines 1-27
Link Here
|
1 |
%define version 0.7.0 |
1 |
%define version 0.7.0 |
2 |
%define release alt1 |
2 |
%define release alt1.1 |
3 |
%define origname TwistedWeb |
3 |
%define origname TwistedWeb |
4 |
%setup_python_module twisted-web |
4 |
%setup_python_module twisted-web |
5 |
|
5 |
|
6 |
Name: %{packagename} |
6 |
Name: %packagename |
7 |
Version: %{version} |
7 |
Version: %version |
8 |
Release: %{release} |
8 |
Release: %release |
9 |
Summary: Twisted web server, programmable in Python |
9 |
Summary: Twisted web server, programmable in Python |
10 |
|
10 |
|
11 |
Group: Development/Python |
11 |
Group: Development/Python |
12 |
License: MIT |
12 |
License: MIT |
13 |
URL: http://twistedmatrix.com/trac/wiki/TwistedWeb |
13 |
URL: http://twistedmatrix.com/trac/wiki/TwistedWeb |
14 |
Packager: Sergey Alembekov <rt@altlinux.ru> |
14 |
Packager: Sergey Alembekov <rt@altlinux.ru> |
15 |
Source0: http://tmrc.mit.edu/mirror/twisted/Web/0.7/%{origname}-%{version}.tar.bz2 |
15 |
Source0: http://tmrc.mit.edu/mirror/twisted/Web/0.7/%origname-%version.tar.bz2 |
16 |
|
16 |
|
17 |
BuildRequires: python-module-twisted-core |
17 |
BuildRequires: python-module-twisted-core |
18 |
BuildRequires: python-devel |
18 |
BuildRequires: python-devel |
19 |
|
19 |
|
20 |
Requires: python-module-twisted-core |
|
|
21 |
Requires: python-module-pygoogle |
22 |
|
23 |
%add_python_req_skip SOAPpy |
24 |
|
25 |
%description |
20 |
%description |
26 |
Twisted is an event-based framework for internet applications. |
21 |
Twisted is an event-based framework for internet applications. |
27 |
|
22 |
|
Lines 30-56
applications using Twisted and Python, but fully able to serve static
Link Here
|
30 |
pages, also. |
25 |
pages, also. |
31 |
|
26 |
|
32 |
%prep |
27 |
%prep |
33 |
%setup -q -n %{origname}-%{version} |
28 |
%setup -q -n %origname-%version |
34 |
|
29 |
|
35 |
%{__sed} -i -e '/^#! *\/usr\/bin\/python/d' twisted/web/test/test_cgi.py |
30 |
subst 's@^#! */usr/bin/python@@' twisted/web/test/test_cgi.py |
36 |
%{__sed} -i -e '/^#! *\/usr\/bin\/python/d' twisted/web/test/test_distrib.py |
31 |
subst 's@^#! */usr/bin/python@@' twisted/web/test/test_distrib.py |
37 |
|
32 |
|
38 |
%build |
33 |
%build |
39 |
%__python setup.py build |
34 |
%__python setup.py build |
40 |
|
35 |
|
41 |
%install |
36 |
%install |
42 |
%__python setup.py install --root $RPM_BUILD_ROOT |
37 |
%__python setup.py install --root $RPM_BUILD_ROOT --install-purelib %python_sitelibdir |
43 |
|
|
|
44 |
%clean |
45 |
|
38 |
|
46 |
%files |
39 |
%files |
47 |
%defattr(-,root,root,-) |
|
|
48 |
%doc README LICENSE NEWS doc/* |
40 |
%doc README LICENSE NEWS doc/* |
49 |
|
41 |
|
50 |
%{python_sitelibdir}/twisted/web/ |
42 |
%python_sitelibdir/twisted/web |
|
|
43 |
%python_sitelibdir/twisted/plugins/twisted_web.py* |
44 |
|
45 |
# There are no SOAPpy in ALT Linux Sisyphus - remove it support |
46 |
%exclude %python_sitelibdir/twisted/web/soap.py |
47 |
%exclude %python_sitelibdir/twisted/web/test/test_soap.py |
51 |
|
48 |
|
52 |
%{python_sitelibdir}/twisted/plugins/twisted_web.py* |
|
|
53 |
|
49 |
|
54 |
%changelog |
50 |
%changelog |
|
|
51 |
* Sat Oct 27 2007 Nikolay A. Fetisov <naf@altlinux.ru> 0.7.0-alt1.1 |
52 |
- Fix build on x86_64 |
53 |
- Spec file clenaup |
54 |
|
55 |
* Fri Mar 30 2007 Sergey Alembekov <rt@altlinux.ru> 0.7.0-alt1 |
55 |
* Fri Mar 30 2007 Sergey Alembekov <rt@altlinux.ru> 0.7.0-alt1 |
56 |
- Build for new upstream version |
56 |
- Build for new upstream version |