Spec review (#225856)
This commit is contained in:
parent
d4f24eab12
commit
8c3d1296d1
9
gpm.spec
9
gpm.spec
@ -59,6 +59,7 @@ mouse support to text-based Linux applications.
|
|||||||
%patch6 -p1 -b .ac_package_version
|
%patch6 -p1 -b .ac_package_version
|
||||||
|
|
||||||
iconv -f iso-8859-1 -t utf-8 -o TODO.utf8 TODO
|
iconv -f iso-8859-1 -t utf-8 -o TODO.utf8 TODO
|
||||||
|
touch -c -r TODO TODO.utf8
|
||||||
mv -f TODO.utf8 TODO
|
mv -f TODO.utf8 TODO
|
||||||
|
|
||||||
rm -f configure
|
rm -f configure
|
||||||
@ -68,7 +69,7 @@ autoconf
|
|||||||
%build
|
%build
|
||||||
%configure
|
%configure
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
gcc %{?_smp_mflags} -o inputattach %{SOURCE2}
|
%__cc %{?_smp_mflags} -o inputattach %{SOURCE2}
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
@ -96,11 +97,12 @@ rm -rf %{buildroot}%{_mandir}
|
|||||||
%clean
|
%clean
|
||||||
rm -rf %{buildroot}
|
rm -rf %{buildroot}
|
||||||
|
|
||||||
%post -p /sbin/ldconfig
|
%post
|
||||||
%ifnarch s390 s390x
|
%ifnarch s390 s390x
|
||||||
/sbin/chkconfig --add gpm
|
/sbin/chkconfig --add gpm
|
||||||
%endif
|
%endif
|
||||||
/sbin/install-info %{_infodir}/gpm.info.gz %{_infodir}/dir
|
/sbin/install-info %{_infodir}/gpm.info.gz %{_infodir}/dir
|
||||||
|
/sbin/ldconfig
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
%ifnarch s390 s390x
|
%ifnarch s390 s390x
|
||||||
@ -111,12 +113,13 @@ fi
|
|||||||
%endif
|
%endif
|
||||||
/sbin/install-info %{_infodir}/gpm.info.gz --delete %{_infodir}/dir
|
/sbin/install-info %{_infodir}/gpm.info.gz --delete %{_infodir}/dir
|
||||||
|
|
||||||
%postun -p /sbin/ldconfig
|
%postun
|
||||||
%ifnarch s390 s390x
|
%ifnarch s390 s390x
|
||||||
if [ $1 -ge 1 ]; then
|
if [ $1 -ge 1 ]; then
|
||||||
/sbin/service gpm condrestart >/dev/null 2>&1
|
/sbin/service gpm condrestart >/dev/null 2>&1
|
||||||
fi
|
fi
|
||||||
%endif
|
%endif
|
||||||
|
/sbin/ldconfig
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
|
Loading…
Reference in New Issue
Block a user