Opened 12 years ago

Closed 11 years ago

#2966 enhancement closed fixed (fixed)

Spec file for Twisted

Reported by: lukatmyshu Owned by:
Priority: normal Milestone:
Component: release management Keywords:
Cc: Jean-Paul Calderone, TimAllen, Thijs Triemstra Branch:
Author:

Description

Noticed that there was no real spec file for Twisted. This is that we're using @ meebo to build the RPMS. I'm also attaching a short script that we use to actually create the rpm.

Attachments (2)

twisted.spec (673 bytes) - added by lukatmyshu 12 years ago.
spec file to build an RPM for twisted.
build-rpm.sh (270 bytes) - added by lukatmyshu 12 years ago.
short script to actually build the RPM

Download all attachments as: .zip

Change History (7)

Changed 12 years ago by lukatmyshu

Attachment: twisted.spec added

spec file to build an RPM for twisted.

Changed 12 years ago by lukatmyshu

Attachment: build-rpm.sh added

short script to actually build the RPM

comment:1 Changed 12 years ago by Jean-Paul Calderone

Cc: Jean-Paul Calderone added
Component: corerelease management
Owner: changed from Glyph to radix

We have a Fedora slave. We could set it up to generate RPMs. What do you think?

comment:2 Changed 12 years ago by David Ripton

Another option would be to use distutils bdist_rpm to generate the RPMs. (python setup.py bdist_rpm) I got this to work with a one-line change to t.p.dist.py (versus Twisted 2.5 release).

--- TwistedCore-2.5.0/twisted/python/dist.py +++ TwistedCore-2.5.0-mine/twisted/python/dist.py

if 'detectExtensions' in kw:

if 'ext_modules' not in kw:

+ kwext_modules? = []

dE = kwdetectExtensions? del kwdetectExtensions?

(distutils expects the elements of that list to be 2-tuples.)

Also, this requires that rpmbuild be installed. distutils bdist_rpm will attempt to fallback to using rpm instead of rpmbuild, but that doesn't actually work, at least on CentOS.

comment:3 Changed 12 years ago by TimAllen

Cc: TimAllen added

I believe #1696 is about getting bdist_rpm to work. I think it very nearly does, with Twisted 8.0.1.

comment:4 Changed 11 years ago by Thijs Triemstra

Cc: Thijs Triemstra added
Resolution: fixed
Status: newclosed

There's now a spec file in [source:trunk/admin/twisted.spec] and like mentioned before there's another ticket for the creation of RPMs, so closing this ticket.

comment:5 Changed 9 years ago by <automation>

Owner: radix deleted
Note: See TracTickets for help on using tickets.