2013-05-21 14:54:29 +00:00
committed by Git OBS Bridge
parent cf25a561a8
commit 9208ea897d
2 changed files with 14 additions and 3 deletions

View File

@@ -181,6 +181,7 @@ This package contains all the Info files for GNU Emacs. These files can
be read online with GNU Emacs. They describe Emacs and some of its
modes.
%if 0%{suse_version} >= 1300
%package -n etags
Summary: Generate Tag Files for Use with Emacs
Group: Development/Tools/Navigators
@@ -192,6 +193,7 @@ Provides: ctags:/usr/bin/etags
ETags generates tag files from source code in Pascal, Cobol, Ada, Perl,
LaTeX, Scheme, Emacs Lisp/Common Lisp, Postscript, Erlang, Python, Prolog,
and most assembler-like syntaxes.
%endif
%prep
%setup -q -b 2
@@ -555,6 +557,7 @@ cp etc/images/icons/hicolor/32x32/apps/emacs.png $RPM_SOURCE_DIR/emacs.png
%if 0%{suse_version} >= 1300
touch %{buildroot}%{_bindir}/ctags %{buildroot}%{_mandir}/man1/ctags.1.gz
%else
rm -vf %{buildroot}%{_bindir}/etags
rm -vf %{buildroot}%{_bindir}/gnuctags
rm -vf %{buildroot}%{_mandir}/man1/gnuctags.1*
%endif
@@ -578,6 +581,7 @@ for f in %info_files; do
%install_info_delete --info-dir=%{_infodir} %{_infodir}/$f.gz
done
%if 0%{suse_version} >= 1300
%post -n etags
test -L %{_bindir}/ctags || rm -f %{_bindir}/ctags
update-alternatives --install %{_bindir}/ctags ctags %{_bindir}/gnuctags 10 \
@@ -588,6 +592,7 @@ update-alternatives --auto ctags
if [ $1 -eq 0 ]; then
update-alternatives --remove ctags %{_bindir}/gnuctags
fi
%endif
%files -f site-lisp.lst -n emacs
%defattr(-, root, root)