]> git.pld-linux.org Git - packages/setup.git/blobdiff - setup.spec
- s/mnt/media/ in fstab
[packages/setup.git] / setup.spec
index 185a9f64d47eec97e249474f99062ade08ae6620..f5f5e5512156c8e30e67eef1f7248b5a99c9f365 100644 (file)
@@ -1,6 +1,7 @@
 # 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
@@ -10,14 +11,15 @@ Summary(pl):        Podstawowe pliki systemu Linux
 Summary(pt_BR):        Vários arquivos básicos de configuração
 Summary(tr):   Basit kurulum dosyalarý
 Name:          setup
-Version:       2.4.4
-Release:       1.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
 
@@ -60,8 +62,8 @@ dosyalar
 
 %build
 %{__make} \
-       OPT_FLAGS="%{rpmcflags}" \
-       CC=%{__cc}
+       OPT_FLAGS="%{rpmcflags} %{?with_pp:-fno-stack-protector}" \
+       CC="diet %{__cc}"
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -71,17 +73,7 @@ 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
-
-%post  -p %{_sbindir}/joinpasswd
+%triggerpostun -p %{_sbindir}/joinpasswd -- %{name} < %{version}-%{release}
 
 %files
 %defattr(644,root,root,755)
This page took 0.066399 seconds and 4 git commands to generate.