SHA256
3
0
forked from pool/cmake

Accepting request 673889 from home:dancermak:branches:devel:tools:building

Install cmake-mode.el with cmake

OBS-URL: https://build.opensuse.org/request/show/673889
OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/cmake?expand=0&rev=348
This commit is contained in:
Martin Pluskal 2019-02-12 14:17:26 +00:00 committed by Git OBS Bridge
parent 8161a97109
commit 5aa0355da1
2 changed files with 15 additions and 1 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Feb 12 13:05:51 UTC 2019 - Dan Čermák <dcermak@suse.com>
- Install cmake-mode.el
-------------------------------------------------------------------
Fri Feb 08 14:03:11 UTC 2019 - seanlew@opensuse.org

View File

@ -40,6 +40,7 @@ Patch5: system-libs.patch
# Search for python interpreters from newest to oldest rather then picking up /usr/bin/python as first choice
Patch7: feature-suse-python-interp-search-order.patch
Patch8: c17-default.patch
BuildRequires: emacs-nox
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: libarchive-devel >= 3.0.2
@ -117,6 +118,13 @@ do
ln -s ../../%{name}/completions/$(basename $f) %{buildroot}%{_datadir}/bash-completion/completions
done
# cmake-mode.el
%define cmake_mode_el %{_datadir}/emacs/site-lisp/%{name}-mode.el
install -D -p -m 0644 Auxiliary/cmake-mode.el %{buildroot}%{cmake_mode_el}
/usr/bin/emacs-nox -batch --no-init-file --no-site-file \
--eval '(progn (setq load-path (cons "." load-path)))' -f batch-byte-compile \
%{buildroot}%{cmake_mode_el}
%fdupes %{buildroot}%{_datadir}/cmake
%check
@ -143,5 +151,6 @@ done
%{_datadir}/aclocal/cmake.m4
%doc %{_docdir}/%{name}
%{_datadir}/bash-completion
%{cmake_mode_el}*
%changelog