File emacs-yaml-mode.spec of Package emacs-yaml-mode

%define tarname yaml-mode-release
Name:		emacs-yaml-mode
Version:	0.0.10
Release:	1
Summary:	Simple major mode to edit YAML file for emacs
License:	GPL-2.0+
Group:		Development/Languages/Python
Url:		https://github.com/yoshiki/yaml-mode
Source:		%{tarname}-%{version}.tar.gz
Patch0:		yaml-mode-destdir.patch
BuildArch:	noarch
BuildRequires:	emacs
Requires:	emacs
BuildRoot:	%{_tmppath}/%{name}-%{version}-build

%description
yaml-mode is major mode for emacs to edit YAML files.


%prep
%setup -q -n %{tarname}-%{version}
%patch0


%build
make bytecompile


%install
%__install -d -m 755 %{buildroot}%{_datadir}/emacs/site-lisp
make PREFIX=%{_prefix} DESTDIR=%{buildroot} install


%clean
rm -rf %{buildroot}


%files
%defattr(-,root,root)
%doc README Changes
%{_datadir}/emacs/site-lisp/*


%changelog