summaryrefslogtreecommitdiff
path: root/packaging
diff options
context:
space:
mode:
authorJinkun Jang <jinkun.jang@samsung.com>2013-03-16 01:09:25 +0900
committerJinkun Jang <jinkun.jang@samsung.com>2013-03-16 01:09:25 +0900
commit65454880f0ec82728f11af7991323b06655ccf57 (patch)
treef23420dd0de5722b018b98a4d9482d7c8b60c0ed /packaging
parent72835b3d805ac6c7cdaac7d3aff107567e938314 (diff)
downloadhplip-65454880f0ec82728f11af7991323b06655ccf57.tar.gz
hplip-65454880f0ec82728f11af7991323b06655ccf57.tar.bz2
hplip-65454880f0ec82728f11af7991323b06655ccf57.zip
Diffstat (limited to 'packaging')
-rw-r--r--packaging/hplip.spec4
-rw-r--r--packaging/tizen_add_job_media_progress.patch15
2 files changed, 18 insertions, 1 deletions
diff --git a/packaging/hplip.spec b/packaging/hplip.spec
index eac46fa..86a7759 100644
--- a/packaging/hplip.spec
+++ b/packaging/hplip.spec
@@ -25,7 +25,7 @@ Group: Hardware/Printing
# x.y.m : x = major release number, y = year (eg: 6 = 2006), m = month (eg: 6a = second release in June)
# Official releases have a 3 digit number and release candidates have a 4 digit number: x.y.m.rc
Version: 3.12.4
-Release: 12
+Release: 13
Url: http://hplipopensource.com
# Source0...Source9 is for sources from HP:
# URL for Source0: http://prdownloads.sourceforge.net/hplip/hplip-3.12.4.tar.gz
@@ -117,6 +117,7 @@ Patch103: tizen_disable_dbus_hpcups.patch
Patch104: tizen_add_sigpipe_ign.patch
Patch105: tizen_fix_image_align.patch
Patch106: tizen_fix_debug_log.patch
+Patch107: tizen_add_job_media_progress.patch
#PreReq: coreutils
#PreReq: /bin/grep
@@ -332,6 +333,7 @@ http://hplipopensource.com
%patch104
%patch105
%patch106
+%patch107 -p1
%build
# If AUTOMAKE='automake --foreign' is not set, autoreconf (in fact automake)
diff --git a/packaging/tizen_add_job_media_progress.patch b/packaging/tizen_add_job_media_progress.patch
new file mode 100644
index 0000000..4d8c16d
--- /dev/null
+++ b/packaging/tizen_add_job_media_progress.patch
@@ -0,0 +1,15 @@
+diff -urN hplip.orig/prnt/hpcups/HPCupsFilter.cpp hplip/prnt/hpcups/HPCupsFilter.cpp
+--- hplip.orig/prnt/hpcups/HPCupsFilter.cpp 2013-01-10 19:55:26.010990577 +0900
++++ hplip/prnt/hpcups/HPCupsFilter.cpp 2013-01-10 19:54:58.118990579 +0900
+@@ -700,6 +700,11 @@
+ }
+ WriteBMPRaster (cfp, color_raster, cups_header.cupsWidth, COLOR_RASTER);
+ WriteBMPRaster (kfp, black_raster, cups_header.cupsWidth/8, BLACK_RASTER);
++
++ if ((y & 127) == 0)
++ {
++ fprintf(stderr, "ATTR: job-media-progress=%d\n", 100 * y / cups_header.cupsHeight);
++ }
+ }
+ m_Job.NewPage();
+ if (err != NO_ERROR) {