Koji¶
Ver: https://fedoraproject.org/wiki/Using_the_Koji_build_system
Para usar Koji necesita tener una cuentas FAS, pero no necesita tener aprobación de grupos para hacer scratch-builds, es decir, aunque no sea empaquetador aún, puede usar a koji para probar sus paquetes/srpms/specs.
Asi es como estoy procediendo:
$ yum install fedora-packager
[gomix@movix rpmbuild]$ fedora-packager-setup Setting up Fedora packager environment You need a client certificate from the Fedora Account System, lets get one now FAS Username: gomix FAS Password: Saved: /home/gomix/.fedora-server-ca.cert Linking: ~/.fedora-server-ca.cert to ~/.fedora-upload-ca.cert Wrote sparc koji config file Wrote arm koji config file Wrote alpha koji config file Wrote s390 koji config file Wrote hppa koji config file Wrote ppc koji config file Setting up Browser Certificates Enter Export Password: Verifying - Enter Export Password: unable to write 'random state' Browser certificate exported to ~/fedora-browser-cert.p12 To import the certificate into Firefox: Edit -> Preferences -> Advanced Click "View Certificates" On "Your Certificates" tab, click "Import" Select ~/fedora-browser-cert.p12 Type the export passphrase you chose earlier Once imported, you should see a certificate named "Fedora Project". Your username should appear underneath this. You should now be able to click the "login" link at http://koji.fedoraproject.org/koji/ successfully.
Disparo 1¶
[gomix@movix rpmbuild]$ koji build --scratch dist-f13 SRPMS/dhcp_probe-1.3.0-1.fc13.src.rpm --arch=i686 Uploading srpm: SRPMS/dhcp_probe-1.3.0-1.fc13.src.rpm [====================================] 100% 00:00:06 217.97 KiB 36.02 KiB/sec Created task: 2298440 Task info: http://koji.fedoraproject.org/koji/taskinfo?taskID=2298440 None Watching tasks (this may be safely interrupted)... 2298440 build (dist-f13, dhcp_probe-1.3.0-1.fc13.src.rpm): open (x86-03.phx2.fedoraproject.org) 2298443 buildArch (dhcp_probe-1.3.0-1.fc13.src.rpm, i686): open (x86-04.phx2.fedoraproject.org) 2298443 buildArch (dhcp_probe-1.3.0-1.fc13.src.rpm, i686): open (x86-04.phx2.fedoraproject.org) -> closed 0 free 1 open 1 done 0 failed 2298440 build (dist-f13, dhcp_probe-1.3.0-1.fc13.src.rpm): open (x86-03.phx2.fedoraproject.org) -> closed 0 free 0 open 2 done 0 failed 2298440 build (dist-f13, dhcp_probe-1.3.0-1.fc13.src.rpm) completed successfully
Disparo 2¶
En este ejemplo no especifico arquitectura y el paquete es un noarch.
[gomix@movix ~]$ koji build --scratch dist-f13 /home/makerpm/rpmbuild/SRPMS/fwsnort-1.0.6-7.fc13.src.rpm Uploading srpm: /home/makerpm/rpmbuild/SRPMS/fwsnort-1.0.6-7.fc13.src.rpm [====================================] 100% 00:00:12 533.42 KiB 41.67 KiB/sec Created task: 2311100 Task info: http://koji.fedoraproject.org/koji/taskinfo?taskID=2311100 None Watching tasks (this may be safely interrupted)... 2311100 build (dist-f13, fwsnort-1.0.6-7.fc13.src.rpm): free 2311100 build (dist-f13, fwsnort-1.0.6-7.fc13.src.rpm): free -> open (x86-12.phx2.fedoraproject.org) 2311101 buildArch (fwsnort-1.0.6-7.fc13.src.rpm, noarch): open (x86-05.phx2.fedoraproject.org) 2311101 buildArch (fwsnort-1.0.6-7.fc13.src.rpm, noarch): open (x86-05.phx2.fedoraproject.org) -> closed 0 free 1 open 1 done 0 failed 2311100 build (dist-f13, fwsnort-1.0.6-7.fc13.src.rpm): open (x86-12.phx2.fedoraproject.org) -> closed 0 free 0 open 2 done 0 failed 2311100 build (dist-f13, fwsnort-1.0.6-7.fc13.src.rpm) completed successfull
koji latest-pkg¶
$ koji latest-pkg -h
Usage: koji latest-pkg [options] tag package [package...]
(Specify the --help global option for a list of other help options)
Options:
-h, --help show this help message and exit
--arch=ARCH List all of the latest packages for this arch
--all List all of the latest packages for this tag
--quiet Do not print the header information
--paths Show the file paths
--type=TYPE Show builds of the given type only. Currently supported types:
maven
$ koji latest-pkg dist-6E-epel fwsnort Build Tag Built by ---------------------------------------- -------------------- ---------------- fwsnort-1.5-0.el6 dist-6E-epel gomix