Zgłoszenie #857 - Dependencies in new rpms

Flyspray - The bug killer! btsadmin at pld-linux.org
Wed Oct 20 00:01:15 CEST 2004


THIS IS AN AUTOMATICALLY GENERATED MESSAGE, DO NOT REPLY
------------------------------------------------------------------------

Powiadomienie od PLD 2.x (Ac) 

Piotr Wawrzyniak (piti) dodał następujący komentarz do zgłoszenia.
Otrzymujesz wiadomość, bo jesteś na liście powiadomień.

Zgłoszenie #857: Dependencies in new rpms
-----
 OK, below are some more examples.
I've made the mplayer package, based on the spec file present in the
CVS, but changed allitle, to allow me building from mplayer CVS:
piotr at timemachine ~/rpm/SPECS/MSPECS]$ grep Requires MPlayer.spec
[piotr at timemachine ~/rpm/SPECS/MSPECS]$
[piotr at timemachine ~/rpm/SPECS/MSPECS]$ rpm -q MPlayer
MPlayer-20040923-2
[piotr at timemachine ~/rpm/SPECS/MSPECS]$ rpm -qR MPlayer|grep MPlayer
MPlayer
config(MPlayer) = 1:20040923-2

j2re is an old package made by myself, that contained Blackdown java
implementation. It didn't have any common with pld java-blackdown
package: so in this case I have

[piotr at timemachine ~/rpm/RPMS]$ rpm -q j2re java-sun-jre
j2re-1.4.1-01
pakiet java-sun-jre nie jest zainstalowany
[piotr at timemachine ~/rpm/RPMS]$ rpm -qi j2re
Name        : j2re                         Relocations: (not
relocatable)
Version     : 1.4.1                             Vendor: (none)
Release     : 01                            Build Date: czw 16 paź
2003 23:26:43 CEST
Install Date: wto 19 paź 2004 22:53:09 CEST      Build Host:
timemachine.uni-greifswald.de
Group       : Biblioteki                    Source RPM:
j2re-1.4.1-01.src.rpm
Size        : 49141967                         License: GPL
Signature   : (none)
Summary     : Blackdown java
Description :
Maszyna virtualna javy oraz bibliteki potrzebne do np mozilli.

After: rpmbuild -bb java-sun.spec I get:
[piotr at timemachine ~/rpm/RPMS]$ rpm -qpR
java-sun-jre-1.5.0-0.1.i686.rpm|grep j2re
j2re
[piotr at timemachine ~/rpm/RPMS]$ sudo rpm -e j2re
[piotr at timemachine ~/rpm/SPECS]$ rpmbuild -bb java-sun.spec
[...]
Zapisano: /home/users/piotr/rpm/RPMS/java-sun-1.5.0-0.1.i686.rpm
Zapisano:
/home/users/piotr/rpm/RPMS/java-sun-jre-jdbc-1.5.0-0.1.i686.rpm
Zapisano: /home/users/piotr/rpm/RPMS/java-sun-jre-1.5.0-0.1.i686.rpm
[...]
[piotr at timemachine ~/rpm/RPMS]$ rpm -qpR
java-sun-jre-1.5.0-0.1.i686.rpm|grep java
config(java-sun-jre) = 0:1.5.0-0.1
java-jre-tools
libjava.so

After java-sun-jre instalation:
[piotr at timemachine ~/rpm/RPMS]$ rpm -q java-sun-jre
java-sun-jre-1.5.0-0.1
piotr at timemachine ~/rpm/SPECS/MSPECS]$ rpmbuild -bb java-sun.spec
[...]
Zapisano: /home/users/piotr/rpm/RPMS/java-sun-1.5.0-0.1.i686.rpm
Zapisano:
/home/users/piotr/rpm/RPMS/java-sun-jre-jdbc-1.5.0-0.1.i686.rpm
Zapisano: /home/users/piotr/rpm/RPMS/java-sun-jre-1.5.0-0.1.i686.rpm
[...]
[piotr at timemachine ~/rpm/RPMS]$ rpm -qpR
java-sun-jre-1.5.0-0.1.i686.rpm|grep java
config(java-sun-jre) = 0:1.5.0-0.1
java-jre-tools
java-sun-jre
libjava.so

[piotr at timemachine ~/rpm/RPMS]$ rpm -qa|grep rpm
rpm-perlprov-4.3-0.20040107.37
rpm-build-4.3-0.20040107.37
rpm-4.3-0.20040107.37
rpm-build-tools-4.3-0.20040107.37
rpm-utils-4.3-0.20040107.37
rpm-lib-4.3-0.20040107.37
rpm-pythonprov-4.3-0.20040107.37

Is that enough?
 
 -----
https://pldbugs.bnet.pl/index.php?do=details&id=857&area=comments#tabs




More information about the pld-bugs mailing list