Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37842463
en ru br
ALT Linux repos
5.0: 3.1c-alt1
4.1: 3.1c-alt1
4.0: 3.1c-alt1
3.0: 3.1a-alt3

Group :: Editors
RPM: emacs-template

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Version: 3.1a
Release: alt3
Name: emacs-template
Copyright: GPL
Group: Editors
Url: http://emacs-template.sourceforge.net/
Summary: Template package for Emacs
Summary(ru_RU.CP1251): Генерация файлов из шаблонов для Emacs

Source: template-%{version}.tar.gz
Source1: template-emacs.el

BuildArch: noarch
Requires: emacs-common

# Automatically added by buildreq on Thu Aug 05 2002

BuildRequires: emacs-common

%description
When you create a new file with Emacs, package Template supplies an initial
buffer content via a template: a file with normal text and expansion
forms. There is a menu to easily create such templates. You can also use new
commands to decorate comments and update the buffer contents.

%description -l ru_RU.CP1251
Данный пакет позволяет создавать файлы на основе шаблонов.

%prep
%setup -n template

%build
cd lisp
for i in *.el ; do
       emacs -batch --eval "(progn
       (setq load-path (append (list \".\")  load-path))
       (byte-compile-file \"$i\"))"
done
cd ..

%install
mkdir -p $RPM_BUILD_ROOT%{_emacslispdir}/
install -m 644 lisp/*.el* $RPM_BUILD_ROOT%{_emacslispdir}/

mkdir -p $RPM_BUILD_ROOT%{_datadir}/emacs/etc/template/
install -m 644 templates/*.tpl* $RPM_BUILD_ROOT%{_datadir}/emacs/etc/template/

mkdir -p $RPM_BUILD_ROOT/etc/emacs/site-start.d
install -m 644 %SOURCE1 $RPM_BUILD_ROOT/etc/emacs/site-start.d/template.el

%files
%defattr(-, root, root)
%doc README INSTALL
%{_emacslispdir}/*.el*
%dir %{_datadir}/emacs/etc/template/
%{_datadir}/emacs/etc/template/*
/etc/emacs/site-start.d/*

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin