My words on free/open source software and Mac

Monday, April 14, 2008

RPM Spec: conditional build based on host distro

When writing spec of RPM, often you need to write some special instructions that are needed only on some distros or versions, but not all. You can use this:

# Do something for FC4 and beyond.
%if 0%{?fedora} >= 4
# ...
%endif

0 comments:

About Me

My Photo
Santa Cruz, California, United States

Blog Archive