gzip -9nf README WARRANTY LICENSE DEVELOPERS-HINTS ChangeLog BUGS AUTHORS ANNOUNCE
-filelist=`find $RPM_BUILD_ROOT -type f ! -regex ".*ld-[0-9.]*so.*"`
-elfexelist=`echo $filelist | xargs -r file | awk '/ELF.*executable/ {print $1}' | cut -d: -f1`
-elfsharedlist=`echo $filelist | xargs -r file | awk '/LF.*shared object/ {print $1}' | cut -d: -f1`
-if [ -n "$elfexelist" ]; then
- strip --remove-section=.note --remove-section=.comment $elfexelist
-fi
-if [ -n "$elfsharedlist" ]; then
- strip --strip-unneeded --remove-section=.note --remove-section=.comment $elfsharedlist
-fi
-
-/sbin/chpax -p $RPM_BUILD_ROOT/%{_bindir}/wine
+%__spec_install_post
+%{__arch_install_post}
+%{__os_install_post}
+chpax -p $RPM_BUILD_ROOT%{_bindir}/wine
+%{nil}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig