Remove obsolete scriptlets
References: https://fedoraproject.org/wiki/Changes/RemoveObsoleteScriptlets Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
This commit is contained in:
parent
257028e5bd
commit
659dceda64
16
nano.spec
16
nano.spec
@ -16,8 +16,6 @@ BuildRequires: ncurses-devel
|
||||
BuildRequires: sed
|
||||
BuildRequires: texinfo
|
||||
Conflicts: filesystem < 3
|
||||
Requires(post): /sbin/install-info
|
||||
Requires(preun): /sbin/install-info
|
||||
|
||||
%description
|
||||
GNU nano is a small and friendly text editor.
|
||||
@ -55,20 +53,6 @@ install -m 0644 ./nanorc %{buildroot}%{_sysconfdir}/nanorc
|
||||
|
||||
%find_lang %{name}
|
||||
|
||||
%post
|
||||
if [ -f %{_infodir}/%{name}.info.gz ]; then
|
||||
/sbin/install-info %{_infodir}/%{name}.info.gz %{_infodir}/dir
|
||||
fi
|
||||
exit 0
|
||||
|
||||
%preun
|
||||
if [ $1 -eq 0 ]; then
|
||||
if [ -f %{_infodir}/%{name}.info.gz ]; then
|
||||
/sbin/install-info --delete %{_infodir}/%{name}.info.gz %{_infodir}/dir
|
||||
fi
|
||||
fi
|
||||
exit 0
|
||||
|
||||
%files -f build/%{name}.lang
|
||||
%doc AUTHORS COPYING ChangeLog INSTALL NEWS README THANKS TODO
|
||||
%doc build/doc/sample.nanorc
|
||||
|
Loading…
Reference in New Issue
Block a user