This is a bad idea to remove the %{?dist} IMHO.
To generate a generic src.rpm, you should use the following command:
rpmbuild -ts tarball --define 'dist %{nil}'
or
rpmbuild -bs openmpi.spec --define 'dist %{nil}'
This can be put in the main Maikefile:
srpm: tarball_bz2
rpmbuild -ts openmpi-$(VERSION).tar.bz2 --define 'dist %{nil}'
And you should keep the %{?dist} is the release tag so when built, the rpm
is clearly identified for a specific distro.
My 2 cents.
Best regards,
PS: By the way, %{?dist} is not the arch, it's the distro tag.
AFAIK, the values for main distros I know are:
rhel6 => .el6
rhel7 => .el6
centos6 => .el6
centos7 => .el7.centos
fedora-# => .fc#
Mandriva => .mdv.r when .r is the release such as 2013.1
Mageia => ?
Olivier.
- Mail original -
> De: "Jeff Squyres (jsquyres)"
> À: "Open MPI Developers List"
> Envoyé: Jeudi 10 Juillet 2014 22:27:12
> Objet: Re: [OMPI devel] openmpi.spec
>
> Mike and I talked in IM. The results of our chat was Mike's commit:
>
> https://svn.open-mpi.org/trac/ompi/changeset/32205
>
>
> On Jul 10, 2014, at 9:57 AM, Mike Dubman
> wrote:
>
> >
> > Hi,
> > The following commit
> > https://svn.open-mpi.org/trac/ompi/changeset/32147 does some harm:
> >
> > the line 202 in the change causes openmpi.src.rpm to contain arch
> > in the rpm name, i.e. openmpi-1.8.2a1-1.el6.src.rpm
> >
> > The src.rpm should be arch agnostic.
> >
> > what do you think?
> >
> > Thanks
> > ___
> > devel mailing list
> > de...@open-mpi.org
> > Subscription: http://www.open-mpi.org/mailman/listinfo.cgi/devel
> > Link to this post:
> > http://www.open-mpi.org/community/lists/devel/2014/07/15097.php
>
>
> --
> Jeff Squyres
> jsquy...@cisco.com
> For corporate legal information go to:
> http://www.cisco.com/web/about/doing_business/legal/cri/
>
> ___
> devel mailing list
> de...@open-mpi.org
> Subscription: http://www.open-mpi.org/mailman/listinfo.cgi/devel
> Link to this post:
> http://www.open-mpi.org/community/lists/devel/2014/07/15103.php
>