dist tags, build targets, and sparcs!

Tom 'spot' Callaway tcallawa at redhat.com
Mon May 9 19:39:24 UTC 2005


Thanks to the fine work of Ignacio Vazquez-Abrams and Jeremy Katz, we've
got some more of this tricky packaging stuff figured out.

To get all this goodness, you need to make sure you've got the latest
copy of common/ from CVS. Doing a cvs update in your checkout dir should
grab it.

1. dist tags:
Dist tags are now very very easy. So easy, even I can use it properly.
Here is how you use it.

Take your:
   Release: 5. 

Append %{?dist} to the end. It should now look like: 
   Release: 5%{?dist}

Then, run: make tag.

Thats all. The buildsystem defines %{dist} (and helper variables such as
%{fedora}) based on the cvs branch that you're sitting in. The same
thing is true for make build.

No more wacky macros. No more shell scripts. No more hardcoding values
into spec files.

The Dist Tag documentation has been updated to reflect this:
http://www.fedoraproject.org/wiki/DistTag

You don't have to use the dist tag if you don't want to, but now its
very easy to use.

2. build targets

If you're in the FC-3 directory of your package checkout, you can just
type: make build, and it will do the right thing. Same thing goes for
devel, or any other cvs branch. The make build TARGET= syntax still
works, but its no longer necessary. (If you do something stupid like run
make build TARGET=devel in your FC-3 directory, it will do bad things,
so don't do that.)

3. sparcs

No, not yet. Just seeing if anyone reads this far. :)

~spot
-- 
Tom "spot" Callaway: Red Hat Sales Engineer || GPG Fingerprint: 93054260
Fedora Extras Steering Committee Member (RPM Standards and Practices)
Aurora Linux Project Leader: http://auroralinux.org
Lemurs, llamas, and sparcs, oh my!




More information about the fedora-extras-list mailing list