diff --git a/cmake.changes b/cmake.changes index cce50c1..27f1be9 100644 --- a/cmake.changes +++ b/cmake.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Feb 25 13:53:26 UTC 2019 - Dan Čermák + +- Install cmake-mode.el + * remove a left over .orig file on Leap <= 42.3 and SLE 12 <= SP3 + ------------------------------------------------------------------- Wed Feb 20 15:52:37 UTC 2019 - schwab@suse.de diff --git a/cmake.spec b/cmake.spec index 21fd753..21a532d 100644 --- a/cmake.spec +++ b/cmake.spec @@ -116,6 +116,17 @@ 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} +rm %{buildroot}%{_datadir}/%{name}/editors/emacs/cmake-mode.el + +# SLE12 or OpenSUSE Leap 42 +%if 0%{?suse_version} == 1315 +# remove left over orig file +rm %{buildroot}%{_datadir}/%{name}/Modules/FindPythonInterp.cmake.orig +%endif + %fdupes %{buildroot}%{_datadir}/cmake %check @@ -142,5 +153,7 @@ done %{_datadir}/aclocal/cmake.m4 %doc %{_docdir}/%{name} %{_datadir}/bash-completion +%{cmake_mode_el} +%dir %{dirname:%{cmake_mode_el}} %changelog