File zphoto.diff of Package zphoto
--- templates/default/all/Makefile.am.orig 2007-12-24 00:40:27.000000000 +0100
+++ templates/default/all/Makefile.am 2007-12-24 00:40:59.000000000 +0100
@@ -1,4 +1,4 @@
-templatesdir = $(pkgdatadir)/templates/default/all
+templatesdir = $(DESTDIR)$(pkgdatadir)/templates/default/all
templates_DATA = zphoto.css .photo.html flash-colors.txt css-colors.txt
zphoto.css: $(top_srcdir)/templates/default/zphoto.css
--- util.c.orig 2007-12-24 01:01:14.000000000 +0100
+++ util.c 2007-12-24 01:02:04.000000000 +0100
@@ -389,7 +389,7 @@
zphoto_get_image_suffixes (void)
{
static char *empty[] = { NULL };
- static char *suffixes[] = { "jpg", "png", "gif", "bmp", NULL };
+ static char *suffixes[] = { "jpeg", "jpg", "png", "gif", "bmp", NULL };
if (zphoto_support_image_p()) {
return suffixes;
--- exif.c.orig 2007-12-24 01:03:54.000000000 +0100
+++ exif.c 2007-12-24 01:04:58.000000000 +0100
@@ -46,14 +46,14 @@
static int
is_little_endian ()
{
- static long retval = -1;
+ static int retval = -1;
if (retval == -1) {
- long n = 1;
+ int n = 1;
char *p = (char *)&n;
char x[] = {1, 0, 0, 0};
- assert(sizeof(long) == 4);
+ assert(sizeof(int) == 4);
if (memcmp(p, x, 4) == 0) {
retval = 1;
} else {