]> git.pld-linux.org Git - packages/ragel.git/blame - ragel.spec
- 6.5
[packages/ragel.git] / ragel.spec
CommitLineData
6e68e540 1Summary: Ragel State Machine Compiler
ccb13302 2Summary(pl.UTF-8): Ragel State Machine Compiler - kompilator automatów
6e68e540 3Name: ragel
55c27e4a 4Version: 6.5
6e68e540 5Release: 1
6License: GPL
7Group: Development/Tools
6e68e540 8Source0: http://www.cs.queensu.ca/home/thurston/ragel/%{name}-%{version}.tar.gz
55c27e4a 9# Source0-md5: bb152087079ad7a545dcdc955b752301
9acded59 10URL: http://www.cs.queensu.ca/home/thurston/ragel/
6e68e540 11BuildRequires: bison
12BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
13
14%description
15Ragel compiles finite state machines from regular languages into
16runnable C code. Ragel state machines can not only recognize byte
17sequences as regular expression machines do, but can also execute code
18at arbitrary points in the recognition of a regular language. When you
19wish to write down a regular language you start with some simple
20regular language and build a bigger one using the regular language
9acded59 21operators union, concatenation, Kleene star, intersection and
6e68e540 22subtraction. This is precisely the way you describe to Ragel how to
23compile your finite state machines. Ragel also understands operators
24that insert function calls into machines and operators that control
25any non-determinism in machines.
26
963cfdec
JR
27%description -l pl.UTF-8
28Ragel kompiluje automaty skończone z języków regularnych do
29działającego kodu w C. Automaty Ragela nie tylko rozpoznają sekwencje
30bajtów, jak robią to automaty wyrażeń regularnych, ale także wykonują
31kod w dowolnych miejscach podczas rozpoznawania języka regularnego.
32Aby napisać język regularny zaczyna się od prostego języka regularnego
33i buduje większy przy użyciu operatorów sumy, złączenia, dopełnienia
34Kleene'a, przecięcia i odejmowania. Jest to dokładnie taki sposób, w
35jaki opisuje się Ragelowi jak kompilować automaty skończone. Ragel
36rozumie także operatory wstawiające wywołania funkcji do automatów i
37operatory sterujące niedeterminizmem w automatach.
9acded59 38
6e68e540 39%prep
40%setup -q
41
42%build
43%configure
78d5507f 44%{__make} \
45 CFLAGS="%{rpmcflags}"
55c27e4a 46%{__make} -C doc ragel.1
6e68e540 47
48%install
49rm -rf $RPM_BUILD_ROOT
78d5507f 50%{__make} install \
55c27e4a 51 DESTDIR=$RPM_BUILD_ROOT
6e68e540 52install -d $RPM_BUILD_ROOT%{_mandir}/man1
78d5507f 53install doc/r*.1 $RPM_BUILD_ROOT%{_mandir}/man1
6e68e540 54
9acded59
JB
55%clean
56rm -rf $RPM_BUILD_ROOT
57
6e68e540 58%files
59%defattr(644,root,root,755)
78d5507f 60%doc CREDITS ChangeLog README TODO
6e68e540 61%attr(755,root,root) %{_bindir}/*
62%{_mandir}/man1/*
This page took 0.095426 seconds and 4 git commands to generate.