From 5aa0355da1fd5a6046285c24fccfad6744d57d7c74e370b80dc35812e93cd617 Mon Sep 17 00:00:00 2001 From: Martin Pluskal Date: Tue, 12 Feb 2019 14:17:26 +0000 Subject: [PATCH] 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 --- cmake.changes | 5 +++++ cmake.spec | 11 ++++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/cmake.changes b/cmake.changes index fc0f779..59147c7 100644 --- a/cmake.changes +++ b/cmake.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Feb 12 13:05:51 UTC 2019 - Dan Čermák + +- Install cmake-mode.el + ------------------------------------------------------------------- Fri Feb 08 14:03:11 UTC 2019 - seanlew@opensuse.org diff --git a/cmake.spec b/cmake.spec index 257394e..7168c5c 100644 --- a/cmake.spec +++ b/cmake.spec @@ -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 @@ -129,7 +137,7 @@ done -E "(TestUpload|SimpleInstall|SimpleInstall-Stage2|CPackComponentsForAll-RPM-(default|OnePackPerGroup|IgnoreGroup|AllInOne)|CPack_RPM)" %files -%license Copyright.txt +%license Copyright.txt %doc README.rst %config %{_rpmconfigdir}/macros.d/macros.cmake %{_libexecdir}/rpm @@ -143,5 +151,6 @@ done %{_datadir}/aclocal/cmake.m4 %doc %{_docdir}/%{name} %{_datadir}/bash-completion +%{cmake_mode_el}* %changelog