base-specs/gqview.spec
changeset 12845 f1d3a2c66ccc
child 12874 b50509d81b3b
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/base-specs/gqview.spec	Fri Jul 18 06:22:41 2008 +0000
@@ -0,0 +1,62 @@
+Summary: Graphics file browser utility.
+Name: gqview
+Version: 2.0.4
+Release: 1
+License: GPL
+Group: Applications/Multimedia
+Source: http://prdownloads.sourceforge.net/gqview/gqview-%{version}.tar.gz
+#owner:bewitche date:2008-07-07 type:feature
+Patch1:       gqview-01-editor.diff
+BuildRoot: %{_tmppath}/%{name}-%{version}-root
+
+URL: http://gqview.sourceforge.net
+
+Requires: gtk2 >= 2.4.0
+
+%description
+GQview is a browser for graphics files.
+Offering single click viewing of your graphics files.
+Includes thumbnail view, zoom and filtering features.
+And external editor support.
+
+%prep
+%setup -q -n gqview-%version
+%patch1 -p1
+
+%build
+CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
+if test "x$CPUS" = "x" -o $CPUS = 0; then
+    CPUS=1
+fi
+
+./configure --prefix=%{_prefix} --mandir=%{_mandir} 
+make -j$CPUS 
+
+#mkdir html
+#cp doc/*.html doc/*.txt html/.
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+make mandir=$RPM_BUILD_ROOT%{_mandir} bindir=$RPM_BUILD_ROOT%{_bindir} \
+ prefix=$RPM_BUILD_ROOT%{_prefix} install
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(-, root, root)
+
+%doc README COPYING TODO html
+%{_bindir}/gqview
+%{_datadir}/locale/*/*/*
+%{_datadir}/applications/gqview.desktop
+%{_datadir}/pixmaps/gqview.png
+%{_mandir}/man?/*
+
+%changelog
+* Thu Jul 17 2008  [email protected]
+- Add patch gqview-01-editor.diff, the default editor can be selected 
+  while configure.
+* Tue Jul  7 2008  [email protected] 
+- Initial build.