%global pkg mallard-mode %global pkgname Mallard mode Name: emacs-%{pkg} Version: 0.3.0 Release: 1%{?dist} Summary: Emacs major mode for editing Mallard pages Group: Applications/Editors License: GPLv3 and CC-BY-SA URL: https://github.com/jhradilek/emacs-mallard-mode Source0: https://github.com/jhradilek/emacs-mallard-mode/archive/v%{version}.tar.gz Source1: %{pkg}-init.el BuildArch: noarch BuildRequires: emacs emacs-el Requires: emacs(bin) >= %{_emacs_version} %description The %{name} package provides %{pkgname}, a major mode for editing Mallard pages in GNU Emacs. When enabled, this mode automatically loads the RELAX NG schema for the Mallard language, sets appropriate indentation rules, and enables automatic line wrapping. In addition, it provides a number of commands and key bindings that integrate it with the yelp-check utility in order to provide maximum comfort when working on Mallard files. %package el Summary: Source files for %{pkgname} under GNU Emacs Group: Applications/Editors Requires: %{name} = %{version}-%{release} %description el This package contains the elisp source files for use with %{pkgname}. %prep %setup -q %build %{_emacs_bytecompile} *.el %install install -pm 755 -d %{buildroot}%{_emacs_sitelispdir}/%{pkg}/ install -pm 755 -d %{buildroot}%{_emacs_sitestartdir} install -pm 644 %{pkg}.* %{buildroot}%{_emacs_sitelispdir}/%{pkg} install -pm 644 %{SOURCE1} %{buildroot}%{_emacs_sitestartdir} %files %doc COPYING README.markdown %dir %{_emacs_sitelispdir}/%{pkg} %{_emacs_sitelispdir}/%{pkg}/*.elc %{_emacs_sitestartdir}/%{pkg}-init.el %files el %{_emacs_sitelispdir}/%{pkg}/*.el %changelog * Mon Aug 26 2013 Jaromir Hradilek - 0.3.0-1 - Initial RPM release of version 0.3.0. * Wed Aug 21 2013 Paul W. Frields - 0-0.1git9ff2ec9d27 - Initial RPM release.