[xcalib] Fix rhbz#783562

Nicolas Chauvet kwizart at fedoraproject.org
Sat Jan 26 15:32:32 UTC 2013


commit cb639e5c0475ef8af7a41d077f2117bfc826c285
Author: Nicolas Chauvet <kwizart at gmail.com>
Date:   Sat Jan 26 16:31:54 2013 +0100

    Fix rhbz#783562

 xcalib-0.8-rhbz783562.patch |   18 ++++++++++++++++++
 xcalib.spec                 |    7 ++++++-
 2 files changed, 24 insertions(+), 1 deletions(-)
---
diff --git a/xcalib-0.8-rhbz783562.patch b/xcalib-0.8-rhbz783562.patch
new file mode 100644
index 0000000..6c489f3
--- /dev/null
+++ b/xcalib-0.8-rhbz783562.patch
@@ -0,0 +1,18 @@
+--- a/xcalib-0.8/xcalib.c	2007-08-26 17:54:34.000000000 -0400
++++ a/xcalib-0.8/xcalib.c	2012-10-10 12:10:37.249771179 -0400
+@@ -150,12 +150,12 @@ usage (void)
+ 	   "last parameter must be an ICC profile containing a vcgt-tag\n");
+   fprintf (stdout, "\n");
+ #ifndef WIN32GDI 
+-  fprintf (stdout, "Example: ./xcalib -d :0 -s 0 -v bluish.icc\n");
++  fprintf (stdout, "Example: xcalib -d :0 -s 0 -v bluish.icc\n");
+ #else
+-  fprintf (stdout, "Example: ./xcalib -v bluish.icc\n");
++  fprintf (stdout, "Example: xcalib -v bluish.icc\n");
+ #endif
+ #ifndef FGLRX
+-  fprintf (stdout, "Example: ./xcalib -red 1.1 10.0 100.0\n");
++  fprintf (stdout, "Example: xcalib -red 1.1 10.0 100.0 -a\n");
+ #endif
+   fprintf (stdout, "\n");
+   exit (0);
diff --git a/xcalib.spec b/xcalib.spec
index 97635ee..b1f03cb 100644
--- a/xcalib.spec
+++ b/xcalib.spec
@@ -1,6 +1,6 @@
 Name:           xcalib
 Version:        0.8
-Release:        10%{?dist}
+Release:        11%{?dist}
 Summary:        Tiny monitor calibration loader for X.org
 
 Group:          System Environment/Libraries
@@ -10,6 +10,7 @@ URL:            http://xcalib.sourceforge.net/
 Source0:        http://kwizart.fedorapeople.org/SOURCES/xcalib-repack-%{version}.tar.bz2
 Source10:       xcalib-repack.sh
 Patch0:         xcalib-0.8-cflags.patch
+Patch1:         xcalib-0.8-rhbz783562.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires:  xorg-x11-proto-devel
@@ -25,6 +26,7 @@ Tiny monitor calibration loader for X.org
 %prep
 %setup -q
 %patch0 -p1 -b .cflags
+%patch1 -p2 -b .rhbz783562
 
 # Convert file-not-utf8
 iconv -f iso8859-1 -t utf8 README > README-utf8 
@@ -55,6 +57,9 @@ rm -rf $RPM_BUILD_ROOT
 
 
 %changelog
+* Sat Jan 26 2013 Nicolas Chauvet <kwizart at gmail.com> - 0.8-11
+- Fix rhbz#783562
+
 * Sun Jul 22 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.8-10
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
 


More information about the scm-commits mailing list