[mtpaint] Print with yad
terjeros
terjeros at fedoraproject.org
Mon Jun 10 11:49:26 UTC 2013
commit 8da9fed6f024463a63d37b6f909e8ed6ea8a9799
Author: Terje Røsten <terje.rosten at ntnu.no>
Date: Mon Jun 10 13:49:13 2013 +0200
Print with yad
mtpaint-3.40-yad.patch | 13 +++++++++++++
mtpaint.spec | 9 +++++++--
2 files changed, 20 insertions(+), 2 deletions(-)
---
diff --git a/mtpaint-3.40-yad.patch b/mtpaint-3.40-yad.patch
new file mode 100644
index 0000000..65dd2b9
--- /dev/null
+++ b/mtpaint-3.40-yad.patch
@@ -0,0 +1,13 @@
+diff --git a/src/spawn.c b/src/spawn.c
+index cef46b3..2567362 100644
+--- a/src/spawn.c
++++ b/src/spawn.c
+@@ -385,7 +385,7 @@ void init_factions()
+ {"View filesystem data (xterm)", "xterm -hold -e ls -l %f"},
+ {"Edit in Gimp", "gimp %f"},
+ {"View in GQview", "gqview %f"},
+- {"Print image", "kprinter %f"},
++ {"Print image", "yad --print --type IMAGE --print-add-preview --filename %f"},
+ {"Email image", "seamonkey -compose attachment=file://%f"},
+ {"Send image to Firefox", "firefox %f"},
+ {"Send image to OpenOffice", "soffice %f"},
diff --git a/mtpaint.spec b/mtpaint.spec
index 4e8436a..7e179dd 100644
--- a/mtpaint.spec
+++ b/mtpaint.spec
@@ -3,7 +3,7 @@
Summary: Painting program for creating icons and pixel-based artwork
Name: mtpaint
Version: 3.40
-Release: 11%{?dist}
+Release: 12%{?dist}
License: GPLv3+
Group: Applications/Multimedia
URL: http://mtpaint.sourceforge.net/
@@ -12,6 +12,7 @@ Source1: http://downloads.sf.net/%{name}/%{name}_handbook-%{docver}.zip
Patch0: mtpaint-3.40-xdg-open.patch
Patch1: mtpaint-3.31-png.patch
Patch2: mtpaint-3.40-strip.patch
+Patch3: mtpaint-3.40-yad.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: giflib-devel
BuildRequires: gtk2-devel
@@ -25,7 +26,7 @@ BuildRequires: desktop-file-utils
BuildRequires: gettext
BuildRequires: dos2unix
Requires: ImageMagick
-Requires: /usr/bin/kprinter
+Requires: /usr/bin/yad
%description
mtPaint is a simple painting program designed for creating icons and
@@ -50,6 +51,7 @@ application mtpaint.
%patch0 -p1
%patch1 -p1
%patch2 -p0
+%patch3 -p1
# We have moved docs
%{__sed} -i 's,"/usr/doc/mtpaint/index.html","%{_docdir}/%{name}-handbook-%{version}/index.html",' src/spawn.c
@@ -120,6 +122,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
%doc %{name}_handbook-%{docver}/COPYING %{name}_handbook-%{docver}/docs/*
%changelog
+* Mon Jun 10 2013 Terje Rosten <terje.rosten at ntnu.no> - 3.40-12
+- Print with yad
+
* Mon May 27 2013 Terje Rosten <terje.rosten at ntnu.no> - 3.40-11
- Add req. on kprinter (bz #964588)
More information about the scm-commits
mailing list