diff --git a/feh-1.3.4-missing-protos.patch b/feh-1.3.4-missing-protos.patch new file mode 100644 index 0000000..4a5228e --- /dev/null +++ b/feh-1.3.4-missing-protos.patch @@ -0,0 +1,43 @@ +diff -up feh-1.3.4/src/md5.c~ feh-1.3.4/src/md5.c +--- feh-1.3.4/src/md5.c~ 2008-04-03 12:04:52.000000000 +0200 ++++ feh-1.3.4/src/md5.c 2008-04-03 12:04:52.000000000 +0200 +@@ -39,6 +39,7 @@ + */ + + #include "md5.h" ++#include + + #ifdef TEST + /* +@@ -46,7 +47,6 @@ + * The test program should print out the same values as given in section + * A.5 of RFC 1321, reproduced below. + */ +-#include + main() + { + static const char *const test[7] = { +diff -up feh-1.3.4/src/support.c~ feh-1.3.4/src/support.c +--- feh-1.3.4/src/support.c~ 2008-04-03 12:04:32.000000000 +0200 ++++ feh-1.3.4/src/support.c 2008-04-03 12:04:32.000000000 +0200 +@@ -233,7 +233,7 @@ feh_wm_set_bg(char *fil, Imlib_Image im, + char *path; + path = estrjoin("/", home, ".fehbg", NULL); + if ((fp = fopen(path, "w")) == NULL) { +- wprintf("Can't open %s for write", path); ++ weprintf("Can't open %s for write", path); + } else { + fprintf(fp, "%s\n", fehbg); + fclose(fp); +diff -up feh-1.3.4/src/feh.h~ feh-1.3.4/src/feh.h +--- feh-1.3.4/src/feh.h~ 2008-04-03 11:56:29.000000000 +0200 ++++ feh-1.3.4/src/feh.h 2008-04-03 11:56:29.000000000 +0200 +@@ -148,7 +148,7 @@ void feh_edit_inplace_lossless_rotate(wi + gib_list * feh_wrap_string(char *text, int wrap_width, int max_height, Imlib_Font fn, gib_style * style); + char *build_caption_filename(feh_file *file); + gib_list * feh_list_jump(gib_list * root, gib_list * l, int direction, int num); +- ++void feh_draw_actions(winwidget w); + + /* Imlib stuff */ + extern Display *disp; diff --git a/feh.spec b/feh.spec index 4c740f4..6006016 100644 --- a/feh.spec +++ b/feh.spec @@ -3,12 +3,13 @@ Name: feh Version: 1.3.4 -Release: 6%{?dist} +Release: 7%{?dist} Summary: Fast command line image viewer using Imlib2 Group: Applications/Multimedia License: MIT URL: http://linuxbrit.co.uk/feh/ Source0: http://linuxbrit.co.uk/downloads/feh-%{version}.tar.gz +Patch0: feh-1.3.4-missing-protos.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: giblib-devel imlib2-devel libjpeg-devel libpng-devel BuildRequires: libXt-devel @@ -23,6 +24,7 @@ montages as index prints with many user-configurable options. %prep %setup -q +%patch0 -p1 %build @@ -49,6 +51,9 @@ rm -rf $RPM_BUILD_ROOT %{_mandir}/man[^3]/* %changelog +* Thu Apr 3 2008 Hans de Goede 1.3.4-7 +- Fix missing prototype compiler warnings + * Tue Feb 19 2008 Fedora Release Engineering - 1.3.4-6 - Autorebuild for GCC 4.3