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

Help needed with macros



Hi list,

RHAS3, soon 4, rpm-4.2.3-10.

I've got to the stage where I install just about all of my extra stuff
and utilities using spec files and tarballs. Red Hat isn't very good at
supplying utility upgrades. In fact, the only package that I haven't yet
installed as an rpm is OpenLDAP - mine's 2.3.7.

The only useful OpenLDAP 2.2/2.3 spec file I've found to use as an
example is Mandriva's (Mandrake Software). Sassing it out, I've found a
few macros that aren't listed in the Maximum or Guru Labs HOWTOs. Here's
an example, line 48/1719 - e.g., quite near the top:

%{?_with_system: %global build_system 1}
%{?_without_system: %global build_system 0}
%{?_with_modules: %global build_modules 1}
%{?_without_modules: %global build_modules 0}
%{?_with_slp: %global build_slp 1}
%{?_without_slp: %global build_slp 0}

Where can I go to learn more about what "%{?_with[out]_" and "%global"
do? Are these particular to Mandriva's version of rpm?

I guess I can cheese my own spec file without knowing, but knowing would
be nice :)

--Tonni

-- 
mail: tonye billy demon nl
http://www.billy.demon.nl


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