[nex] Initial import (#1146551)

mikep mikep at fedoraproject.org
Fri Sep 26 13:08:42 UTC 2014


commit c4e25d3da40e6c196ed7aac90d5e7f4150d3b868
Author: W. Michael Petullo <mike at flyn.org>
Date:   Fri Sep 26 09:08:33 2014 -0400

    Initial import (#1146551)

 .gitignore |    1 +
 nex.spec   |   39 +++++++++++++++++++++++++++++++++++++++
 sources    |    1 +
 3 files changed, 41 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..975d998 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/nex-ebb7a44196ddf655bb34ab4c07ebb05d3694381f.tar.gz
diff --git a/nex.spec b/nex.spec
new file mode 100644
index 0000000..e26fe59
--- /dev/null
+++ b/nex.spec
@@ -0,0 +1,39 @@
+%global commit      ebb7a44196ddf655bb34ab4c07ebb05d3694381f
+%global shortcommit %(c=%{commit}; echo ${c:0:7})
+
+# Presently required when building with GCC Go.
+%global debug_package %{nil}
+%global __strip /bin/true
+
+Name:           nex
+Version:        20140621
+Release:        1%{?dist}
+Summary:        A lexer generator for Go that is similar to Lex/Flex
+License:        GPLv3
+URL:            http://www-cs-students.stanford.edu/~blynn/nex/
+Source0:        https://github.com/blynn/nex/archive/%{commit}/%{name}-%{commit}.tar.gz
+
+BuildRequires:  gcc-go
+
+%description
+Nex is a lexer similar to Lex/Flex that: (1) generates Go code instead
+of C code, (2) integrates with Go's Yacc instead of YACC/Bison, (3)
+supports UTF-8, and (4) supports nested structural regular expressions.
+
+%prep
+%setup -q -n nex-%{commit}
+
+%build
+gccgo -g nex.go -o nex
+
+%install
+install -d %{buildroot}%{_bindir}
+install -p -m 0755 ./nex %{buildroot}%{_bindir}/nex
+
+%files
+%doc COPYING README.asciidoc
+%{_bindir}/nex
+
+%changelog
+* Thu Sep 25 2014 W. Michael Petullo <mike at flyn.org> - 20140621-1
+- Initial Fedora package
diff --git a/sources b/sources
index e69de29..12e776e 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+acb48bbfe2aa48338fec1bbc09cce378  nex-ebb7a44196ddf655bb34ab4c07ebb05d3694381f.tar.gz


More information about the scm-commits mailing list