rpms/ocaml-bisect/devel bisect-1.0-alpha-nojava.patch, NONE, 1.1 import.log, NONE, 1.1 ocaml-bisect.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Richard W.M. Jones rjones at fedoraproject.org
Mon Aug 25 12:04:28 UTC 2008


Author: rjones

Update of /cvs/pkgs/rpms/ocaml-bisect/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv5465/devel

Modified Files:
	.cvsignore sources 
Added Files:
	bisect-1.0-alpha-nojava.patch import.log ocaml-bisect.spec 
Log Message:
Initial import.


bisect-1.0-alpha-nojava.patch:

--- NEW FILE bisect-1.0-alpha-nojava.patch ---
Binary files bisect-1.0-alpha.orig/bin/bisect.a and bisect-1.0-alpha/bin/bisect.a differ
diff -ur bisect-1.0-alpha.orig/Makefile bisect-1.0-alpha/Makefile
--- bisect-1.0-alpha.orig/Makefile	2008-07-06 17:09:56.000000000 +0100
+++ bisect-1.0-alpha/Makefile	2008-08-24 08:32:17.000000000 +0100
@@ -94,10 +94,10 @@
 	mv *.cm* *.a $(PATH_BIN)
 	rm *.o
 
-	$(OCAMLJAVA) $(OCAML_JAVA_FLAGS) -I $(PATH_SRC) -pack -o $(LIBRARY).cmj $(PATH_SRC)/common.cmj $(PATH_SRC)/runtime.cmj
-	$(OCAMLJAVA) $(OCAML_JAVA_FLAGS) -a -o $(LIBRARY).cmja $(LIBRARY).cmj
-	mv *.cm* *.jar $(PATH_BIN)
-	rm *.jo
+#	$(OCAMLJAVA) $(OCAML_JAVA_FLAGS) -I $(PATH_SRC) -pack -o $(LIBRARY).cmj $(PATH_SRC)/common.cmj $(PATH_SRC)/runtime.cmj
+#	$(OCAMLJAVA) $(OCAML_JAVA_FLAGS) -a -o $(LIBRARY).cmja $(LIBRARY).cmj
+#	mv *.cm* *.jar $(PATH_BIN)
+#	rm *.jo
 
 instrument:
 	$(OCAMLC) -c -pp camlp4oof -I +camlp4 -I $(PATH_SRC) $(PATH_SRC)/$(INSTRUMENT_MODULE).ml
@@ -108,7 +108,7 @@
 report:
 	$(OCAMLC) $(OCAML_COMPILE_FLAGS) $(CMA_FILES) -o $(PATH_BIN)/$(EXECUTABLE) $(PATH_SRC)/common.cmo $(PATH_SRC)/$(REPORT_MODULE).ml
 	$(OCAMLOPT) $(OCAML_COMPILE_FLAGS) $(CMXA_FILES) -o $(PATH_BIN)/$(EXECUTABLE).opt $(PATH_SRC)/common.cmx $(PATH_SRC)/$(REPORT_MODULE).ml
