From fbb82d2a687ce7c544a4d479b9a97b86910bc86c Mon Sep 17 00:00:00 2001 From: Mamoru Tasaka Date: Mar 22 2008 01:18:26 +0000 Subject: Initial commit --- diff --git a/.cvsignore b/.cvsignore index e69de29..c58bc3f 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +cbrpager-0.9.15.tar.gz diff --git a/cbrpager-0.9.15-remove-critical-warning.patch b/cbrpager-0.9.15-remove-critical-warning.patch new file mode 100644 index 0000000..92c88a8 --- /dev/null +++ b/cbrpager-0.9.15-remove-critical-warning.patch @@ -0,0 +1,59 @@ +--- cbrpager-0.9.15/src/global.c.debug 2005-10-10 14:12:01.000000000 +0900 ++++ cbrpager-0.9.15/src/global.c 2008-03-21 23:35:43.000000000 +0900 +@@ -28,6 +28,8 @@ + #include + #include + ++#include ++ + #include "support.h" + #include "interface.h" + #include "global.h" +@@ -138,9 +140,9 @@ + start_show(void) + { + GtkWidget *w; +- char *bff, *p, **names; ++ char *bff, *p = NULL, **names; + gboolean first = TRUE; +- int s, t, bffbeg; ++ int s, t, bffbeg = 0; + + if (debug) printf("%s\n", pref.lastbook); + +@@ -165,7 +167,7 @@ + system(bff); + + if (!g_file_test(tmpf, G_FILE_TEST_EXISTS)) { +- printf(_("Cannot open temporary file %s\n"), tmpfile); ++ printf(_("Cannot open temporary file\n")); + g_free(bff); + return; + } +@@ -214,7 +216,9 @@ + GtkWidget *wdg; + GtkAdjustment *adj; + ++#if 0 + if (debug) printf("[scroll] to %.2f\n"); ++#endif + wdg = lookup_widget(MainWindow, "main_scroller"); + adj = gtk_scrolled_window_get_vadjustment(GTK_SCROLLED_WINDOW(wdg)); + if (debug) +@@ -229,7 +233,7 @@ + void + request_page(int nr, GdkPixbuf **pxm, double *w, double *h) + { +- char *p, *bff, *esc; ++ char *p, *bff = NULL, *esc; + int len, i, idx = 0; + + p = (char *)g_list_nth_data(pagelist, nr); +--- cbrpager-0.9.15/src/global.h.debug 2005-09-06 00:42:14.000000000 +0900 ++++ cbrpager-0.9.15/src/global.h 2008-03-21 23:38:17.000000000 +0900 +@@ -42,3 +42,5 @@ + void set_zoom_fit(void); + void fit_page(int w, int h); + void fit_width(int w); ++ ++void set_zoom_width(void); diff --git a/cbrpager.spec b/cbrpager.spec new file mode 100644 index 0000000..81c1146 --- /dev/null +++ b/cbrpager.spec @@ -0,0 +1,86 @@ +Name: cbrpager +Version: 0.9.15 +Release: 1%{?dist} +Summary: Simple comic book pager for Linux + +Group: Amusements/Graphics +License: GPLv2+ +URL: http://www.jcoppens.com/soft/cbrpager/index.en.php +Source0: http://downloads.sourceforge.net/cbrpager/%{name}-%{version}.tar.gz +Patch0: cbrpager-0.9.15-remove-critical-warning.patch +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildRequires: libgnomeui-devel +BuildRequires: desktop-file-utils +BuildRequires: gettext +Requires: gnome-icon-theme + +%description +A no-nonsense, simple to use, small viewer for cbr and cbz +(comic book archive) files. As it is written in C, +the executable is small and fast. It views jpg (or jpeg), +gif and png images, and you can zoom in and out. + +%prep +%setup -q +%patch0 -p1 -b .warn + +for f in \ + ChangeLog \ + CONTRIBUTORS + do + iconv -f ISO-8859-1 -t UTF-8 $f > $f.tmp && \ + ( touch -r $f $f.tmp ; %{__mv} -f $f.tmp $f ) + rm -f $f.tmp +done + +cat > %{name}.desktop < - 0.9.15-1 +- Initial packaging + + diff --git a/sources b/sources index e69de29..e67f564 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +ae0ded67962f06e0511dd7d4c4777e13 cbrpager-0.9.15.tar.gz