New upstream version 1.4.0.

- Rebuild for OCaml 3.12.1.
This commit is contained in:
Richard W.M. Jones 2012-01-06 18:37:59 +00:00
parent 15d7ae5f4b
commit bbea72a876
5 changed files with 13 additions and 46 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
cil-1.3.7.tar.gz
/cil-1.4.0.tar.gz

View File

@ -1,10 +0,0 @@
--- cil-1.3.7/Makefile.in.old 2011-01-07 15:25:13.579993796 +0000
+++ cil-1.3.7/Makefile.in 2011-01-07 15:25:16.430211605 +0000
@@ -121,7 +121,6 @@
@$(NARRATIVE) "Linking $(COMPILETOWHAT) $@ $(LINKMSG)"
$(AT)$(CAMLLINK) -verbose -o $@ \
$(CILLY_LIBS:%=%.$(CMXA)) \
- $(CILLY_LIBS:%=-cclib -l%) \
$^

View File

@ -1,14 +0,0 @@
diff -ur cil-1.3.7.orig/Makefile.in cil-1.3.7/Makefile.in
--- cil-1.3.7.orig/Makefile.in 2009-04-24 19:50:33.000000000 +0100
+++ cil-1.3.7/Makefile.in 2009-05-26 15:46:02.932947721 +0100
@@ -287,7 +287,9 @@
ifeq ($(NATIVECAML),1)
$(OBJDIR)/libcil.o: $(OCAML_CIL_LIB_CMODULES:%=$(OBJDIR)/lib%.a) \
$(OCAML_CIL_LIB_MODULES:%=$(OBJDIR)/%.$(CMO))
- ocamlopt -output-obj -o $@ $(CILLY_LIBS:%=%.cmxa) $^
+ ocamlopt -output-obj -o tmpcil.o $(CILLY_LIBS:%=%.cmxa) $^
+ ar rcs $@ tmpcil.o
+ rm -f tmpcil.o
else
$(OBJDIR)/libcil.o:
@echo "Can only build $@ when NATIVECAML is 1."

View File

@ -5,23 +5,20 @@
%define __strip /bin/true
Name: ocaml-cil
Version: 1.3.7
Release: 10%{?dist}
Version: 1.4.0
Release: 1%{?dist}
Summary: CIL - Infrastructure for C Program Analysis and Transformation
Group: Development/Libraries
License: BSD
URL: http://cil.sourceforge.net/
Source0: http://hal.cs.berkeley.edu/cil/distrib/cil-%{version}.tar.gz
Source0: http://downloads.sourceforge.net/cil/cil-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
ExcludeArch: ppc64
ExcludeArch: ppc
ExcludeArch: sparc64
ExcludeArch: s390 s390x
Patch0: cil-1.3.7-output-obj.patch
Patch1: cil-1.3.7-no-link-to-clib.patch
BuildRequires: ocaml, ocaml-findlib-devel, ocaml-ocamldoc
%define _use_internal_dependency_generator 0
@ -92,8 +89,6 @@ for gcc.
%prep
%setup -q -n cil-%{version}
%patch0 -p1
%patch1 -p1
%build
@ -101,14 +96,6 @@ for gcc.
make RELEASE=1
make quicktest
cat > META <<EOF
version="%{version}"
description="%{summary}"
archive(byte)="cil.cma"
archive(native)="cil.cmxa"
requires=""
EOF
archos=`ls obj`
rm -f bin/CilConfig.pm
@ -119,7 +106,6 @@ cat > bin/CilConfig.pm <<EOF
\$::default_mode = "GNUCC";
EOF
strip obj/$archos/libcil.o
#strip obj/$archos/cilly.byte.exe - NO! It removes the bytecode :-(
%if %opt
strip obj/$archos/cilly.asm.exe
@ -157,7 +143,7 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc README LICENSE
%doc README.md LICENSE
%{_libdir}/ocaml/cil
%if %opt
%exclude %{_libdir}/ocaml/cil/*.a
@ -170,7 +156,7 @@ rm -rf $RPM_BUILD_ROOT
%files devel
%defattr(-,root,root,-)
%doc README LICENSE
%doc README.md LICENSE
%if %opt
%{_libdir}/ocaml/cil/*.a
%{_libdir}/ocaml/cil/*.cmxa
@ -182,11 +168,11 @@ rm -rf $RPM_BUILD_ROOT
%files doc
%defattr(-,root,root,-)
%doc README LICENSE doc/*
%doc README.md LICENSE doc/*
%files cilly
%defattr(-,root,root,-)
%doc README LICENSE
%doc README.md LICENSE
%{perl_vendorlib}/CilConfig.pm
%{perl_vendorlib}/Cilly.pm
%{perl_vendorlib}/KeptFile.pm
@ -198,6 +184,10 @@ rm -rf $RPM_BUILD_ROOT
%changelog
* Fri Jan 6 2012 Richard W.M. Jones <rjones@redhat.com> - 1.4.0-1
- New upstream version 1.4.0.
- Rebuild for OCaml 3.12.1.
* Mon Jun 20 2011 Marcela Mašláňová <mmaslano@redhat.com> - 1.3.7-10
- Perl mass rebuild

View File

@ -1 +1 @@
e0e3ce3b04c0d9cccf98381feb6d89de cil-1.3.7.tar.gz
a61b329f66e7646163ada56046545af5 cil-1.4.0.tar.gz