linux - How to create RPM package with GitHub repository -


i'd create rpm package depends on github repository.

if run command standalone:

yum localinstall https://github.com/matthewmueller/giftbox/blob/master/rpm/monit.rpm 

it'll work fine. if try make dependency of rpm package (using fpm), errors out with:

--> processing dependency: https://github.com/matthewmueller/giftbox/raw/release-2017-08-21-08-33/rpm/monit.rpm package: giftbox-2017_08_21_08_33-1.x86_64 --> finished dependency resolution error: package: giftbox-2017_08_21_08_33-1.x86_64 (/giftbox)            requires: https://github.com/matthewmueller/giftbox/raw/release-2017-08-21-08-33/rpm/monit.rpm  try using --skip-broken work around problem  try running: rpm -va --nofiles --nodigest 

here's command i'm running generate rpm package:

@fpm \         --input-type=dir \         --output-type=rpm \         --name $(name) \         --version $(version) \         --architecture x86_64 \         --package "$(dir)/rpm/$(name)-$(version).rpm" \         --rpm-os linux \         --template-scripts \         --after-install "$(dir)/postinstall.sh" \         --after-upgrade "$(dir)/postupgrade.sh" \         --before-remove "$(dir)/preremove.sh" \         --depends "procps" \         --depends "util-linux" \         --depends "initscripts" \         --depends "$(ghbase)/monit.rpm" \         --force \             "$(dir)/init.sh"="/etc/init.d/giftbox" 

any appreciated. thanks!

this not possible. requires: some_package can contains package name.

yum install http://some.url/some.package.rpm feature of yum, download file , install. cannot use url in requires.

what can do: * create rpm called e.g. my-repo.rpm contains repo file (/etc/yum.repos.d) enable repository monit.rpm located * can put requires: monit giftbox. * yum install my-repo.rpm , in second step should able 'yum install giftbox`


Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -