[erlang-lfe] Initial commit (Review Request in rhbz #639278)

Peter Lemenkov peter at fedoraproject.org
Mon Nov 15 14:40:19 UTC 2010


commit eacd06df0a31519b6f799958b2f56a40b338f98e
Author: Peter Lemenkov <lemenkov at gmail.com>
Date:   Mon Nov 15 17:40:11 2010 +0300

    Initial commit (Review Request in rhbz #639278)
    
    Signed-off-by: Peter Lemenkov <lemenkov at gmail.com>

 .gitignore                                       |    1 +
 erlang-lfe-0001-No-such-option-for-which-s.patch |   33 ++++++
 erlang-lfe.spec                                  |  135 ++++++++++++++++++++++
 sources                                          |    1 +
 4 files changed, 170 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..519e503 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/rvirding-lfe-v0.6.1-0-g1bcf461.tar.gz
diff --git a/erlang-lfe-0001-No-such-option-for-which-s.patch b/erlang-lfe-0001-No-such-option-for-which-s.patch
new file mode 100644
index 0000000..61eece4
--- /dev/null
+++ b/erlang-lfe-0001-No-such-option-for-which-s.patch
@@ -0,0 +1,33 @@
+From c046a8bf6468fddbb8d320f27b1bd4dbd6d086b0 Mon Sep 17 00:00:00 2001
+From: Peter Lemenkov <lemenkov at gmail.com>
+Date: Fri, 1 Oct 2010 13:57:53 +0400
+Subject: [PATCH] No such option for which - '-s'
+
+Signed-off-by: Peter Lemenkov <lemenkov at gmail.com>
+---
+ Makefile |    4 ++--
+ 1 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/Makefile b/Makefile
+index 2044bc9..2dfe104 100644
+--- a/Makefile
++++ b/Makefile
+@@ -23,13 +23,13 @@ INSTALLDIR = $(ERL_LIBS)/lfe
+ all: compile docs
+ 
+ compile:
+-	if which -s rebar; \
++	if which rebar; \
+ 	then rebar compile; \
+ 	else $(ERLC) $(addprefix $(SRCDIR)/, $(SRCS)); \
+ 	fi
+ 
+ install:
+-	if which -s rebar; \
++	if which rebar; \
+ 	then rebar install; \
+ 	elif [ "$$ERL_LIBS" != "" ]; \
+ 	then mkdir -p $(INSTALLDIR)/$(EBINDIR) ; \
+-- 
+1.7.2.3
+
diff --git a/erlang-lfe.spec b/erlang-lfe.spec
new file mode 100644
index 0000000..fc4611b
--- /dev/null
+++ b/erlang-lfe.spec
@@ -0,0 +1,135 @@
+%global realname lfe
+%global debug_package %{nil}
+%global git_tag 1bcf461
+
+# 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:		erlang-%{realname}
+Version:	0.6.1
+Release:	4%{?dist}
+Summary:	Lisp Flavoured Erlang
+Group:		Development/Languages
+License:	BSD
+URL:		http://github.com/rvirding/lfe
+Source0:	http://github.com/rvirding/lfe/tarball/v0.6.1/rvirding-%{realname}-v%{version}-0-g%{git_tag}.tar.gz
+Patch1:		erlang-lfe-0001-No-such-option-for-which-s.patch
+BuildRoot:	%(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
+BuildRequires:	erlang-erts
+BuildRequires:	emacs(bin), emacs-el >= 22.1-2
+BuildRequires:	pkgconfig
+#BuildRequires:	erlang-rebar
+BuildRequires:	emacs
+BuildRequires:	xemacs
+BuildRequires:	emacs-el
+BuildRequires:	xemacs-packages-extra-el
+
+Requires:	erlang-compiler
+Requires:	erlang-erts
+Requires:	erlang-kernel
+Requires:	erlang-stdlib
+
+
+%description
+Lisp Flavoured Erlang, is a lisp syntax front-end to the Erlang
+compiler. Code produced with it is compatible with "normal" Erlang
+code. An LFE evaluator and shell is also included.
+
+%package -n emacs-erlang-lfe
+Summary:	Emacs major mode for Lisp Flavoured Erlang
+Group:		Applications/Editors
+Requires:	%{name} = %{version}-%{release}
+BuildArch:	noarch
+
+%description -n emacs-erlang-lfe
+This package provides an Emacs major mode to edit Lisp Flavoured Erlang
+files.
+
+%package -n emacs-erlang-lfe-el
+Summary:	Elisp source files for Lisp Flavoured Erlang under GNU Emacs
+Group:		Applications/Editors
+Requires:	%{name} = %{version}-%{release}
+BuildArch:	noarch
+
+%description -n emacs-erlang-lfe-el
+This package contains the elisp source files for Lisp Flavoured Erlang
+under GNU Emacs. You do not need to install this package to run
+Lisp Flavoured Erlang. Install the emacs-erlang-lfe package to use
+Lisp Flavoured Erlang with GNU Emacs.
+
+
+%prep
+%setup -q -n rvirding-%{realname}-%{git_tag}
+%patch1 -p1 -b .no_such_option
+iconv -f iso-8859-1 -t UTF-8 README  > README.utf8
+mv -f README.utf8  README
+iconv -f iso-8859-1 -t UTF-8  examples/core-macros.lfe > examples/core-macros.lfe.utf8
+mv  -f examples/core-macros.lfe.utf8 examples/core-macros.lfe
+iconv -f iso-8859-1 -t UTF-8 doc/release_notes.txt > doc/release_notes.txt.utf8
+mv -f doc/release_notes.txt.utf8 doc/release_notes.txt
+# Remove precompiled elisp binary
+rm emacs/lfe-mode.elc
+
+
+%build
+make %{?_smp_mflags}
+emacs -batch -f batch-byte-compile emacs/lfe-mode.el
+
+
+%install
+rm -rf %{buildroot}
+install -p -m 0644 -D ebin/%{realname}.app %{buildroot}%{_libdir}/erlang/lib/%{realname}-%{version}/ebin/%{realname}.app
+install -p -m 0644 ebin/%{realname}_*.beam %{buildroot}%{_libdir}/erlang/lib/%{realname}-%{version}/ebin
+mkdir -p %{buildroot}%{emacs_lispdir}
+mkdir -p %{buildroot}%{emacs_startdir}
+install -p -m 0644 emacs/lfe-mode.el %{buildroot}%{emacs_lispdir}
+install -p -m 0644 emacs/lfe-mode.elc %{buildroot}%{emacs_lispdir}
+install -p -m 0644 emacs/lfe-start.el %{buildroot}%{emacs_startdir}
+
+
+%clean
+rm -rf %{buildroot}
+
+
+%files
+%defattr(-,root,root,-)
+%doc COPYRIGHT README doc/ examples/
+%dir %{_libdir}/erlang/lib/%{realname}-%{version}
+%dir %{_libdir}/erlang/lib/%{realname}-%{version}/ebin
+%{_libdir}/erlang/lib/%{realname}-%{version}/ebin/%{realname}.app
+%{_libdir}/erlang/lib/%{realname}-%{version}/ebin/%{realname}_*.beam
+
+
+%files -n emacs-erlang-lfe
+%defattr(-,root,root,-)
+%{emacs_startdir}/lfe-start.el
+%{emacs_lispdir}/lfe-mode.elc
+
+
+%files -n emacs-erlang-lfe-el
+%defattr(-,root,root,-)
+%{emacs_lispdir}/lfe-mode.el
+
+
+%changelog
+* Sun Nov 14 2010 Peter Lemenkov <lemenkov at gmail.com> - 0.6.1-4
+- Remove duplicated emacs files from docs
+
+* Sun Oct 31 2010 Tim Niemueller <tim at niemueller.de> - 0.6.1-3
+- Added Emacs sub-package
+- Fix inconsitent macro usage
+
+* Fri Oct 15 2010 Peter Lemenkov <lemenkov at gmail.com> - 0.6.1-2
+- Provide (x)emacs subpackages
+
+* Fri Oct  1 2010 Peter Lemenkov <lemenkov at gmail.com> - 0.6.1-1
+- Initial build
diff --git a/sources b/sources
index e69de29..5f90cad 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+88af640526620831328dac17f6cd1fd8  rvirding-lfe-v0.6.1-0-g1bcf461.tar.gz


More information about the scm-commits mailing list