Compare commits

...

85 Commits

Author SHA1 Message Date
Richard W.M. Jones 8d2049f118 OCaml 4.12.0 build 2021-03-01 19:41:31 +00:00
Fedora Release Engineering d560af9955 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-01-26 21:54:17 +00:00
Richard W.M. Jones 489c698b1d OCaml 4.11.1 rebuild 2020-09-01 20:33:15 +01:00
Richard W.M. Jones 9ccf0f9982 OCaml 4.11.0 rebuild 2020-08-21 12:29:01 +01:00
Adam Jackson 888b8b48c3 {Build,}Require rgb not xorg-x11-server-utils 2020-07-28 13:58:29 -04:00
Fedora Release Engineering 4f665ba9bf - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-07-28 12:06:36 +00:00
Richard W.M. Jones 8d3174b4d1 OCaml 4.11.0+dev2-2020-04-22 rebuild 2020-05-05 00:00:56 +01:00
Richard W.M. Jones 40666f8fa9 OCaml 4.11.0 pre-release attempt 2 2020-04-21 19:49:07 +01:00
Richard W.M. Jones d3af9c63ce OCaml 4.11.0 pre-release 2020-04-17 23:40:53 +01:00
Richard W.M. Jones 517fbccf6a Update all OCaml dependencies for RPM 4.16. 2020-04-03 13:38:16 +01:00
Richard W.M. Jones 7fd800a365 OCaml 4.10.0 final. 2020-02-26 16:25:10 +00:00
Richard W.M. Jones 5adb8236dc Remove bogus "lablgtk" dependency. 2020-02-06 21:35:09 +00:00
Fedora Release Engineering 875f742fcb - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-01-29 19:31:11 +00:00
Richard W.M. Jones f855568e37 OCaml 4.10.0+beta1 rebuild. 2020-01-19 22:51:42 +00:00
Richard W.M. Jones aa18bead3b OCaml 4.09.0 for riscv64 2020-01-09 22:01:44 +00:00
Richard W.M. Jones 4c0849c478 Remove ocaml-x11 dependency. 2019-12-07 11:19:50 +00:00
Richard W.M. Jones c96f2de4d8 OCaml 4.09.0 (final) rebuild. 2019-12-06 15:33:06 +00:00
Richard W.M. Jones f05bb0e3bd OCaml 4.08.1 (final) rebuild. 2019-08-16 17:40:17 +01:00
Richard W.M. Jones 9e6e06fc8f Rebuild against new ocaml-lablgtk. 2019-08-10 10:38:49 +01:00
Richard W.M. Jones db23d54bb9 OCaml 4.08.1 (rc2) rebuild. 2019-08-01 08:37:17 +01:00
Fedora Release Engineering ccc41bbf68 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-07-25 22:49:21 +00:00
Fedora Release Engineering d5bc677813 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-02-01 16:46:59 +00:00
Igor Gnatenko ea64c5f86c Remove obsolete Group tag
References: https://fedoraproject.org/wiki/Changes/Remove_Group_Tag
2019-01-28 20:24:23 +01:00
Fedora Release Engineering 2dd2c0af88 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-07-13 14:41:22 +00:00
Richard W.M. Jones 557b8ffe95 OCaml 4.07.0 (final) rebuild. 2018-07-11 18:55:45 +01:00
Richard W.M. Jones 96b6f333be OCaml 4.07.0-rc1 rebuild. 2018-06-20 20:09:49 +01:00
Sandro Mani a7f3892536 Rebuild (giflib) 2018-02-11 22:11:44 +01:00
Igor Gnatenko ac648b1566
Escape macros in %changelog
Reference: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/Y2ZUKK2B7T2IKXPMODNF6HB2O5T5TS6H/
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2018-02-09 09:05:17 +01:00
Fedora Release Engineering ff2b745c35 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-02-08 08:46:52 +00:00
David Kaspar [Dee'Kej] 3c0c83ed69 Replace the 'ghostscript-devel' requirements with 'libgs-devel'
To reflect Ghostscript's new package layout.
2018-01-15 18:24:09 +01:00
Richard W.M. Jones 2d77d7b115 New upstream version 4.2.5.
New version fixes compatibility with latest lablgtk.
2017-11-22 14:27:03 +00:00
Richard W.M. Jones 074b2883a2 OCaml 4.06.0 rebuild. 2017-11-17 23:43:43 +00:00
Richard W.M. Jones 269c527620 Disable debugsource packages - see comment in spec. 2017-08-09 12:41:19 +01:00
Richard W.M. Jones 739181cf16 New upstream version 4.2.4.
- Replace opt test with ocaml_native_compiler.
- Pass -g option to ocamlopt so debuginfo is generated correctly.
2017-08-09 11:23:40 +01:00
Richard W.M. Jones bfdb61b69c Bump release and rebuild. 2017-08-09 10:47:57 +01:00
Richard W.M. Jones c0cffe364d OCaml 4.05.0 rebuild. 2017-08-08 20:33:34 +01:00
Fedora Release Engineering a385283e87 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild 2017-08-03 04:13:52 +00:00
Fedora Release Engineering 7ca172e1e3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild 2017-07-27 01:26:28 +00:00
Richard W.M. Jones b5cdf29653 OCaml 4.04.2 rebuild. 2017-06-27 12:43:19 +01:00
Richard W.M. Jones 104ae86fe1 OCaml 4.04.1 rebuild. 2017-05-13 12:02:22 +01:00
Fedora Release Engineering 924fabec46 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild 2017-02-11 00:29:42 +00:00
Richard W.M. Jones 6f36366739 New upstream version 4.2.2. 2016-11-05 10:00:38 +00:00
Fedora Release Engineering e9a166363f - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild 2016-02-04 11:05:06 +00:00
Bruno Wolff III 35503329e3 devel shouldn't own all doc files
Since the -devel package requires the main package it doesn't need to
own the doc directory or include the license file.
2015-08-16 15:47:58 -05:00
Bruno Wolff III 1f2a5033b3 Don't use %doc to copy over htmlref
%doc was copying the data over for the -devel package to a different
directory than the install step was installing them to. Previously
this wasn't being flagged as an error, but a recent change to rpm
fixed that. So now the files are listed without %doc. Files in the docdir
should get treated as doc files without %doc, so that should be OK.
2015-08-11 19:14:50 -05:00
Bruno Wolff III cd3f5d410f Need to include the package name after docdir 2015-08-11 19:02:55 -05:00
Bruno Wolff III f8910bd07c Fix typos 2015-08-11 18:34:31 -05:00
Bruno Wolff III 8d0bc0577d Doc files were getting installed to a different place
%doc in devel were getting put in a different place than the install
was putting them. The ones from the install were than getting flagged
as not packaged. This way of fixing them doesn't get them marked as
doc packages which isn't really correct.
2015-08-11 18:27:44 -05:00
Bruno Wolff III 44255d83ea Try another work around for %doc change 2015-08-11 18:13:49 -05:00
Bruno Wolff III e8eefd366d Try to indicate directory to fix %doc issue 2015-08-11 18:00:28 -05:00
Richard W.M. Jones 0223d54764 Bump release and rebuild. 2015-07-28 22:55:42 +01:00
Richard W.M. Jones 1e37050770 OCaml 4.02.3 rebuild. 2015-07-28 22:41:33 +01:00
Richard W.M. Jones 79949d3643 Enable bytecode compilation. 2015-07-22 16:18:41 +01:00
Richard W.M. Jones b73f3ccad5 ocaml-4.02.2 final rebuild. 2015-06-24 22:23:51 +01:00
Richard W.M. Jones 17bdece183 ocaml-4.02.2 rebuild. 2015-06-18 13:30:57 +01:00
Dennis Gilmore 1b97869958 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild 2015-06-17 23:33:06 +00:00
Richard W.M. Jones 707156e911 ocaml-4.02.1 rebuild. 2015-02-17 14:24:41 +00:00
Bruno Wolff III e6c8dda271 Rebuild to work with updated dependencies 2014-10-31 08:34:39 -05:00
Richard W.M. Jones 76a48b9d0b ocaml-4.02.0 final rebuild. 2014-08-31 12:15:56 +01:00
Richard W.M. Jones 2ae1afb4d4 Kill -warn-error A so we can build on OCaml 4.02.
This doesn't fix all the build problems.  The next one is that both
<caml/config.h> and <tiffio.h> define a type called 'int64'.

I'm going to bother OCaml upstream about this and try to get it fixed,
but even if successful that will take a long time.
2014-08-19 18:48:16 +01:00
Peter Robinson 13cdb41bde - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild 2014-08-17 12:45:49 +00:00
Bruno Wolff III 1319c32312 Rebuild for ocaml update 2014-07-15 07:19:22 -05:00
Dennis Gilmore 971f1c6e44 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild 2014-06-07 10:32:26 -05:00
Ville Skyttä a57cff48a4 Fix -debuginfo, enable exif and rgb.txt support (#1009155). 2013-12-27 18:56:30 +02:00
Bruno Wolff III c2df231825 Try to get actual debugging output
There was a report that the debug files didn't have any output in
them so, I am trying again.
2013-09-27 20:44:25 -05:00
Bruno Wolff III c4f8819fc1 The patch for libpng 15+ is no longer needed 2013-09-15 08:14:53 -05:00
Bruno Wolff III cdef64b3e7 Allow debug info to be created 2013-09-15 08:12:06 -05:00
Bruno Wolff III a96ff9f101 Update to 4.1.0
It's hard to find, but it looks like 4.1.0 has been released and this
branch shouldn't be changing. The 4.1.1 branch is getting recent commits
so we'll stay away from that for now.
2013-09-15 08:02:33 -05:00
Bruno Wolff III c0835eef7a Rebuild for OCaml 4.01.0 2013-09-14 08:15:08 -05:00
Bruno Wolff III ef02749f11 Fix typo in date 2013-08-11 11:06:18 -05:00
Bruno Wolff III edfe3cbeaf Move to unversioned doc directory
Also fixes FTBFS 992390.
2013-08-11 10:51:49 -05:00
Dennis Gilmore 1e46db0fdf - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild 2013-08-03 09:48:50 -05:00
Dennis Gilmore e46847e060 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild 2013-02-14 02:55:33 -06:00
Adam Tkac be6519d704 Rebuild due to "jpeg8-ABI" feature drop
Signed-off-by: Adam Tkac <atkac@redhat.com>
2013-01-21 15:50:09 +01:00
Adam Tkac dfc6d59240 rebuild against new libjpeg
Signed-off-by: Adam Tkac <vonsch@gmail.com>
2012-12-21 18:30:19 +01:00
Bruno Wolff III 2b83cdb219 Rebuild for ocaml 4.0.1 2012-10-17 21:05:38 -05:00
Bruno Wolff III 9702409130 Rebuild for ocaml 4.0.0 final 2012-07-29 07:46:06 -05:00
Dennis Gilmore 532affe849 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild 2012-07-20 00:52:05 -05:00
Bruno Wolff III 9a2df4e273 Rebuild for new ocaml 2012-06-08 21:38:16 -05:00
Bruno Wolff III 7467cdc054 Rebuild for new libtiff 2012-05-11 09:46:43 -05:00
Bruno Wolff III baa6cc3b54 Forgot to actually add the spec file 2012-03-12 08:01:56 -05:00
Bruno Wolff III 9860be4466 Import other files 2012-03-12 07:51:29 -05:00
Bruno Wolff III 3366e102d2 Import spec file 2012-03-12 07:46:23 -05:00
Richard W.M. Jones f068b499ad End of life.
This is the note from dead.package:

----------------------------------------------------------------------

This package has known security issues, and I got no help from
upstream to solve them.  In fact upstream is mostly silent / dead.
Therefore I have removed it from Fedora.

If you want to add the package back to Fedora, please note that
you are going to need to fix all the security problems and
take an active role in maintaining the package too.

----------------------------------------------------------------------
2011-02-03 14:23:13 +00:00
Fedora Release Engineering 372776ef5d dist-git conversion 2010-07-29 17:51:52 +00:00
10 changed files with 299 additions and 331 deletions

View File

@ -2,3 +2,8 @@ camlimages-2.2.0-htmlref.tar.gz
camlimages-2.2.0.tgz
camlimages-3.0.1.tar.gz
camlimages-3.0.2.tgz
/v4.0.1.tar.gz
/4.1.0.tar.gz
/4.2.2.tar.gz
/4.2.4.tar.gz
/4.2.5.tar.gz

View File

@ -1,21 +0,0 @@
# Makefile for source rpm: ocaml-camlimages
# $Id: Makefile,v 1.1 2007/05/05 15:58:27 ausil Exp $
NAME := ocaml-camlimages
SPECFILE = $(firstword $(wildcard *.spec))
define find-makefile-common
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$d/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
endef
MAKEFILE_COMMON := $(shell $(find-makefile-common))
ifeq ($(MAKEFILE_COMMON),)
# attept a checkout
define checkout-makefile-common
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
endef
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
endif
include $(MAKEFILE_COMMON)

View File

@ -1,23 +0,0 @@
--- camlimages-3.0.2/examples/liv/liv.ml 2009-10-26 12:42:03.000000000 +0000
+++ camlimages-3.0.2.display/examples/liv/liv.ml 2010-01-12 15:13:21.414300958 +0000
@@ -19,7 +19,7 @@
;;
*)
-module D = Display
+module D = Livdisplay
open D
open Gc
diff -ur camlimages-3.0.1.orig/examples/liv/Makefile.am camlimages-3.0.1/examples/liv/Makefile.am
--- camlimages-3.0.1.orig/examples/liv/Makefile.am 2007-05-21 19:54:32.000000000 +0100
+++ camlimages-3.0.1/examples/liv/Makefile.am 2008-11-03 17:15:54.000000000 +0000
@@ -23,7 +23,7 @@
seq.ml \
tout.ml \
enhance.ml \
- display.ml \
+ livdisplay.ml \
viewer.ml \
edge.ml \
pathfind.ml \

View File

@ -1,12 +0,0 @@
--- camlimages-3.0.2/configure.ac 2009-10-26 12:42:04.000000000 +0000
+++ camlimages-3.0.2.autoconf/configure.ac 2010-01-12 15:23:49.179300765 +0000
@@ -4,8 +4,7 @@
AM_INIT_AUTOMAKE([foreign])
# Check ocaml
-AC_PROG_OCAML([3.08])
-AC_PROG_OCAML_TOOL(OCAMLMKLIB, ocamlmklib)
+AC_PROG_OCAML
AC_SUBST(OCAMLLIB)
# Check versions to build

View File

@ -0,0 +1,24 @@
diff -ur camlspotter-camlimages-8ca76028cff3.old/OMakefile camlspotter-camlimages-8ca76028cff3/OMakefile
--- camlspotter-camlimages-8ca76028cff3.old/OMakefile 2017-11-20 10:50:59.000000000 +0000
+++ camlspotter-camlimages-8ca76028cff3/OMakefile 2017-11-22 14:19:46.903902025 +0000
@@ -19,7 +19,7 @@
# For release, -warn-error should not be put
# OCAMLFLAGS= -w A-4-9-35-37-40-41-42-44-45-48
-OCAMLFLAGS= -w A-3-4-9-37-40-41-42-44-45-41-48-50 -safe-string
+OCAMLFLAGS= -w A-3-4-9-37-40-41-42-44-45-41-48-50 -safe-string -g
# For the development, -warn-error A is turned on
if $(file-exists DEV)
diff -ur camlspotter-camlimages-8ca76028cff3.old/OMyMakeroot camlspotter-camlimages-8ca76028cff3/OMyMakeroot
--- camlspotter-camlimages-8ca76028cff3.old/OMyMakeroot 2017-11-20 10:50:59.000000000 +0000
+++ camlspotter-camlimages-8ca76028cff3/OMyMakeroot 2017-11-22 14:19:32.461902772 +0000
@@ -133,7 +133,7 @@
OCamlMkLibC(name, files, ldflags) =
protected.COBJS=$(addsuffix .o, $(files))
dll$(name).so lib$(name).a: $(COBJS)
- $(OCAMLMKLIB) -o $(name) $(LDFLAGS) $(ldflags) $(COBJS)
+ $(OCAMLMKLIB) -g -o $(name) $(LDFLAGS) $(ldflags) $(COBJS)
return $(array dll$(name).so, lib$(name).a)
# If ocamlmklib does not work for you, you can do:

View File

@ -0,0 +1,33 @@
--- ./camlspotter-camlimages-8ca76028cff3.old/examples/tiffps/tiffps.ml 2017-11-20 10:50:59.000000000 +0000
+++ ./camlspotter-camlimages-8ca76028cff3/examples/tiffps/tiffps.ml 2017-11-22 14:24:13.276888193 +0000
@@ -58,7 +58,7 @@
(* Scanlined loader *)
type scanlined_loader = {
- read_next_line: (string -> unit);
+ read_next_line: (bytes -> unit);
close: (unit -> unit)
}
@@ -410,7 +410,7 @@
function x ->
let adrs = x * 3 in
for i = 0 to 2 do
- print_string (sprintf "%02x" (Char.code buf.[adrs+i]))
+ print_string (sprintf "%02x" (Char.code (Bytes.get buf (adrs+i))))
done
else
let mono r g b =
@@ -418,9 +418,9 @@
function x ->
let adrs = x * 3 in
let m =
- mono (Char.code buf.[adrs])
- (Char.code buf.[adrs + 1])
- (Char.code buf.[adrs + 2]) in
+ mono (Char.code (Bytes.get buf adrs))
+ (Char.code (Bytes.get buf (adrs + 1)))
+ (Char.code (Bytes.get buf (adrs + 2))) in
for _i = 0 to 2 do print_string (sprintf "%02x" m) done in
if not conf.mirror
then for x = x1 to x1 + w - 1 do print_pixel x done

View File

@ -1,81 +0,0 @@
--- camlimages-3.0.1.orig/src/pngread.c 2007-01-18 10:29:57.000000000 +0000
+++ camlimages-3.0.1.oversized/src/pngread.c 2009-07-03 15:51:00.000000000 +0100
@@ -15,6 +15,8 @@
#include "config.h"
#endif
+#include <limits.h>
+
#include <png.h>
#include <caml/mlvalues.h>
@@ -26,6 +28,12 @@
#define PNG_TAG_INDEX16 2
#define PNG_TAG_INDEX4 3
+/* Test if x or y are negative, or if multiplying x * y would cause an
+ * arithmetic overflow.
+ */
+#define oversized(x, y) \
+ ((x) < 0 || (y) < 0 || ((y) != 0 && (x) > INT_MAX / (y)))
+
value read_png_file_as_rgb24( name )
value name;
{
@@ -81,6 +89,9 @@
png_get_IHDR(png_ptr, info_ptr, &width, &height, &bit_depth, &color_type,
&interlace_type, NULL, NULL);
+ if (oversized (width, height))
+ failwith ("png error: image contains oversized or bogus width and height");
+
if ( color_type == PNG_COLOR_TYPE_GRAY ||
color_type == PNG_COLOR_TYPE_GRAY_ALPHA ) {
png_set_gray_to_rgb(png_ptr);
@@ -102,10 +113,16 @@
rowbytes = png_get_rowbytes(png_ptr, info_ptr);
+ if (oversized (rowbytes, height))
+ failwith ("png error: image contains oversized or bogus rowbytes and height");
+
{
int i;
png_bytep *row_pointers;
+ if (oversized (sizeof (png_bytep), height))
+ failwith ("png error: image contains oversized or bogus height");
+
row_pointers = (png_bytep*) stat_alloc(sizeof(png_bytep) * height);
res = alloc_tuple(3);
@@ -235,6 +252,9 @@
png_get_IHDR(png_ptr, info_ptr, &width, &height, &bit_depth, &color_type,
&interlace_type, NULL, NULL);
+ if (oversized (width, height))
+ failwith ("png error: image contains oversized or bogus width and height");
+
if ( color_type == PNG_COLOR_TYPE_GRAY ||
color_type == PNG_COLOR_TYPE_GRAY_ALPHA ) {
png_set_gray_to_rgb(png_ptr);
@@ -251,6 +271,9 @@
rowbytes = png_get_rowbytes(png_ptr, info_ptr);
+ if (oversized (rowbytes, height))
+ failwith ("png error: image contains oversized or bogus rowbytes and height");
+
/*
fprintf(stderr, "pngread.c: actual loading\n"); fflush(stderr);
*/
@@ -259,6 +282,9 @@
png_bytep *row_pointers;
char mesg[256];
+ if (oversized (sizeof (png_bytep), height))
+ failwith ("png error: image contains oversized or bogus height");
+
row_pointers = (png_bytep*)stat_alloc(sizeof(png_bytep) * height);
res = alloc_tuple(3);

View File

@ -1,27 +0,0 @@
--- camlimages-3.0.1.old/src/tiffread.c 2007-01-18 10:29:57.000000000 +0000
+++ camlimages-3.0.1/src/tiffread.c 2009-10-16 10:26:53.841258260 +0100
@@ -21,6 +21,13 @@
#include <caml/memory.h>
#include <caml/fail.h>
+#include <limits.h>
+#define oversized(x, y) \
+ ((x) < 0 || (y) < 0 || ((y) != 0 && (x) > INT_MAX / (y)))
+
+#define failwith_oversized(lib) \
+ failwith("#lib error: image contains oversized or bogus width and height");
+
/* These are defined in caml/config.h */
#define int16 int16tiff
#define uint16 uint16tiff
@@ -64,6 +71,10 @@
TIFFGetField(tif, TIFFTAG_YRESOLUTION, &yres);
TIFFGetField(tif, TIFFTAG_PHOTOMETRIC, &photometric);
+ if (oversized (imagewidth, imagelength)) {
+ failwith_oversized("tiff");
+ }
+
if( imagesample == 3 && photometric == PHOTOMETRIC_RGB ){
if( imagebits != 8 ){
failwith("Sorry, tiff rgb file must be 24bit-color");

View File

@ -1,65 +1,46 @@
%global opt %(test -x %{_bindir}/ocamlopt && echo 1 || echo 0)
%global debug_package %{nil}
%global _default_patch_fuzz 2
# XXX This indicates a bug somewhere. We are not passing the -g flag
# through when creating the libraries. However I cannot see exactly
# what is wrong.
%undefine _debugsource_packages
Name: ocaml-camlimages
Version: 3.0.2
Release: 7%{?dist}
Version: 4.2.5
Release: 28%{?dist}
Summary: OCaml image processing library
Group: Development/Libraries
License: LGPLv2 with exceptions
URL: http://cristal.inria.fr/camlimages/eng.html
Source0: http://cristal.inria.fr/camlimages/camlimages-%{version}.tgz
URL: http://gallium.inria.fr/camlimages/
Source0: https://bitbucket.org/camlspotter/camlimages/get/%{version}.tar.gz
# This file isn't published any more (that I could find).
# It's probably dated but at least should provide some info on how to
# use the library.
Source1: camlimages-2.2.0-htmlref.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
ExcludeArch: sparc64 s390 s390x
Patch0: camlimages-3.0.2-display-module.patch
Patch1: camlimages-4.2.5-add-g-flag.patch
# Fix an example which has safe-string problems.
Patch2: camlimages-4.2.5-safe-string.patch
# https://bugzilla.redhat.com/show_bug.cgi?id=509531#c4
# Now upstream in 3.0.2.
#Patch1: camlimages-oversized-png-check-CVE-2009-2295.patch
# https://bugzilla.redhat.com/show_bug.cgi?id=528732
# NOT upstream in 3.0.2.
Patch2: camlimages-oversized-tiff-check-CVE-2009-3296.patch
# This is paradoxically only needed because we are rerunning aclocal
# which will use the new ocaml-autoconf that has slightly different
# macros.
Patch3: camlimages-3.0.2-ocaml-autoconf.patch
BuildRequires: ocaml >= 3.10.1
BuildRequires: ocaml, ocaml-findlib-devel, ocaml-omake
BuildRequires: ocaml-lablgtk-devel
BuildRequires: ocaml-x11
BuildRequires: lablgtk, libpng-devel, libjpeg-devel
BuildRequires: libXpm-devel, ghostscript-devel, freetype-devel
BuildRequires: rgb
BuildRequires: libpng-devel, libjpeg-devel, libexif-devel
BuildRequires: libXpm-devel, libgs-devel, freetype-devel
BuildRequires: giflib-devel
BuildRequires: libtiff-devel
BuildRequires: gtk2-devel
BuildRequires: libtool, automake, autoconf
BuildRequires: ocaml-autoconf
%global __ocaml_requires_opts -i Image_intf
Requires: rgb
%description
CamlImages is an image processing library for Objective CAML, which provides:
basic functions for image processing and loading/saving, various image file
formats (hence providing a translation facility from format to format),
and an interface with the Caml graphics library allows to display images
in the Graphics module screen and to mix them with Caml drawings
In addition, the library can handle huge images that cannot be (or can hardly
be) stored into the main memory (the library then automatically creates swap
files and escapes them to reduce the memory usage).
This is an image processing library, which provides some basic
functions of image processing and loading/saving various image file
formats. In addition the library can handle huge images that cannot be
(or can hardly be) stored into the memory (the library automatically
creates swap files and escapes them to reduce the memory usage).
%package devel
Summary: Development files for camlimages
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
@ -68,173 +49,262 @@ developing applications using camlimages
Includes documentation provided by ocamldoc
%prep
%setup -q -n camlimages-%{version} -a 1
# Gdk.Display submodule clashes with the Display module in
# the examples/liv directory, so rename it:
%patch0 -p1
%patch2 -p1
%patch3 -p1
aclocal -I .
automake
autoconf
mv examples/liv/display.ml examples/liv/livdisplay.ml
%setup -q -n camlspotter-camlimages-8ca76028cff3
%setup -q -T -D -a 1 -n camlspotter-camlimages-8ca76028cff3
%patch1 -p1
%patch2 -p2
%build
%configure
# Hack to fix RHBZ#564798. It's completely unclear why this fails
# in Koji when it works perfectly well for me locally.
echo image_intf.cmi: image_intf.mli >> src/.depend
echo mylazy.cmi: mylazy.mli >> examples/liv/.depend
make
omake CFLAGS="$RPM_OPT_FLAGS" --verbose
%install
rm -rf $RPM_BUILD_ROOT
make install ocamlsitelibdir=%{_libdir}/ocaml/camlimages DESTDIR=$RPM_BUILD_ROOT
strip $RPM_BUILD_ROOT%{_libdir}/ocaml/stublibs/dllcamlimages.so \
$RPM_BUILD_ROOT%{_libdir}/ocaml/stublibs/dllcamlimages_core.so
%clean
rm -rf $RPM_BUILD_ROOT
# These rules work if the library uses 'ocamlfind install' to install itself.
export DESTDIR=$RPM_BUILD_ROOT
export OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml
mkdir -p $OCAMLFIND_DESTDIR $OCAMLFIND_DESTDIR/stublibs
omake install
mkdir -p $RPM_BUILD_ROOT/usr/share/doc/ocaml-camlimages
cp -pr License.txt htmlref $RPM_BUILD_ROOT/usr/share/doc/ocaml-camlimages
%files
%defattr(-,root,root,-)
%doc INSTALL README
%doc README.md License.txt
%{_libdir}/ocaml/camlimages
%{_libdir}/ocaml/stublibs/*.so
%if %opt
%exclude %{_libdir}/ocaml/camlimages/*.a
%ifarch %{ocaml_native_compiler}
%exclude %{_libdir}/ocaml/camlimages/*.cmxa
%endif
# There aren't any *.cmx files
#%exclude %{_libdir}/ocaml/camlimages/*.cmx
%exclude %{_libdir}/ocaml/camlimages/*.mli
%{_libdir}/ocaml/stublibs/*.so
%{_libdir}/ocaml/stublibs/*.so.owner
%files devel
%defattr(-,root,root,-)
%doc doc/*.{html,jpg}
%if %opt
%{_docdir}/%{name}/htmlref/
%{_libdir}/ocaml/camlimages/*.a
%ifarch %{ocaml_native_compiler}
%{_libdir}/ocaml/camlimages/*.cmxa
%endif
# There aren't any *.cmx files
#%{_libdir}/ocaml/camlimages/*.cmx
%{_libdir}/ocaml/camlimages/*.mli
%changelog
* Wed Jan 12 2010 Richard W.M. Jones <rjones@redhat.com> - 3.0.2-7
- Fix FTBFS RHBZ#564798.
* Mon Mar 1 19:41:31 GMT 2021 Richard W.M. Jones <rjones@redhat.com> - 4.2.5-28
- OCaml 4.12.0 build
* Wed Jan 12 2010 Richard W.M. Jones <rjones@redhat.com> - 3.0.2-2
- Ignore broken dependency from submodule (Image_intf).
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.5-27
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Tue Jan 12 2010 Richard W.M. Jones <rjones@redhat.com> - 3.0.2-1
- New upstream version 3.0.2.
- Fix URL and source URL.
- Rebase Display->Livdisplay patch.
- Remove png check CVE patch (now upstream).
- RETAIN tiff check CVE patch (NOT upstream).
- Replace %%define with %%global.
- Use upstream RPM 4.8 OCaml dependency generator.
- Fix configure.ac, also we now BR ocaml-autoconf.
- Recheck package with rpmlint:
. Strip dllcamlimages_core.so
* Tue Sep 01 2020 Richard W.M. Jones <rjones@redhat.com> - 4.2.5-26
- OCaml 4.11.1 rebuild
* Wed Dec 30 2009 Richard W.M. Jones <rjones@redhat.com> - 3.0.1-15
- Rebuild for OCaml 3.11.2.
* Fri Aug 21 2020 Richard W.M. Jones <rjones@redhat.com> - 4.2.5-25
- OCaml 4.11.0 rebuild
* Fri Oct 16 2009 Richard W.M. Jones <rjones@redhat.com> - 3.0.1-14
- ocaml-camlimages: TIFF reader multiple integer overflows
(CVE 2009-3296 / RHBZ#528732).
* Tue Jul 28 2020 Adam Jackson <ajax@redhat.com> - 4.2.5-24
- {Build,}Require rgb not xorg-x11-server-utils
* Tue Sep 29 2009 Richard W.M. Jones <rjones@redhat.com> - 3.0.1-12
- Force rebuild against newer lablgtk.
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.5-23
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.1-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
* Mon May 04 2020 Richard W.M. Jones <rjones@redhat.com> - 4.2.5-22
- OCaml 4.11.0+dev2-2020-04-22 rebuild
* Fri Jul 3 2009 Richard W.M. Jones <rjones@redhat.com> - 3.0.1-10
- ocaml-camlimages: PNG reader multiple integer overflows
(CVE 2009-2295 / RHBZ#509531).
* Tue Apr 21 2020 Richard W.M. Jones <rjones@redhat.com> - 4.2.5-21
- OCaml 4.11.0 pre-release attempt 2
* Sat May 23 2009 Richard W.M. Jones <rjones@redhat.com> - 3.0.1-8
- Rebuild for OCaml 3.11.1
* Fri Apr 17 2020 Richard W.M. Jones <rjones@redhat.com> - 4.2.5-20
- OCaml 4.11.0 pre-release
* Thu Apr 16 2009 S390x secondary arch maintainer <fedora-s390x@lists.fedoraproject.org>
- ExcludeArch sparc64, s390, s390x as we don't have OCaml on those archs
(added sparc64 per request from the sparc maintainer)
* Fri Apr 03 2020 Richard W.M. Jones <rjones@redhat.com> - 4.2.5-19
- Update all OCaml dependencies for RPM 4.16.
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.1-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
* Wed Feb 26 2020 Richard W.M. Jones <rjones@redhat.com> - 4.2.5-18
- OCaml 4.10.0 final.
* Sat Feb 7 2009 Richard W.M. Jones <rjones@redhat.com> - 3.0.1-6
- Rebuild against updated lablgtk.
* Thu Feb 06 2020 Richard W.M. Jones <rjones@redhat.com> - 4.2.5-17
- Remove bogus "lablgtk" dependency.
* Fri Dec 5 2008 Richard W.M. Jones <rjones@redhat.com> - 3.0.1-5
- Rebuild.
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.5-16
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Thu Dec 4 2008 Richard W.M. Jones <rjones@redhat.com> - 3.0.1-4
- Rebuild.
* Sun Jan 19 2020 Richard W.M. Jones <rjones@redhat.com> - 4.2.5-15
- OCaml 4.10.0+beta1 rebuild.
* Mon Nov 3 2008 Richard W.M. Jones <rjones@redhat.com> - 3.0.1-3
- +BR gtk2-devel.
- +BR ocaml-x11.
* Thu Jan 09 2020 Richard W.M. Jones <rjones@redhat.com> - 4.2.5-14
- OCaml 4.09.0 for riscv64
* Mon Nov 3 2008 Richard W.M. Jones <rjones@redhat.com> - 3.0.1-1
- Home page moved (fixes rhbz 468158).
- New upstream version 3.0.1 and multiple build fixes for this.
- License is really LGPLv2 with the OCaml linking exception.
- Removed the DESTDIR patch.
- Build tiff support.
- Run it through rpmlint and fix all problems.
* Fri Dec 06 2019 Richard W.M. Jones <rjones@redhat.com> - 4.2.5-13
- OCaml 4.09.0 (final) rebuild.
* Thu Aug 28 2008 Richard W.M. Jones <rjones@redhat.com> - 2.2.0-13
- Rebuild with patch fuzz.
* Fri Aug 16 2019 Richard W.M. Jones <rjones@redhat.com> - 4.2.5-12
- OCaml 4.08.1 (final) rebuild.
* Mon Aug 11 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 2.2.0-12
- fix license tag
* Sat Aug 10 2019 Richard W.M. Jones <rjones@redhat.com> - 4.2.5-11
- Rebuild against new ocaml-lablgtk.
* Wed Apr 23 2008 Richard W.M. Jones <rjones@redhat.com> - 2.2.0-11
- Rebuild for OCaml 3.10.2
* Thu Aug 01 2019 Richard W.M. Jones <rjones@redhat.com> - 4.2.5-10
- OCaml 4.08.1 (rc2) rebuild.
* Sat Mar 1 2008 Richard W.M. Jones <rjones@redhat.com> 2.2.0-10
- Rebuild for ppc64.
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.5-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Wed Feb 13 2008 Richard W.M. Jones <rjones@redhat.com> 2.2.0-9
- Rebuild for OCaml 3.10.1
- Fix paths to conform to packaging policy.
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.5-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Wed May 09 2007 Nigel Jones <dev@nigelj.com> 2.2.0-8
- Exclude ppc64 builds due to missing ocaml
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.5-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Fri May 04 2007 Nigel Jones <dev@nigelj.com> 2.2.0-7
- Change to Makefile patch to move .so files to stublibs
- Rename to ocaml-camlimages
- Other changes per review
* Wed Jul 11 2018 Richard W.M. Jones <rjones@redhat.com> - 4.2.5-6
- OCaml 4.07.0 (final) rebuild.
* Thu May 03 2007 Nigel Jones <dev@nigelj.com> 2.2.0-6
- Include .*a files just to make sure
* Wed Jun 20 2018 Richard W.M. Jones <rjones@redhat.com> - 4.2.5-5
- OCaml 4.07.0-rc1 rebuild.
* Thu May 03 2007 Nigel Jones <dev@nigelj.com> 2.2.0-5
- Revert -4 changes
- Remove excludedirs patch, replace with a sed
- Provide html documentation generated from running ocaml-ocamldoc
* Sun Feb 11 2018 Sandro Mani <manisandro@gmail.com> - 4.2.5-4
- Rebuild (giflib)
* Thu Apr 26 2007 Nigel Jones <dev@nigelj.com> 2.2.0-4
- Add Provides: camlimages-static, and LICENSE to -devel docs
* Fri Feb 09 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 4.2.5-3
- Escape macros in %%changelog
* Thu Apr 12 2007 Nigel Jones <dev@nigelj.com> 2.2.0-3
- Remove .a & .o files
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.5-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Wed Apr 11 2007 Nigel Jones <dev@nigelj.com> 2.2.0-2
- Add missing dependencies
* Wed Nov 22 2017 Richard W.M. Jones <rjones@redhat.com> - 4.2.5-1
- New upstream version 4.2.5.
- New version fixes compatibility with latest lablgtk.
* Tue Apr 10 2007 Nigel Jones <dev@nigelj.com> 2.2.0-1
- Initial spec file
* Fri Nov 17 2017 Richard W.M. Jones <rjones@redhat.com> - 4.2.4-2
- OCaml 4.06.0 rebuild.
* Wed Aug 09 2017 Richard W.M. Jones <rjones@redhat.com> - 4.2.4-1
- New upstream version 4.2.4.
- Replace opt test with ocaml_native_compiler.
- Pass -g option to ocamlopt so debuginfo is generated correctly.
* Tue Aug 08 2017 Richard W.M. Jones <rjones@redhat.com> - 4.2.2-7
- OCaml 4.05.0 rebuild.
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.2-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.2-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
* Tue Jun 27 2017 Richard W.M. Jones <rjones@redhat.com> - 4.2.2-4
- OCaml 4.04.2 rebuild.
* Sat May 13 2017 Richard W.M. Jones <rjones@redhat.com> - 4.2.2-3
- OCaml 4.04.1 rebuild.
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
* Sat Nov 05 2016 Richard W.M. Jones <rjones@redhat.com> - 4.2.2-1
- New upstream version 4.2.2.
- Drop patch for exif handling which is included upstream.
- Drop patch for warn-error since this is fixed upstream.
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.0-19
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
* Sun Aug 16 2015 Bruno Wolff III <bruno@wolff.to> - 4.1.0-18
- devel shouldn't cover all doc files
* Tue Aug 11 2015 Bruno Wolff III <bruno@wolff.to> - 4.1.0-17
- Don't use %%doc to copy over htmlref for -devel package
* Tue Jul 28 2015 Richard W.M. Jones <rjones@redhat.com> - 4.1.0-16
- Bump release and rebuild.
* Tue Jul 28 2015 Richard W.M. Jones <rjones@redhat.com> - 4.1.0-15
- OCaml 4.02.3 rebuild.
* Wed Jul 22 2015 Richard W.M. Jones <rjones@redhat.com> - 4.1.0-14
- Enable bytecode compilation.
* Wed Jun 24 2015 Richard W.M. Jones <rjones@redhat.com> - 4.1.0-13
- ocaml-4.02.2 final rebuild.
* Thu Jun 18 2015 Richard W.M. Jones <rjones@redhat.com> - 4.1.0-12
- ocaml-4.02.2 rebuild.
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.1.0-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
* Tue Feb 17 2015 Richard W.M. Jones <rjones@redhat.com> - 4.1.0-10
- ocaml-4.02.1 rebuild.
* Fri Oct 31 2014 Bruno Wolff III <bruno@wolff.to> - 4.1.0-9
- Rebuild to link with updated dependencies
* Sun Aug 31 2014 Richard W.M. Jones <rjones@redhat.com> - 4.1.0-8
- ocaml-4.02.0 final rebuild.
* Tue Aug 19 2014 Richard W.M. Jones <rjones@redhat.com> - 4.1.0-7
- Kill -warn-error A so we can build on OCaml 4.02.
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.1.0-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
* Tue Jul 15 2014 Bruno Wolff III <bruno@wolff.to> - 4.1.0-5
- Rebuild for ocaml update
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.1.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
* Wed Dec 25 2013 Ville Skyttä <ville.skytta@iki.fi> - 4.1.0-3
- Fix -debuginfo, enable exif and rgb.txt support (#1009155).
* Fri Sep 27 2013 Bruno Wolff III <bruno@wolff.to> - 4.1.0-2
- Try to get actual debug output
* Sun Sep 15 2013 Bruno Wolff III <bruno@wolff.to> - 4.1.0-1
- Update to 4.1.0
- Enable debug output
- Patch for recent libpng is no longer needed
* Sat Sep 14 2013 Bruno Wolff III <bruno@wolff.to> - 4.0.1-13
- Rebuild for OCaml 4.01.0
* Sun Aug 11 2013 Bruno Wolff III <bruno@wolff.to> - 4.0.1-12
- Move to unversioned doc directory
- Fixes FTBFS bug 992390
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.0.1-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.0.1-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
* Mon Jan 21 2013 Adam Tkac <atkac redhat com> - 4.0.1-9
- rebuild due to "jpeg8-ABI" feature drop
* Fri Dec 21 2012 Adam Tkac <atkac redhat com> - 4.0.1-8
- rebuild against new libjpeg
* Wed Oct 17 2012 Bruno Wolff III <bruno@wolff.to> - 4.0.1-7
- Rebuild for ocaml 4.0.1
* Sun Jul 29 2012 Bruno Wolff III <bruno@wolff.to> - 4.0.1-6
- Rebuild for ocaml 4.0.0 final
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.0.1-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
* Fri Jun 08 2012 Bruno Wolff III <bruno@wolff.to> - 4.0.1-4
- Rebuild for new ocaml
* Fri May 11 2012 Bruno Wolff III <bruno@wolff.to> - 4.0.1-3
- Rebuild for new libtiff
* Sat Mar 10 2012 Bruno Wolff III <bruno@wolff.to> - 4.0.1-2
- Fixup "should fixes" from review
* Sun Jan 29 2012 Bruno Wolff III <bruno@wolff.to> - 4.0.1-1
- Resurrect ocaml-camlimages

View File

@ -1,2 +1,2 @@
fb1633c9c8df0b2b2d0f892d8c4ac2ee camlimages-2.2.0-htmlref.tar.gz
ccb2551232df255f6306941d26d07615 camlimages-3.0.2.tgz
SHA512 (camlimages-2.2.0-htmlref.tar.gz) = 20cc6b7d92494f2e38700e9c9aed0d9663bed857662037a532241e60a80c5a2dcb308426007c50dfcfbf718098e930fd886ecdc22d5b8c168d08b4f287ab4d02
SHA512 (4.2.5.tar.gz) = 8ca5f4f9c49dc2ad86dac3da640422f45816f510ace5fba975eda0046e4973b624d13022b50a4d5f93d425d0fe1e126ca7a008f3421b8383f43ca7c27442bceb