The rpmbuild allows to specify a target: https://docs.fedoraproject.org/ro/Fedora_Draft_Documentation/0.1/html/RPM_Guide/ch-rpmbuild.html#id617777
However creating package which will run on different distributions (or versions) will be tricky, as the binary will link with specific library version requirements. In such case it'll be better to create an rpm from our pre-build binaries (https://mmonit.com/monit/dist/binary/), which are universal for all linux distributions (we plan to create packages for various linux distributions and versions in the future). Regards, Martin > On 27 Jan 2016, at 02:05, admin-at-extremeshok-dot-com > <[email protected]> wrote: > > the rpmbuild, how can one specify for which version of rhel/centos and what > arch ? > > __________________________________. https://eXtremeSHOK.com > .__________________________________ > > On 26-Jan-16 9:57 PM, Bill Durant wrote: >> Great. Excellent. I will try that. Thank you. -Bill >> >> On 01/26/2016 11:55 AM, Martin Pala wrote: >>> Hi, >>> >>> you can build rpm from the source code release directly: >>> >>> rpmbuild -tb monit-5.15.tar.gz >>> >>> Regards, >>> Martin >>> >>> >>> >>>> On 26 Jan 2016, at 20:48, Bill Durant <[email protected]> wrote: >>>> >>>> Greetings: >>>> >>>> Is there a Redhat RPM available for the latest version of Monit (5.15)? >>>> >>>> Thanks, >>>> >>>> Bill >>>> >>>> >>>> -- >>>> To unsubscribe: >>>> https://lists.nongnu.org/mailman/listinfo/monit-general >> -- >> To unsubscribe: >> https://lists.nongnu.org/mailman/listinfo/monit-general > > > -- > To unsubscribe: > https://lists.nongnu.org/mailman/listinfo/monit-general -- To unsubscribe: https://lists.nongnu.org/mailman/listinfo/monit-general
