rpm -qp --provides j/jdk-1_5_0_17-linux-amd64.rpm
jre = 1.5.0_17
j2sdk = 1.5.0_17
j2re = 1.5.0_17
jaxp_parser_impl
xml-commons-apis
jdk = 2000:1.5.0_17-fcs
If, on the other hand, I do:
./build/createrpmdeps j/
F:jdk.x86_64-1247663943/43205785/222924731: j/jdk-1_5_0_17-linux-amd64.rpm
P:jdk.x86_64-1247663943/43205785/222924731: jre = 1.5.0_17 j2sdk = 1.5.0_17 j2re = 1.5.0_17 jaxp_parser_impl xml-commons-apis
R:jdk.x86_64-1247663943/43205785/222924731: rpmlib(VersionedDependencies) <= 3.0.3-1 glibc >= 2.1.2-11 sh-utils >= 2.0-1 fileutils >= 4.0-8 gawk >= 3.0.4-1 textutils >= 2.0-2 /bin/sh
I:jdk.x86_64-1247663943/43205785/222924731: jdk-1.5.0_17-fcs 1226310485
It looks like there is an inconsistency in the P: line.
I used a hex editor and changed the following fields in a copy
of the file:
tag offset old new
1000 2 jdk Jdk
1001 6 1.5.0_17 1.5.8_17
1002 15 fcs fCs
1003 20 2000 1857
Now rpm -qp --provides z.amd64.rpm
jre = 1.5.0_17
j2sdk = 1.5.0_17
j2re = 1.5.0_17
jaxp_parser_impl
xml-commons-apis
Jdk = 1857:1.5.8_17-fCs
The behavior of adding a "%name = %epoch:%version-%release" provides line is not
consistent. This package was produce by sun.com. Here is the full rpm -qip for
it:
Name : jdk Relocations: /usr/java
Version : 1.5.0_17 Vendor: Sun Microsystems, Inc.
Release : fcs Build Date: Mon 10 Nov 2008 01:48:05 AM PST
Install Date: (not installed) Build Host: tiger-linuxamd.sfbay.sun.com
Group : Development/Tools Source RPM: jdk-1.5.0_17-fcs.src.rpm
Size : 76188127 License: Sun Microsystems Binary Code License (BCL)
Signature : (none)
Packager : Java Software