SHA256
3
0
forked from pool/cmake

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

Add cmake-mode.el without BuildRequires: emacs

This should not create a build loop as the first sr.
Also, cmake now builds on Leap 42 and SLE 12

OBS-URL: https://build.opensuse.org/request/show/678963
OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/cmake?expand=0&rev=353
This commit is contained in:
Simon Lees 2019-02-25 23:32:48 +00:00 committed by Git OBS Bridge
parent 92161e1afb
commit 9063369946
2 changed files with 19 additions and 0 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Feb 25 13:53:26 UTC 2019 - Dan Čermák <dcermak@suse.com>
- 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

View File

@ -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