]> git.pld-linux.org Git - packages/CocoR.git/blob - CocoR.spec
- adapterized and made spec %%debug ready or added using %%rpm*flags macros
[packages/CocoR.git] / CocoR.spec
1 Summary:        Parser and lexer generator
2 Summary(pl):    Generator analizatorów leksykalnych i sk³adniowych
3 Name:           CocoR
4 Version:        1.50
5 Release:        1
6 Group:          Development/Tools
7 Group(de):      Entwicklung/Werkzeuge
8 Group(fr):      Development/Outils
9 Group(pl):      Programowanie/Narzêdzia
10 License:        Unknown
11 Source0:        ftp://cs.ru.ac.za/pub/coco/cocorc15.tgz
12 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
13
14 %description
15 Coco/R generator.
16
17 %description -l pl
18 Generator analizatorów leksykalnych i sk³adniowych Coco/R.
19
20 %prep
21 %setup -q -c
22
23 %build
24 export CRFRAMES=`pwd`/frames
25 uudecode dos2unix.uue
26 chmod +x dos2unix.sh
27 ./dos2unix.sh unix.mk
28 %{__make} -f unix.mk dos2unix CFLAGS="%{rpmcflags} -I../cplus2"
29 %{__make} -f unix.mk linux CFLAGS="%{rpmcflags} -I../cplus2"
30
31 %install
32 rm -rf $RPM_BUILD_ROOT
33 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,%{_datadir}/coco/frames/cplus2}
34
35 install cocor $RPM_BUILD_ROOT%{_bindir}
36
37 cp -f frames/*.frm $RPM_BUILD_ROOT%{_datadir}/coco/frames/
38 cp -f frames/cplus2/*.frm $RPM_BUILD_ROOT%{_datadir}/coco/frames/cplus2
39
40 install docs/cocor.1 $RPM_BUILD_ROOT%{_mandir}/man1/cocor.1
41
42 %clean
43 rm -rf $RPM_BUILD_ROOT
44
45 %files
46 %defattr(644,root,root,755)
47 %attr (755,root,root) %{_bindir}/cocor
48 %{_mandir}/man1/cocor.1*
49 %{_datadir}/coco/frames
This page took 0.093745 seconds and 4 git commands to generate.