# TODO:
# - make some README.PLD with system features description
-# - use joinpasswd in post
+%bcond_with pp # disable stack protector (vide dietlibc.spec)
+
Summary: Simple setup files
Summary(de): Einfache Setup-Dateien
Summary(es): Varios archivos básicos de configuración
Summary(pt_BR): Vários arquivos básicos de configuração
Summary(tr): Basit kurulum dosyalarý
Name: setup
-Version: 2.4.4
-Release: 1
+Version: 2.4.5
+Release: 3
License: Public Domain, partially BSD-like
Group: Base
Source0: http://piorun.ds.pg.gda.pl/~blues/SOURCES/%{name}-%{version}.tar.bz2
-# Source0-md5: 74484812aa2e01e5b2fa5c4e8276969a
-BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+# Source0-md5: 620d450c5bbc6097fafd3bbfc798ece7
+BuildRequires: dietlibc-static
AutoReqProv: no
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define _sbindir /sbin
%build
%{__make} \
- OPT_FLAGS="%{rpmcflags}" \
- CC=%{__cc}
+ OPT_FLAGS="%{rpmcflags} %{?with_pp:-fno-stack-protector}" \
+ CC="diet %{__cc}"
%install
rm -rf $RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
-#%triggerin -- %{name} < %{version}-%{release}
-#[ "$1" = "1" ] && exit 0
-#[ ! -e /etc/group.rpmnew ] && exit 0
-#cat /etc/group.rpmnew | while read GROUPLINE ; do
-# GR="`echo $GROUPLINE | cut -f 1 -d ':'`"
-# if ! grep -q "^$GR" /etc/group ; then
-# echo "$GROUPLINE" >> /etc/group
-# fi
-#done
+%triggerpostun -p %{_sbindir}/joinpasswd -- %{name} < %{version}-%{release}
%files
%defattr(644,root,root,755)