File emacs-yaml-mode.spec of Package emacs-yaml-mode
#
# spec file for package emacs-yaml-mode
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define tarname yaml-mode
Name: emacs-yaml-mode
Version: 0.0.14
Release: 0
Summary: Simple major mode to edit YAML file for emacs
License: GPL-2.0-or-later
Group: Productivity/Text/Editors
URL: https://github.com/yoshiki/yaml-mode
Source: %{tarname}-%{version}.tar.gz
Patch0: yaml-mode-destdir.patch
BuildRequires: emacs >= 24.1
Requires: emacs >= 24.1
BuildArch: noarch
%description
yaml-mode is major mode for emacs to edit YAML files.
%prep
%setup -q -n %{tarname}-%{version}
%patch0
%build
make %{?_smp_mflags} bytecompile
%install
install -d -m 755 %{buildroot}%{_datadir}/emacs/site-lisp
make PREFIX=%{_prefix} DESTDIR=%{buildroot} install
%files
%doc README Changes
%{_datadir}/emacs/site-lisp/*
%changelog