]> git.pld-linux.org Git - packages/cyclone.git/blob - cyclone.spec
- upgraded to 0.5,
[packages/cyclone.git] / cyclone.spec
1 Summary:        The Cyclone compiler
2 Summary(pl):    Kompilator jêzyka Cyclone
3 Name:           cyclone
4 Version:        0.5
5 Release:        0.1
6 License:        GPL
7 Group:          Development/Languages
8 Source0:        http://www.cs.cornell.edu/projects/cyclone/software/%{name}-%{version}.tar.gz
9 # Source0-md5:  20d2177e8bc432831fbdaa10aca462ee
10 Source1:        http://www.cs.cornell.edu/projects/cyclone/software/%{name}-%{version}-docs.tar.gz
11 # Source1-md5:  a3e557032b3444613089894a0e11dff7
12 Patch0:         %{name}-DESTDIR.patch
13 Patch1:         %{name}-options.patch
14 URL:            http://www.cs.cornell.edu/projects/cyclone/
15 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17 %description
18 Cyclone is a language for C programmers who want to write secure,
19 robust programs. It's a dialect of C designed to be safe: free of
20 crashes, buffer overflows, format string attacks, and so on.
21
22 %description -l pl
23 Cyclone jest jêzykiem dla programistów C, którzy chc± pisaæ bezpieczne
24 i szybkie programy. Jest on dialektem C zaprojektowanym by byæ
25 bezpiecznym: wolnym od SEGV, przepe³nieñ buforów, format string
26 attacks, itd.
27
28 %prep
29 %setup -q -n %{name}-%{version}-%{version} -a1
30 %patch0 -p1
31 #%patch1 -p1
32
33 %build
34 CFLAGS="%{rpmcflags}"
35 LDFLAGS="%{rpmldflags}"
36 %configure
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 \
53         DESTDIR=$RPM_BUILD_ROOT
54
55 %clean
56 rm -rf $RPM_BUILD_ROOT
57
58 %files
59 %defattr(644,root,root,755)
60 %doc online-manual/*
61 %attr(755, root, root) %{_bindir}/*
62 %{_libdir}/%{name}
63 %{_includedir}/%{name}
This page took 0.062468 seconds and 3 git commands to generate.