diff --git a/libexif-0.6.12-gcc4.patch b/libexif-0.6.12-gcc4.patch new file mode 100644 index 0000000..3dfec4b --- /dev/null +++ b/libexif-0.6.12-gcc4.patch @@ -0,0 +1,11 @@ +--- libexif-0.6.12/libexif/exif-utils.c.gcc4 2005-03-28 16:40:50.000000000 -0500 ++++ libexif-0.6.12/libexif/exif-utils.c 2005-03-28 16:41:09.000000000 -0500 +@@ -83,7 +83,7 @@ + } + } + +-static ExifSShort ++ExifSShort + exif_get_sshort (const unsigned char *buf, ExifByteOrder order) + { + if (!buf) return 0; diff --git a/libexif.spec b/libexif.spec index d48b1d0..e9e0789 100644 --- a/libexif.spec +++ b/libexif.spec @@ -8,6 +8,8 @@ URL: http://libexif.sourceforge.net/ Source0: http://umn.dl.sourceforge.net/sourceforge/libexif/%{name}-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot +Patch0: libexif-0.6.12-gcc4.patch + %description Most digital cameras produce EXIF files, which are JPEG files with extra tags that contain information about the image. The EXIF library @@ -24,6 +26,7 @@ for writing programs that use libexif. %prep %setup -q +%patch -p1 -b .gcc4 %build %configure