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

Annotation of /cauldron/python-twisted-web/current/SPECS/python-twisted-web.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 499648 - (hide annotations) (download)
Tue Oct 15 00:00:39 2013 UTC (10 years, 6 months ago) by pterjan
File size: 1296 byte(s)
Rebuild to add different pythonegg provides for python 2 and 3
1 erwan 24869 %define name python-twisted-web
2 philippem 491833 %define version 13.1.0
3 pterjan 499648 %define rel 2
4 erwan 24869 %define mainver %(echo %{version} | sed -e 's/\\([0-9]*\\.[0-9]*\\)\\.[0-9]*/\\1/')
5 philippem 491833 # we don't want to provide private python extension libs
6     %define _exclude_files_from_autoprov %{python_sitearch}/.*\\.so\\|%{python3_sitearch}/.*\\.so
7 erwan 24869
8     Summary: An HTTP protocol implementation together with clients and servers
9     Name: %{name}
10     Version: %{version}
11     Release: %mkrel %{rel}
12 philippem 296394 Source0: http://twistedmatrix.com/Releases/Web/%{mainver}/TwistedWeb-%{version}.tar.bz2
13 erwan 24869 License: MIT
14     Group: Development/Python
15     URL: http://twistedmatrix.com/projects/web/
16     BuildRoot: %{_tmppath}/%{name}-buildroot
17     BuildRequires: python-devel python-twisted-core
18     Requires: python-twisted-core
19    
20     %description
21     An HTTP protocol implementation together with clients and servers, based on
22     the twisted python framework.
23    
24     %prep
25     %setup -q -n TwistedWeb-%{version}
26    
27     %build
28     %__python setup.py build
29    
30     %install
31     %__rm -rf %{buildroot}
32 philippem 491833 %__python setup.py install --root=%{buildroot} --install-purelib=%{python_sitearch}
33 erwan 24869
34    
35     %files
36     %defattr(0644,root,root,0755)
37     %doc LICENSE README
38 philippem 491833 %dir %{python_sitearch}/twisted/web
39     %{python_sitearch}/twisted/web/*
40     %{python_sitearch}/twisted/plugins/*
41     %{python_sitearch}/*.egg-info

  ViewVC Help
Powered by ViewVC 1.1.30