- added post and preun sections as written on
http://fedoraproject.org/wiki/Packaging/ScriptletSnippets#head-47896da5 fb2662d75deefeb9ba75145a398515db - fix rpmlint errors
This commit is contained in:
parent
2f8fbc9ef2
commit
958f79b4ad
16
mtools.spec
16
mtools.spec
@ -2,7 +2,7 @@ Summary: Programs for accessing MS-DOS disks without mounting the disks
|
|||||||
Name: mtools
|
Name: mtools
|
||||||
Version: 3.9.11
|
Version: 3.9.11
|
||||||
Release: 2.1%{?dist}
|
Release: 2.1%{?dist}
|
||||||
License: GPlv2+
|
License: GPLv2+
|
||||||
Group: Applications/System
|
Group: Applications/System
|
||||||
Source: http://mtools.linux.lu/mtools-%{version}.tar.bz2
|
Source: http://mtools.linux.lu/mtools-%{version}.tar.bz2
|
||||||
Url: http://mtools.linux.lu/
|
Url: http://mtools.linux.lu/
|
||||||
@ -48,6 +48,14 @@ find $RPM_BUILD_ROOT -name "floppyd*" -exec rm {} \;
|
|||||||
%clean
|
%clean
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
|
%post
|
||||||
|
/sbin/install-info %{_infodir}/%{name}.info %{_infodir}/dir || :;
|
||||||
|
|
||||||
|
%preun
|
||||||
|
if [ "$1" -eq 0 ]; then
|
||||||
|
/sbin/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir || :;
|
||||||
|
fi
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%config(noreplace) /etc/mtools.conf
|
%config(noreplace) /etc/mtools.conf
|
||||||
@ -58,8 +66,8 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Mon Jan 14 2008 Adam Tkac <atkac redhat com> 3.9.11-2.1
|
* Mon Jan 14 2008 Adam Tkac <atkac redhat com> 3.9.11-2.1
|
||||||
- removed spurious post a preun sections whose installed
|
- corrected post and preun sections (#428478)
|
||||||
/usr/share/info/dir.gz file (#428478)
|
- fix rpmlint errors
|
||||||
- start use autoreconf
|
- start use autoreconf
|
||||||
|
|
||||||
* Wed Aug 22 2007 Adam Tkac <atkac redhat com> 3.9.11-2
|
* Wed Aug 22 2007 Adam Tkac <atkac redhat com> 3.9.11-2
|
||||||
@ -188,7 +196,7 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
* Sat Jun 17 2000 Trond Eivind Glomsrod <teg@redhat.com>
|
* Sat Jun 17 2000 Trond Eivind Glomsrod <teg@redhat.com>
|
||||||
- specify ownership
|
- specify ownership
|
||||||
|
|
||||||
* Wed Jun 07 2000 Trond Eivind Glomsrød <teg@redhat.com>
|
* Wed Jun 07 2000 Trond Eivind Glomsrod <teg@redhat.com>
|
||||||
- Version 3.9.7
|
- Version 3.9.7
|
||||||
- use %%{_mandir}, %%{_makeinstall}, %%configure, %%makeinstall
|
- use %%{_mandir}, %%{_makeinstall}, %%configure, %%makeinstall
|
||||||
and %%{_tmppath}
|
and %%{_tmppath}
|
||||||
|
Loading…
Reference in New Issue
Block a user