On 04/08/16 16:31, pronix pronix wrote: > hello > thanks for help. but i still not understand why i can't build rpm. > in foreman git repo i build archive ```git archive > --prefix=foreman-1.13.0/ HEAD | bzip2 -9 > foreman-1.13.0.tar.bz2 ``` > in foreman-packaging/foreman , branch rpm/develop , i call ```tito > release --scratch --arg source_dir=~/project/FOREMAN/foreman --dry-run > koji-foreman-nightly```
You should pick one method, not both. If you're generating a tarball by hand (git archive) then you should put it with the other sources (in foreman-packaging/foreman/) and run rpmbuild -bs to generate the SRPM (e.g. rpmbuild -bs --define "_sourcedir $PWD" foreman.spec). > but i got error > ``` > Will release to the following targets: koji-foreman-nightly > Releasing to target: koji-foreman-nightly > Working in: /tmp/tito/release-foreman4yqcv_ok > Building release in Koji... > WARNING: foreman not specified in whitelist for foreman-nightly-nonscl-rhel7 > Package *NOT* submitted to Koji. > Fetching sources... > rake aborted! > Errno::ENOENT: No such file or directory @ rb_sysopen - > /home/dima/project/FOREMAN/foreman/config/settings.yaml If you're using the tito ... koji-foreman-nightly command against a git checkout then the checkout has to be set up - create settings.yaml and install the dependencies via Bundler. It's only really useful if you have a git checkout of Foreman already, else use a release tarball or create one yourself. -- Dominic Cleal [email protected] -- You received this message because you are subscribed to the Google Groups "Foreman users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/foreman-users. For more options, visit https://groups.google.com/d/optout.
