����� ������������ OpenNet.ru / ������ "������������ ��� Linux" / ������

10.6.1 �������� �������

������������ ����������� ��������� ��� ��������, ��� �� ��������� ������ ������. ��������:

%{?macro_to_test: expression}

��� ������ ������� RPM ���������� ��������� expression, ���� ������ macro_to_test ����������. ���� ������ �� ����������, ������ �� ����� ��������. �������� ����� ����� ������������ ����������. ���� � �������� ������ ������ - ���� !, ��������� ����� ���������������, ���� ������ �� ����������:

%{!?macro_to_test: expression}

� ������ ������� ��������� expression ����� ����������, ���� ������ macro_to_test �� ����������.

��� ������������� ��������� ����� ���������� � ��������� ������ ������� ��� ���������� �������. ���� ������ ����������, RPM ���������� �������� �������, ���� �� ����������, RPM �� ����� ������ ������. ��������:

%build

./configure %{?_with_ldap}

make

� ���� ������, ���� ������ _with_ldap ����������, �������� ����� ������� ����� ����������� � ��������� ������ � ������ ./configure � �������� ���������. ���� ������ _with_ldap �� ����������, � ������ �� ����� ����������� ������� ����������. ��� ������ ������ ����������� ��� ��������� ������ ��� ��������� ������.

����� - �������� �����
����� - �������� ������
����������


����� ������������ �� OpenNet.ru