.
OBS-URL: https://build.opensuse.org/package/show/editors/emacs?expand=0&rev=116
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user