Обсуждение:Ports/arm/Experience

Материал из ALT Linux Wiki
Версия от 21:55, 7 февраля 2016; MichaelShigorin (обсуждение | вклад) (убрал в bootstrap то, что годилось; остальное надо переделать/выкинуть)
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)

%def_without bootstrap

ушло в bootstrap

всё, что ниже -- страх и ужас, годный на надёргивание отдельных строчек; переработать нафиг

Кусочки кода в процессе получения findutils-4.6.0-alt1.1.e2k.rpm:

%def_without bootstrap
# ...
%if_with bootstrap
%def_enable selinux
%endif # bootstrap
# ...
%{?!_with_bootstrap:BuildRequires: makeinfo glibc-devel-static}
# ...
%if_without bootstrap
%package -n find-static
Summary: Static version of the GNU find
Group: File tools
Requires: %name = %version-%release

%description -n find-static
This package contains statically linked version of the GNU find program.
%endif
# ...
%check
%if_without bootstrap
%make_build -k check -C dynamic
%make_build -k check -C static
%endif
# ...
%if_without bootstrap
%_infodir/*.info*
%endif
# ...
%if_without bootstrap
%files -n find-static
%_bindir/find.static
%endif

%changelog
* Sat Jan 16 2016 Michael Shigorin <mike@altlinux.org> 4.6.0-alt1.1
- BOOTSTRAP:
  + don't build static version
  + disable selinux
  + disable tests