summaryrefslogtreecommitdiff
path: root/cil/cil.spec
blob: 53809736363d9ccbf9ac3162a4d0461b74905b4e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
Name: cil
Version: 1.3.5
Release: 1
License: BSD
URL: http://manju.cs.berkeley.edu/cil/
Source0: %{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
BuildRequires: gcc
BuildRequires: ocaml >= 3.08
BuildRequires: perl >= 5.6.1

# No ELF executables or shared libraries
%define debug_package %{nil}


########################################################################
#
#  Package cil
#

Summary: OCaml library for C program analysis and transformation
Group: Development/Libraries
Requires: perl >= 5.6.1

%description
CIL (C Intermediate Language) is a high-level representation along
with a set of tools that permit easy analysis and source-to-source
transformation of C programs.

This package provides Perl modules which are useful for building
compiler wrappers.  A wrapper can use CIL to transform C code before
passing it along to the native C compiler.

%files
%defattr(-,root,root,-)
%doc LICENSE
%{_datadir}/%{name}


########################################################################
#
#  Package cil-devel
#

%package devel

Summary: OCaml library for C program analysis and transformation
Group: Development/Libraries
Requires: ocaml >= 3.04

%description devel
CIL (C Intermediate Language) is a high-level representation along
with a set of tools that permit easy analysis and source-to-source
transformation of C programs.

This package provides OCaml interfaces and an OCaml library which form
the CIL API.

%files devel
%defattr(-,root,root,-)
%doc LICENSE
%{_libdir}/%{name}


########################################################################
#
#  General scripts
#

%prep
%setup -q -n %{name}

%build
%configure
%define cilmake make -f Makefile.cil
%cilmake cilversion machdep
%cilmake cillib NATIVECAML=
%cilmake cillib NATIVECAML=1

%install
rm -rf $RPM_BUILD_ROOT
%makeinstall

%clean
rm -rf $RPM_BUILD_ROOT


%changelog
* Tue Aug  5 2003 Ben Liblit <liblit@cs.berkeley.edu> 
- Initial build.