rpms/emacs-lua/F-7 emacs-lua.spec, NONE, 1.1 lua-init.el, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Tim Niemueller (timn) fedora-extras-commits at redhat.com
Mon Jan 28 22:50:38 UTC 2008


Author: timn

Update of /cvs/pkgs/rpms/emacs-lua/F-7
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv3892/F-7

Modified Files:
	.cvsignore sources 
Added Files:
	emacs-lua.spec lua-init.el 
Log Message:
Initial import of emacs-lua to F-7 branch


--- NEW FILE emacs-lua.spec ---

%define pkg lua
%define pkgname Lua major mode

# If the emacs-el package has installed a pkgconfig file, use that to determine
# install locations and Emacs version at build time, otherwise set defaults.
%if %($(pkg-config emacs) ; echo $?)
%define emacs_version 22.1
%define emacs_lispdir %{_datadir}/emacs/site-lisp
%define emacs_startdir %{_datadir}/emacs/site-lisp/site-start.d
%else
%define emacs_version %(pkg-config emacs --modversion)
%define emacs_lispdir %(pkg-config emacs --variable sitepkglispdir)
%define emacs_startdir %(pkg-config emacs --variable sitestartdir)
%endif

Name:           emacs-%{pkg}
Version:        20071122
Release:        5%{?dist}
Summary:        Lua major mode for GNU Emacs

Group:          Applications/Editors
License:        GPLv2+
URL:            http://lua-mode.luaforge.net
Source0:        http://luaforge.net/frs/download.php/2724/lua-mode-20071122.tar.gz
Source1:        lua-init.el
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch:      noarch

BuildRequires:  emacs(bin), emacs-el >= 22.1-2
BuildRequires:  pkgconfig
Requires:       emacs(bin) >= %{emacs_version}

%description
A GNU Emacs major mode for editing Lua code.

%package el
Summary:  Elisp source files for %{pkgname} under GNU Emacs
Group:    Applications/Editors
Requires: emacs-lua = %{version}-%{release}

%description el
This package contains the elisp source files for %{pkgname}
under GNU Emacs. You do not need to install this package to run
%{pkgname}. Install the emacs-%{pkg} package to use %{pkgname}
with GNU Emacs.

%prep
%setup -q -c


%build
emacs -batch -f batch-byte-compile lua-mode.el


%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{emacs_lispdir}
mkdir -p $RPM_BUILD_ROOT%{emacs_startdir}
install -p -m 0644 lua-mode.el $RPM_BUILD_ROOT%{emacs_lispdir}
install -p -m 0644 lua-mode.elc $RPM_BUILD_ROOT%{emacs_lispdir}
install -p -m 0644 %{SOURCE1} $RPM_BUILD_ROOT%{emacs_startdir}


%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root,-)
%{emacs_startdir}/lua-init.el
%{emacs_lispdir}/lua-mode.elc

%files el
%defattr(-,root,root,-)
%{emacs_lispdir}/lua-mode.el

%changelog
* Sun Jan 27 2008 Tim Niemueller <timn at fedoraprojdect.org> 20071122-5
- dropped XEmacs support, an ancestor of lua-mode is in xemacs-packages-extra
- dropped patch, was only needed for XEmacs
- fixed errorneous require, must be %{emacs_version} not just emacs_version.
- removed some double-slashes in paths

* Sat Jan 26 2008 Tim Niemueller <timn at fedoraprojdect.org> 20071122-4
- el packages require respective base package
- Use cp -p in build section to preserve timestamp

* Tue Jan 22 2008 Tim Niemueller <timn at fedoraprojdect.org> 20071122-3
- Use full templates, pkgconfig is not installed by default in buildroot

* Mon Jan 21 2008 Tim Niemueller <timn at fedoraprojdect.org> 20071122-2
- BR pkgconfig
- Excplicitly BR the minimum versions of emacs-el and xemacs-devel that
  provide the pkgconfig files

* Fri Jan 18 2008 Tim Niemueller <timn at fedoraprojdect.org> 20071122-1
- Initial SPEC file



--- NEW FILE lua-init.el ---
; Lua major mode, init file by Tim Niemueller [www.niemueller.de], GPLv2+
; Add mode to automatically recognized modes
(setq auto-mode-alist (cons '("\\.lua$" . lua-mode) auto-mode-alist))
(autoload 'lua-mode "lua-mode" "Lua editing mode." t)
; Turn on colorization by default
(add-hook 'lua-mode-hook 'turn-on-font-lock)
; Enable hideshow for Lua by default, does not work atm
; (add-hook 'lua-mode-hook 'hs-minor-mode)


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/emacs-lua/F-7/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	28 Jan 2008 16:04:31 -0000	1.1
+++ .cvsignore	28 Jan 2008 22:50:00 -0000	1.2
@@ -0,0 +1 @@
+lua-mode-20071122.tar.gz


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/emacs-lua/F-7/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	28 Jan 2008 16:04:31 -0000	1.1
+++ sources	28 Jan 2008 22:50:00 -0000	1.2
@@ -0,0 +1 @@
+8dab327eea4977ee47b1c0e85b6a6ad0  lua-mode-20071122.tar.gz




More information about the fedora-extras-commits mailing list