]> git.pld-linux.org Git - packages/ragel.git/blame - ragel.spec
- added
[packages/ragel.git] / ragel.spec
CommitLineData
6e68e540 1Summary: Ragel State Machine Compiler
2Name: ragel
3Version: 5.16
4Release: 1
5License: GPL
6Group: Development/Tools
7URL: http://www.cs.queensu.ca/home/thurston/ragel/
8Source0: http://www.cs.queensu.ca/home/thurston/ragel/%{name}-%{version}.tar.gz
9# Source0-md5: 0c19b9fe68dd54efa64009dc85a08325
10BuildRequires: bison
11BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
12
13%description
14Ragel compiles finite state machines from regular languages into
15runnable C code. Ragel state machines can not only recognize byte
16sequences as regular expression machines do, but can also execute code
17at arbitrary points in the recognition of a regular language. When you
18wish to write down a regular language you start with some simple
19regular language and build a bigger one using the regular language
20operators union, concatenation, kleene star, intersection and
21subtraction. This is precisely the way you describe to Ragel how to
22compile your finite state machines. Ragel also understands operators
23that insert function calls into machines and operators that control
24any non-determinism in machines.
25
26%prep
27%setup -q
28
29%build
30%configure
31%{__make}
32cd doc
33%{__make} ragel.1 rlcodegen.1
34
35%install
36rm -rf $RPM_BUILD_ROOT
37install -d $RPM_BUILD_ROOT%{_bindir}
38install -s ragel/ragel $RPM_BUILD_ROOT%{_bindir}/ragel
39install -s rlcodegen/rlcodegen $RPM_BUILD_ROOT%{_bindir}/rlcodegen
40install -d $RPM_BUILD_ROOT%{_mandir}/man1
41install doc/ragel.1 $RPM_BUILD_ROOT%{_mandir}/man1/ragel.1
42install doc/rlcodegen.1 $RPM_BUILD_ROOT%{_mandir}/man1/rlcodegen.1
43
44%files
45%defattr(644,root,root,755)
46%attr(755,root,root) %{_bindir}/*
47%{_mandir}/man1/*
48
49%clean
50rm -rf $RPM_BUILD_ROOT
This page took 0.131915 seconds and 4 git commands to generate.