]> git.pld-linux.org Git - packages/cdl3.git/blame - cdl3.spec
- up to 1.2.7
[packages/cdl3.git] / cdl3.spec
CommitLineData
e8a94b3b 1Summary: CDL3 System - compiler
cdeaba42 2Summary(pl.UTF-8): Kompilator systemu CDL3
e8a94b3b 3Name: cdl3
480152c8 4Version: 1.2.7
d4f20880 5Release: 1
e8a94b3b 6License: GPL
7Group: Development/Languages
8Source0: ftp://ftp.cs.kun.nl/pub/cdl3/%{name}-%{version}.tar.gz
480152c8 9# Source0-md5: d028bf290af22ec8c90ea11ca9a88fda
e8a94b3b 10BuildRequires: autoconf
11BuildRequires: automake
12BuildRequires: libtool
13BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
14
15%description
3674266d
JB
16CDL3 is an implementation language based on affix grammars. It rides
17the borderline between syntactic formalism and programming language,
18and tries to combine the good properties of both. The control
19structure and data structures have been choosen such that it is
20extremely easy to write deterministic parsers and transducers in CDL3.
21In this sense, CDL3 is a Compiler Description Language (hence the
22acronym). Its applicability is, however, not limited to compiler
23construction. The language is wellsuited, more in general, for all
24applications that can be characterized as syntax-directed:
25communication between processes (human and machine) adhering to
26well-established protocols, or interpreter-like systems, interactively
27obeying a set of commands.
e8a94b3b 28
40f7395a
JR
29%description -l pl.UTF-8
30CDL3 to język implementacyjny oparty na gramatykach affiksowych.
31Przekracza granicę pomiędzy formalizmem składniowym a językiem
32programowania i próbuje połączyć dobre cechy obu rzeczy. Struktura
33sterująca i struktury danych zostały tak dobrane, aby było bardzo
34łatwo pisać w CDL3 deterministyczne analizatory i translatory. W tym
35sensie CDL3 jest językiem opisu kompilatorów (Compiler Description
36Language - stąd akronim). Jego zastosowanie nie jest jednak
37ograniczone do konstruowania kompilatorów. Język jest dobrze
38dopasowany, bardziej ogólnie, do wszystkich zastosowań, które można
39scharakteryzować jako zorientowane na składnię: komunikacji między
40procesami (człowiekiem i maszyną) zgodnie z dobrze ustalonymi
41protokołami lub systemy w stylu interpreterów, interaktywnie reagujące
42na zestaw poleceń.
e8a94b3b 43
480152c8 44%package examples
45Summary: CDL3 - example of use
46Summary(pl.UTF-8): CDL3 - przykłady wykorzystania
47Group: Development/Libraries
48Requires: %{name} = %{version}-%{release}
49
50%description examples
51CDL3 - example of use.
52
53%description examples -l pl.UTF-8
54CDL3 - przykłady wykorzystania.
55
e8a94b3b 56%prep
57%setup -q
480152c8 58%{__sed} -i -e 's,CLK_TCK,CLOCKS_PER_SEC,g' rts/cdl3rts.c
e8a94b3b 59
60%build
b6b4ba8e 61cp -f /usr/share/automake/config.sub .
e8a94b3b 62%{__libtoolize}
63%{__aclocal}
64%{__autoconf}
3674266d 65%{__automake}
e8a94b3b 66%configure
67
68%{__make}
69
70%install
71rm -rf $RPM_BUILD_ROOT
480152c8 72install -d $RPM_BUILD_ROOT{%{_includedir},%{_examplesdir}/%{name}-%{version}}
56336e25 73
e7394212
PG
74%{__make} install \
75 DESTDIR=$RPM_BUILD_ROOT
e8a94b3b 76
480152c8 77mv -f $RPM_BUILD_ROOT%{_datadir}/cdl3/include/*.h $RPM_BUILD_ROOT%{_includedir}
78mv -f $RPM_BUILD_ROOT%{_datadir}/cdl3/examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
79
e8a94b3b 80%clean
81rm -rf $RPM_BUILD_ROOT
82
36e0c81f
ER
83%post -p /sbin/postshell
84-/usr/sbin/fix-info-dir -c %{_infodir}
e8a94b3b 85
36e0c81f
ER
86%postun -p /sbin/postshell
87-/usr/sbin/fix-info-dir -c %{_infodir}
e8a94b3b 88
89%files
90%defattr(644,root,root,755)
56336e25 91%doc AUTHORS ChangeLog NEWS README TODO docs/*.ps docs/*.k3
480152c8 92%attr(755,root,root) %{_bindir}/cdlc
a637aa3d 93%{_includedir}/*
56336e25
JB
94%{_libdir}/lib*.a
95%{_libdir}/lib*.la
480152c8 96%{_mandir}/man[137n]/*
97
98%files examples
99%defattr(644,root,root,755)
100%{_examplesdir}/%{name}-%{version}
This page took 0.140878 seconds and 4 git commands to generate.