- adapterized.
[packages/cyclone.git] / cyclone.spec
1 Summary:        The Cyclone compiler
2 Summary(pl):    Kompilator jêzyka Cyclone
3 Name:           cyclone
4 Version:        0.2
5 Release:        1
6 License:        GPL
7 Group:          Development/Languages
8 Source0:        http://www.cs.cornell.edu/projects/%{name}/%{name}-%{version}.tar.gz
9 Source1:        http://www.cs.cornell.edu/projects/%{name}-%{version}-docs.tar.gz
10 Patch0:         %{name}-DESTDIR.patch
11 Patch1:         %{name}-options.patch
12 URL:            http://www.cs.cornell.edu/projects/cyclone/
13 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
14
15 %description
16 Cyclone is a language for C programmers who want to write secure,
17 robust programs. It's a dialect of C designed to be safe: free of
18 crashes, buffer overflows, format string attacks, and so on.
19
20 %description -l pl
21 Cyclone jest jêzykiem dla programistów C, którzy chc± pisaæ bezpieczne
22 i szybkie programy. Jest on dialektem C zaprojektowanym by byæ
23 bezpiecznym: wolnym od SEGV, przepe³nieñ buforów, format string
24 attacks, itd.
25
26 %prep
27 %setup -q -n %{name} -a1
28 %patch0 -p1
29 %patch1 -p1
30
31 %build
32 ./configure \
33         -sh /bin/sh \
34         -bindir %{_bindir} \
35         -libdir %{_libdir}/%{name} \
36         -incdir %{_includedir}/%{name}
37
38 %{__make}
39 %{__make} cyclone_src
40 %{__make} update
41 # hack, there is no doc/ in source distribution
42 mkdir doc
43 echo 'clean:' > doc/Makefile
44 %{__make} clean_nogc
45 # here we got C sources generated from patched cyclone,
46 # we can build for real.
47 %{__make} CFLAGS="%{rpmcflags}" CYC_FLAGS="%{rpmcflags}"
48
49 %install
50 rm -rf $RPM_BUILD_ROOT
51
52 %{__make} install DESTDIR=$RPM_BUILD_ROOT
53
54 %clean
55 rm -rf $RPM_BUILD_ROOT
56
57 %files
58 %defattr(644,root,root,755)
59 %doc online-manual/*
60 %attr(755, root, root) %{_bindir}/*
61 %{_libdir}/%{name}
62 %{_includedir}/%{name}
This page took 0.063381 seconds and 3 git commands to generate.