Packaging Automation/MassProcessing/MassImportAndSupport: различия между версиями
(Новая страница: «Категория:Справочники {{Category navigation|title=Автоматизация работы с пакетами|category=Packaging Automation}}...») |
|||
Строка 8: | Строка 8: | ||
TODO | TODO | ||
=== Примеры === | |||
==== trinity ==== | |||
md -p TRINITY/trinity/rpm/f23/trinity-r14/ | |||
rsync -avp rsync://mirror.ntmm.org/trinity/trinity/rpm/f23/trinity-r14/SRPMS TRINITY/trinity/rpm/f23/trinity-r14/ | |||
rpmquery --qf '%{NAME}\n' -p TRINITY/trinity/rpm/f23/trinity-r14/SRPMS/*src.rpm > trinity.txt | |||
fcmass --str a -v fileshareset hk_classes pan torsocks wv2 | |||
ERROR: origin file for fileshareset not found. | |||
ERROR: origin file for hk_classes not found. | |||
info: origin: /var/ftp/pub/Linux/fedora/linux/development/rawhide/Everything/source/tree/Packages/p/pan-0.140-1.fc25.src.rpm | |||
info: parent: /var/ftp/pub/Linux/ALT/fcimport/Sisyphus/files/SRPMS/pan-0.140-alt1_1.src.rpm | |||
INFO: SourceAnalyzer: nothing in pkg-config provides webkitgtk-1.0. | |||
SourceAnalyzer: some deps weren't found. Is DistroMap database outdated? | |||
Записан: ./OUT/pan-0.140-alt2_1.src.rpm | |||
---*--- | |||
info: origin: /var/ftp/pub/Linux/fedora/linux/development/rawhide/Everything/source/tree/Packages/t/torsocks-2.1.0-3.fc24.src.rpm | |||
info: parent: /var/ftp/pub/Linux/ALT/Sisyphus/files/SRPMS/torsocks-2.2.0-alt1.gite389c999.src.rpm | |||
note: downgrade detected; increasing serial to 1 | |||
Записан: ./OUT/torsocks-2.1.0-alt1_3.src.rpm | |||
/var/ftp/pub/Linux/ALT/Sisyphus/files/SRPMS/wv2-0.4.2-alt3.src.rpm | |||
/var/ftp/pub/Linux/ALT/5.1/branch/files/SRPMS/hk_classes-0.8.3-alt3.src.rpm | |||
fcmass --origin TRINITY/trinity/rpm/f23/trinity-r14/SRPMS `cat trinity.txt` | |||
fcmass --origin TRINITY/trinity/rpm/f23/trinity-r14/SRPMS --hook set_trinity_version.pl --macrodef tde_version=14.0.3 `cat trinity.txt` 2>&1 | tee import.log | |||
cp hooks/template.pl set_trinity_version.pl | |||
#!/usr/bin/perl -w | |||
push @SPECHOOKS, | |||
sub { | |||
my ($spec, $parent) = @_; | |||
$spec->get_section('package','')->unshift_body('%define tde_version 14.0.3'."\n"); | |||
}; | |||
__END__ |
Версия от 23:10, 9 октября 2016
Введение.
TODO
Примеры
trinity
md -p TRINITY/trinity/rpm/f23/trinity-r14/ rsync -avp rsync://mirror.ntmm.org/trinity/trinity/rpm/f23/trinity-r14/SRPMS TRINITY/trinity/rpm/f23/trinity-r14/ rpmquery --qf '%{NAME}\n' -p TRINITY/trinity/rpm/f23/trinity-r14/SRPMS/*src.rpm > trinity.txt
fcmass --str a -v fileshareset hk_classes pan torsocks wv2 ERROR: origin file for fileshareset not found. ERROR: origin file for hk_classes not found. info: origin: /var/ftp/pub/Linux/fedora/linux/development/rawhide/Everything/source/tree/Packages/p/pan-0.140-1.fc25.src.rpm info: parent: /var/ftp/pub/Linux/ALT/fcimport/Sisyphus/files/SRPMS/pan-0.140-alt1_1.src.rpm INFO: SourceAnalyzer: nothing in pkg-config provides webkitgtk-1.0. SourceAnalyzer: some deps weren't found. Is DistroMap database outdated? Записан: ./OUT/pan-0.140-alt2_1.src.rpm ---*--- info: origin: /var/ftp/pub/Linux/fedora/linux/development/rawhide/Everything/source/tree/Packages/t/torsocks-2.1.0-3.fc24.src.rpm info: parent: /var/ftp/pub/Linux/ALT/Sisyphus/files/SRPMS/torsocks-2.2.0-alt1.gite389c999.src.rpm note: downgrade detected; increasing serial to 1 Записан: ./OUT/torsocks-2.1.0-alt1_3.src.rpm
/var/ftp/pub/Linux/ALT/Sisyphus/files/SRPMS/wv2-0.4.2-alt3.src.rpm
/var/ftp/pub/Linux/ALT/5.1/branch/files/SRPMS/hk_classes-0.8.3-alt3.src.rpm
fcmass --origin TRINITY/trinity/rpm/f23/trinity-r14/SRPMS `cat trinity.txt`
fcmass --origin TRINITY/trinity/rpm/f23/trinity-r14/SRPMS --hook set_trinity_version.pl --macrodef tde_version=14.0.3 `cat trinity.txt` 2>&1 | tee import.log
cp hooks/template.pl set_trinity_version.pl
#!/usr/bin/perl -w push @SPECHOOKS, sub { my ($spec, $parent) = @_; $spec->get_section('package',)->unshift_body('%define tde_version 14.0.3'."\n"); }; __END__