Message233462
| Author |
radeksimko |
| Recipients |
radeksimko |
| Date |
2015年01月05日.13:18:11 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1420463891.72.0.774842309991.issue23169@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
When I try to make custom package of Python 2.7, I use the spec file attached in `/Misc/RPM`. I don't really use it to build Python as I want to define some specific options, but I do use it as a source of RPM package meta data which I can simply reuse when creating the final RPM, e.g.:
rpm -q --specfile ./Misc/RPM/python-2.7.spec --queryformat '%{DESCRIPTION}'
Manipulation with that specfile in RPM 4.4.2.3 (CentOS 5.6) is fine, but there are warnings in RPM 4.8.0 (CentOS 6.5):
warning: line 71: buildprereq is deprecated: BuildPrereq: expat-devel
warning: line 72: buildprereq is deprecated: BuildPrereq: db4-devel
warning: line 73: buildprereq is deprecated: BuildPrereq: gdbm-devel
warning: line 74: buildprereq is deprecated: BuildPrereq: sqlite-devel
warning: line 91: prereq is deprecated: Prereq: python2.6 = %{PACKAGE_VERSION}
warning: line 122: prereq is deprecated: Prereq: python2.6 = %{PACKAGE_VERSION}-1pydotorg
Here's related thread: https://groups.google.com/forum/#!topic/comp.lang.python/R8ahiZ5wyhc
and most importantly here's proof/explanation: http://www.rpm.org/wiki/Releases/4.8.0#Packagebuilding
- PreReq and BuildPreReq are now officially deprecated, with warnings at build-time
- PreReq is mapped to Requires(pre,preun) at build-time
Requires(pre,preun) is backwards compatible, so it works in RPM 4.4 too, I would therefore suggest to change "[Build]Prereq" to "[Build]Requires(pre,preun)" respectively in the specfile to reflect this.
I'm happy to send a patch if some maintainers will agree with proposed solution. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2015年01月05日 13:18:11 | radeksimko | set | recipients:
+ radeksimko |
| 2015年01月05日 13:18:11 | radeksimko | set | messageid: <1420463891.72.0.774842309991.issue23169@psf.upfronthosting.co.za> |
| 2015年01月05日 13:18:11 | radeksimko | link | issue23169 messages |
| 2015年01月05日 13:18:11 | radeksimko | create |
|