-	$(OCAMLJAVA) $(OCAML_COMPILE_FLAGS) $(OCAML_JAVA_FLAGS) $(CMJA_FILES) -standalone -o $(PATH_BIN)/$(EXECUTABLE).jar $(PATH_SRC)/common.cmj $(PATH_SRC)/$(REPORT_MODULE).ml
+#	$(OCAMLJAVA) $(OCAML_COMPILE_FLAGS) $(OCAML_JAVA_FLAGS) $(CMJA_FILES) -standalone -o $(PATH_BIN)/$(EXECUTABLE).jar $(PATH_SRC)/common.cmj $(PATH_SRC)/$(REPORT_MODULE).ml
 
 html-doc:
 	$(OCAMLDOC) -sort -html -t '$(OCAML_DOC_TITLE)' -d $(PATH_DOC) -I $(PATH_SRC) $(PATH_SRC)/*.mli
@@ -143,8 +143,8 @@
 	@echo ' *** running report tests (native)'
 	@cd tests/report && $(MAKE) COMPILER=ocamlopt EXECUTABLE=native RUN=./ LIB_EXT=cmxa REPORT=../../bin/bisect-report.opt && cd ../..
 ifeq ($(findstring $(OCAMLJAVA),$(wildcard $(OCAMLJAVA))),$(OCAMLJAVA))
-	@echo ' *** running report tests (java)'
-	@cd tests/report && $(MAKE) COMPILER=ocamljava FLAGS=-standalone EXECUTABLE=prog.jar RUN='java -jar ' LIB_EXT=cmja REPORT='java -jar ../../bin/bisect-report.jar' && cd ../..
+#	@echo ' *** running report tests (java)'
+#	@cd tests/report && $(MAKE) COMPILER=ocamljava FLAGS=-standalone EXECUTABLE=prog.jar RUN='java -jar ' LIB_EXT=cmja REPORT='java -jar ../../bin/bisect-report.jar' && cd ../..
 else
 endif
 


--- NEW FILE import.log ---
ocaml-bisect-1_0-0_1_alpha_fc10:HEAD:ocaml-bisect-1.0-0.1.alpha.fc10.src.rpm:1219665819


--- NEW FILE ocaml-bisect.spec ---
%define opt %(test -x %{_bindir}/ocamlopt && echo 1 || echo 0)
%define debug_package %{nil}

%define mainversion 1.0
%define subversion alpha

Name:           ocaml-bisect
Version:        %{mainversion}
Release:        0.1.%{subversion}%{?dist}
Summary:        OCaml code coverage tool

Group:          Development/Libraries
License:        GPLv3+
URL:            http://bisect.x9c.fr/
Source0:        http://bisect.x9c.fr/distrib/bisect-%{mainversion}-%{subversion}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

Patch0:         bisect-1.0-alpha-nojava.patch

BuildRequires:  ocaml >= 3.10.0
BuildRequires:  ocaml-findlib-devel
BuildRequires:  ocaml-ocamldoc
BuildRequires:  ocaml-camlp4-devel

%define _use_internal_dependency_generator 0
%define __find_requires /usr/lib/rpm/ocaml-find-requires.sh -i Asttypes -i Parsetree
%define __find_provides /usr/lib/rpm/ocaml-find-provides.sh


%description
Bisect is a code coverage tool for the Objective Caml language. It is
a camlp4-based tool that allows to instrument your application before
running tests. After application execution, it is possible to generate
a report in HTML format that is the replica of the application source
code annotated with code coverage information.


%package        devel
Summary:        Development files for %{name}
Group:          Development/Libraries
Requires:       %{name} = %{version}-%{release}


%description    devel
The %{name}-devel package contains libraries and signature files for
developing applications that use %{name}.


%prep
%setup -q -n bisect-%{mainversion}-%{subversion}
%patch0 -p1


%build
make all


%install
rm -rf $RPM_BUILD_ROOT

mkdir -p $RPM_BUILD_ROOT%{_bindir}
mkdir -p $RPM_BUILD_ROOT%{_libdir}/ocaml/bisect

install -m 0755 bin/bisect-report.opt \
  $RPM_BUILD_ROOT%{_bindir}/bisect-report
strip $RPM_BUILD_ROOT%{_bindir}/bisect-report

install -m 0644 bin/*.{a,cmi,cma,cmx,cmxa} \
  $RPM_BUILD_ROOT%{_libdir}/ocaml/bisect


%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root,-)
%doc COPYING
%{_bindir}/bisect-report
%{_libdir}/ocaml/bisect
%if %opt
%exclude %{_libdir}/ocaml/bisect/*.a
%exclude %{_libdir}/ocaml/bisect/*.cmxa
%exclude %{_libdir}/ocaml/bisect/*.cmx
%endif


%files devel
%defattr(-,root,root,-)
%doc CHANGES COPYING README VERSION doc/bisect.pdf ocamldoc
%if %opt
%{_libdir}/ocaml/bisect/*.a
%{_libdir}/ocaml/bisect/*.cmxa
%{_libdir}/ocaml/bisect/*.cmx
%endif


%changelog
* Sun Aug 24 2008 Richard W.M. Jones <rjones at redhat.com> - 1.0-0.1.alpha
- Initial RPM release.


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/ocaml-bisect/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	24 Aug 2008 19:02:05 -0000	1.1
+++ .cvsignore	25 Aug 2008 12:03:58 -0000	1.2
@@ -0,0 +1 @@
+bisect-1.0-alpha.tar.gz


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/ocaml-bisect/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	24 Aug 2008 19:02:05 -0000	1.1
+++ sources	25 Aug 2008 12:03:58 -0000	1.2
@@ -0,0 +1 @@
+2285c0af8d0e7503fbd0283a48cba944  bisect-1.0-alpha.tar.gz




More information about the fedora-extras-commits mailing list