diff --git a/gpm.spec b/gpm.spec index 47a853a..7263476 100644 --- a/gpm.spec +++ b/gpm.spec @@ -59,6 +59,7 @@ mouse support to text-based Linux applications. %patch6 -p1 -b .ac_package_version iconv -f iso-8859-1 -t utf-8 -o TODO.utf8 TODO +touch -c -r TODO TODO.utf8 mv -f TODO.utf8 TODO rm -f configure @@ -68,7 +69,7 @@ autoconf %build %configure make %{?_smp_mflags} -gcc %{?_smp_mflags} -o inputattach %{SOURCE2} +%__cc %{?_smp_mflags} -o inputattach %{SOURCE2} %install @@ -96,11 +97,12 @@ rm -rf %{buildroot}%{_mandir} %clean rm -rf %{buildroot} -%post -p /sbin/ldconfig +%post %ifnarch s390 s390x /sbin/chkconfig --add gpm %endif /sbin/install-info %{_infodir}/gpm.info.gz %{_infodir}/dir +/sbin/ldconfig %preun %ifnarch s390 s390x @@ -111,12 +113,13 @@ fi %endif /sbin/install-info %{_infodir}/gpm.info.gz --delete %{_infodir}/dir -%postun -p /sbin/ldconfig +%postun %ifnarch s390 s390x if [ $1 -ge 1 ]; then /sbin/service gpm condrestart >/dev/null 2>&1 fi %endif +/sbin/ldconfig %files %defattr(-,root,root,-)