Re: Conditional based on _vendor

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

 



On Friday, 31 December 2004, at 01:03:15 (+0000),
Kenneth Porter wrote:

> I note that /usr/lib/rpm/redhat/macros contains a definition for
> _vendor of "redhat". What's the value of this variable with other
> distros? Does anyone have an example of a spec file that uses this
> to package differently for different distros?
> 
> I'm finding a few tarballs (subversion, ntop) containing several
> spec files, one per distro, and I'd like to help the upstream guys
> merge them so one can build with "rpmbuild -ta", without extracting
> a distro-specific spec file.

Mezzanine does this for specgen.  The spec files it generates contain
the following lines:

Release: 1%{?_vendorsuffix:.%{_vendorsuffix}}
Packager: %{?_packager:%{_packager}}%{!?_packager:%{_vendor}}
Vendor: %{?_vendorinfo:%{_vendorinfo}}%{!?_vendorinfo:%{_vendor}}
Distribution: %{?_distribution:%{_distribution}}%{!?_distribution:%{_vendor}}

You can do similar things with DistTag:, Dag's %{dist}, etc.

Michael

-- 
Michael Jennings (a.k.a. KainX)  http://www.kainx.org/  <mej@xxxxxxxxx>
n + 1, Inc., http://www.nplus1.net/       Author, Eterm (www.eterm.org)
-----------------------------------------------------------------------
 "Overflow on /dev/null.  Please empty the bit bucket."     -- fortune

_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux