rpms/cbrpager/devel cbrpager-0.9.15-remove-critical-warning.patch, NONE, 1.1 cbrpager.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
Mamoru Tasaka (mtasaka)
fedora-extras-commits at redhat.com
Sat Mar 22 01:19:03 UTC 2008
- Previous message (by thread): rpms/cbrpager/F-8 cbrpager-0.9.15-remove-critical-warning.patch, NONE, 1.1 cbrpager.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
- Next message (by thread): rpms/olpc-utils/OLPC-2 .cvsignore, 1.30, 1.31 olpc-utils.spec, 1.37, 1.38 sources, 1.32, 1.33
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: mtasaka
Update of /cvs/extras/rpms/cbrpager/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv4214/devel
Modified Files:
.cvsignore sources
Added Files:
cbrpager-0.9.15-remove-critical-warning.patch cbrpager.spec
Log Message:
Initial commit
cbrpager-0.9.15-remove-critical-warning.patch:
--- NEW FILE cbrpager-0.9.15-remove-critical-warning.patch ---
--- 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 <stdio.h>
#include <string.h>
+#include <ctype.h>
+
#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);
--- NEW FILE cbrpager.spec ---
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 <<EOF
[Desktop Entry]
Name=cbrPager
Comment=A simple comic book pager for Linux
Exec=%{name} %%f
Icon=gnome-graphics
Terminal=false
Type=Application
Categories=Graphics;Viewer;
EOF
%build
%configure
%{__make} %{?_smp_mflags}
%install
%{__rm} -rf $RPM_BUILD_ROOT
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT \
INSTALL="%{__install} -c -p"
desktop-file-install \
--vendor fedora \
--dir $RPM_BUILD_ROOT%{_datadir}/applications \
%{name}.desktop
%find_lang %{name}
%clean
%{__rm} -rf $RPM_BUILD_ROOT
%files -f %{name}.lang
%defattr(-,root,root,-)
%doc AUTHORS
%doc CONTRIBUTORS
%doc COPYING
%doc ChangeLog
%doc NEWS
%doc README
%doc TODO
%{_bindir}/%{name}
%{_datadir}/applications/fedora-%{name}.desktop
%changelog
* Fri Mar 21 2008 Mamoru Tasaka <mtasaka at ioa.s.u-tokyo.ac.jp> - 0.9.15-1
- Initial packaging
Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/cbrpager/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore 21 Mar 2008 21:34:06 -0000 1.1
+++ .cvsignore 22 Mar 2008 01:18:26 -0000 1.2
@@ -0,0 +1 @@
+cbrpager-0.9.15.tar.gz
Index: sources
===================================================================
RCS file: /cvs/extras/rpms/cbrpager/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources 21 Mar 2008 21:34:06 -0000 1.1
+++ sources 22 Mar 2008 01:18:26 -0000 1.2
@@ -0,0 +1 @@
+ae0ded67962f06e0511dd7d4c4777e13 cbrpager-0.9.15.tar.gz
- Previous message (by thread): rpms/cbrpager/F-8 cbrpager-0.9.15-remove-critical-warning.patch, NONE, 1.1 cbrpager.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
- Next message (by thread): rpms/olpc-utils/OLPC-2 .cvsignore, 1.30, 1.31 olpc-utils.spec, 1.37, 1.38 sources, 1.32, 1.33
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list