--- /dev/null
+make *** No rule to make target (...)/rpm/BUILD/llvm-3.0.src/obj/bindings/ocaml/llvm/Release/META.llvm, needed by install-meta.
+
+Index: bindings/ocaml/Makefile.ocaml
+===================================================================
+--- bindings/ocaml/Makefile.ocaml (revision 144182)
++++ bindings/ocaml/Makefile.ocaml (revision 144183)
+@@ -238,14 +238,14 @@
+ # Also install the .mli's (headers) as documentation.
+ install-cmis: $(OutputsCMI) $(OcamlHeaders)
+ $(Verb) $(MKDIR) $(PROJ_libocamldir)
++ $(Verb) for i in $(OcamlHeaders:$(ObjDir)/%=%); do \
++ $(EchoCmd) "Installing $(BuildMode) $(PROJ_libocamldir)/$$i"; \
++ $(DataInstall) $(ObjDir)/$$i "$(PROJ_libocamldir)/$$i"; \
++ done
+ $(Verb) for i in $(OutputsCMI:$(OcamlDir)/%=%); do \
+ $(EchoCmd) "Installing $(BuildMode) $(PROJ_libocamldir)/$$i"; \
+ $(DataInstall) $(OcamlDir)/$$i "$(PROJ_libocamldir)/$$i"; \
+ done
+- $(Verb) for i in $(OcamlHeaders:$(ObjDir)/%=%); do \
+- $(EchoCmd) "Installing $(BuildMode) $(PROJ_libocamldir)/$$i"; \
+- $(DataInstall) $(ObjDir)/$$i "$(PROJ_libocamldir)/$$i"; \
+- done
+
+ uninstall-cmis::
+ $(Verb) for i in $(OutputsCMI:$(OcamlDir)/%=%); do \
+Index: bindings/ocaml/llvm/Makefile
+===================================================================
+--- bindings/ocaml/llvm/Makefile (revision 144182)
++++ bindings/ocaml/llvm/Makefile (revision 144183)
+@@ -30,11 +30,13 @@
+ $(OcamlDir)/META.llvm: META.llvm
+ $(Verb) $(CP) -f $< $@
+
+-install-meta:: $(ObjDir)/META.llvm
++install-meta:: $(OcamlDir)/META.llvm
+ $(Echo) "Install $(BuildMode) $(DestMETA)"
+ $(Verb) $(MKDIR) $(PROJ_libocamldir)
+- $(Verb) $(DataInstall) META.llvm "$(DestMETA)"
++ $(Verb) $(DataInstall) $< "$(DestMETA)"
+
+ uninstall-meta::
+ $(Echo) "Uninstalling $(DestMETA)"
+ -$(Verb) $(RM) -f "$(DestMETA)"
++
++.PHONY: copy-meta install-meta uninstall-meta
#
-# TODO:
-# make *** No rule to make target (...)/rpm/BUILD/llvm-3.0.src/obj/bindings/ocaml/llvm/Release/META.llvm, needed by install-meta.
-#
# Conditional build:
%bcond_without ocaml # ocaml binding
%bcond_with apidocs # The doxygen docs are HUGE, so they are not built by default.
Summary(pl.UTF-8): Niskopoziomowa maszyna wirtualna (infrastruktura kompilatora optymalizującego)
Name: llvm
Version: 3.0
-Release: 0.1
+Release: 1
License: University of Illinois/NCSA Open Source License
Group: Development/Languages
Source0: http://llvm.org/releases/%{version}/%{name}-%{version}.tar.gz
# Data files should be installed with timestamps preserved
Patch3: %{name}-2.6-timestamp.patch
Patch4: %{name}-pld.patch
+Patch5: %{name}-bug11177.patch
URL: http://llvm.org/
BuildRequires: bash
BuildRequires: bison
mv clang-*.* tools/clang
%patch3 -p1
%patch4 -p1
+%patch5 -p0
# configure does not properly specify libdir
sed -i 's|(PROJ_prefix)/lib|(PROJ_prefix)/%{_lib}|g' Makefile.config.in
%if %{with ocaml}
%files ocaml
%defattr(644,root,root,755)
+%{_libdir}/ocaml/META.llvm
%{_libdir}/ocaml/llvm*.cma
%{_libdir}/ocaml/llvm*.cmi
%files ocaml-devel
%defattr(644,root,root,755)
+%{_libdir}/libllvm*.a
%{_libdir}/ocaml/libLLVM*.a
%{_libdir}/ocaml/libllvm*.a
%{_libdir}/ocaml/llvm*.a