Re: rdma-core rpm for SuSE

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Le 03/08/2017 à 17:49, Bart Van Assche a écrit :
> On Thu, 2017-08-03 at 13:35 +0200, Johannes Thumshirn wrote:
>> On Thu, Aug 03, 2017 at 11:12:18AM +0000, Amrani, Ram wrote:
>>> Hi Jason,
>>> I see folders with rpm creating scripts for Debian and Red Hat.
>>> How is a SuSE rpm generated?
>> Please have a look at:
>> https://build.opensuse.org/package/show/science:HPC/rdma-core
> Hello Johannes,
>
> Sorry but my opinion is that users should not have to rely on out-of-tree
> patches to build an rdma-core RPM for SuSE systems. BTW, the script that I
> use myself to build a SuSE rdma-core RPM is as follows:
>
>
> #!/bin/bash
>
> rpmtopdir=$PWD/rpmbuilddir
> name=rdma-core
> version=$(sed -n 's/^Version:[[:blank:]]*//p' rdma-core.spec) &&
>     rm -rf "${rpmtopdir}" &&
>     mkdir -p "${rpmtopdir}"/{BUILD,RPMS,SOURCES,SPECS,SRPMS} &&
>     git archive --prefix "rdma-core-${version}/" --output "${rpmtopdir}/SOURCES/${name}-${version}.tgz" HEAD &&
>     rpmbuild --define="%_topdir ${rpmtopdir}" -ba ${name}.spec
>
>
> Bart.

Agreed.
We have a different spec file due to SUSE packaging policies, and some path differences but the default one works.
As this is new, I wanted to make sure it works well before submitting it.
With v15 coming out and the associated systemd/udev changes, I'll have to update the spec and validate it but once this is done I'll send a patch to this ML and get it upstreamed.

Nicolas

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux