[svn] r5356 - in trunk/rpms: . re2c

packagers at lists.rpmforge.net packagers at lists.rpmforge.net
Thu May 3 12:42:59 CEST 2007


Author: dag
Date: 2007-05-03 12:42:58 +0200 (Thu, 03 May 2007)
New Revision: 5356

Added:
   trunk/rpms/re2c/
   trunk/rpms/re2c/re2c.spec
Log:
Updates

Added: trunk/rpms/re2c/re2c.spec
===================================================================
--- trunk/rpms/re2c/re2c.spec	                        (rev 0)
+++ trunk/rpms/re2c/re2c.spec	2007-05-03 10:42:58 UTC (rev 5356)
@@ -0,0 +1,50 @@
+# $Id$
+# Authority: dag
+
+Summary: tool for generating C-based recognizers from regular expressions
+Name: re2c
+Version: 0.12.0
+Release: 1
+License: Public domain
+Group: Development/Tools
+URL: http://sourceforge.net/projects/re2c/
+
+Source: http://dl.sf.net/re2c/re2c-%{version}.tar.gz
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
+
+%description
+re2c is a great tool for writing fast and flexible lexers. It has
+served many people well for many years and it deserves to be
+maintained more actively. re2c is on the order of 2-3 times faster
+than a flex based scanner, and its input model is much more
+flexible.
+
+%prep
+%setup
+
+%build
+%configure
+%{__make} re2c
+
+### Regenerate file scanner.cc
+./re2c -b scanner.re >scanner.cc
+%{__rm} -f re2c scanner.o
+%{__make}
+
+%install
+%{__rm} -rf %{buildroot}
+%{__install} -Dp -m0755 re2c %{buildroot}%{_bindir}/re2c
+%{__install} -Dp -m0644 re2c.1 %{buildroot}%{_mandir}/man1/re2c.1
+
+%clean
+%{__rm} -rf %{buildroot}
+
+%files
+%defattr(-, root, root, 0755)
+%doc README examples/ doc/* lessons/
+%doc %{_mandir}/man1/re2c.1*
+%{_bindir}/re2c
+
+%changelog
+* Thu May 03 2007 Dag Wieers <dag at wieers.com> - 0.12.0-1
+- Initial version.


Property changes on: trunk/rpms/re2c/re2c.spec
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + native




More information about the commits mailing list