-#
# TODO:
# - make some README.PLD with system features description
#
-%bcond_without diet
+%bcond_without diet # compile binaries with diet cc
%define iana_etc_ver 2.30
Summary: Simple setup files
%define _sbindir /sbin
%undefine with_ccache
+%ifnarch x32
+# not on x32, see 02e9d04
+%define specflags -Os
+%endif
+
%description
This package contains a number of very important configuration and
setup files, including the passwd, group, profile files, etc.
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
-cp -a iana-etc/{services,protocols} $RPM_BUILD_ROOT%{_sysconfdir}
+cp -p iana-etc/{services,protocols} $RPM_BUILD_ROOT%{_sysconfdir}
# not packaged
%{__rm} $RPM_BUILD_ROOT%{_sysconfdir}/{netgroup,suid_profile}
%clean
rm -rf $RPM_BUILD_ROOT
+# trigger to ensure /etc/mtab is symlink
%triggerprein -p /sbin/postshell -- %{name} < %{version}-%{release}
-/bin/sh -c '/usr/bin/test -L /etc/mtab || /bin/mv -v /etc/mtab /etc/mtab.rpmsave'