packages: i7z/i7z.spec, i7z/i7z-c++.patch (NEW) - updated to 0.26 - pl - us...

qboosh qboosh at pld-linux.org
Tue May 31 21:54:42 CEST 2011


Author: qboosh                       Date: Tue May 31 19:54:42 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- updated to 0.26
- pl
- use proper CC/optflags for CLI utility
- added c++ patch to fix GUI build

---- Files affected:
packages/i7z:
   i7z.spec (1.2 -> 1.3) , i7z-c++.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/i7z/i7z.spec
diff -u packages/i7z/i7z.spec:1.2 packages/i7z/i7z.spec:1.3
--- packages/i7z/i7z.spec:1.2	Sun Jul  4 12:42:57 2010
+++ packages/i7z/i7z.spec	Tue May 31 21:54:37 2011
@@ -1,12 +1,16 @@
 # $Revision$, $Date$
+# TODO: optflags in GUI
 Summary:	i3, i5 and i7 reporting tool for Linux
+Summary(pl.UTF-8):	Narzędzie informacyjne dla procesorów i3, i5 i i7 pod Linuksem
 Name:		i7z
-Version:	0.25
+Version:	0.26
 Release:	1
 License:	GPL v2
 Group:		Applications/System
+#Source0Download: http://code.google.com/p/i7z/downloads/list
 Source0:	http://i7z.googlecode.com/files/%{name}-%{version}.tar.gz
-# Source0-md5:	29376e209ee6e2fb1534d16f0ae83fb4
+# Source0-md5:	4f16f8ba2096e6156caab300e9e034e3
+Patch0:		%{name}-c++.patch
 URL:		http://code.google.com/p/i7z/
 BuildRequires:	ncurses-devel
 BuildRequires:	qt4-build
@@ -15,15 +19,25 @@
 ExclusiveArch:	%{ix86} %{x8664}
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+%define		specflags	-fomit-frame-pointer
+
 %description
 A better i7 (and now i3, i5) reporting tool for Linux.
 
+%description -l pl.UTF-8
+Lepsze narzędzie informacyjne dla procesorów i7 (teraz także i3, i5)
+działajace pod Linuksem.
+
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 %{__make} \
-	INCLUDEFLAGS=-I/usr/include/ncurses
+	CC="%{__cc}" \
+	CFLAGSANY="%{rpmcflags} %{rpmcppflags} -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DBUILD_MAIN -Wall" \
+	INCLUDEFLAGS=-I/usr/include/ncurses \
+	LDFLAGS="%{rpmldflags} -lncurses -ltinfo -lpthread"
 %{__make} -C GUI \
 #	CXXFLAGS="%{rpmcflags}"
 
@@ -48,6 +62,12 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.3  2011/05/31 19:54:37  qboosh
+- updated to 0.26
+- pl
+- use proper CC/optflags for CLI utility
+- added c++ patch to fix GUI build
+
 Revision 1.2  2010/07/04 10:42:57  gotar
 - EA archs that can run on Nehalem CPUs
 

================================================================
Index: packages/i7z/i7z-c++.patch
diff -u /dev/null packages/i7z/i7z-c++.patch:1.1
--- /dev/null	Tue May 31 21:54:42 2011
+++ packages/i7z/i7z-c++.patch	Tue May 31 21:54:37 2011
@@ -0,0 +1,17 @@
+--- i7z-0.26/GUI/GUI_i7z.cpp.orig	2010-10-04 07:34:19.000000000 +0200
++++ i7z-0.26/GUI/GUI_i7z.cpp	2011-05-31 21:49:08.494168264 +0200
+@@ -47,10 +47,12 @@
+ void Construct_Socket_Information_in_GUI(unsigned int *numCPUs) {
+     socket_0.max_cpu=0;
+     socket_0.socket_num=0;
+-    socket_0.processor_num={-1,-1,-1,-1,-1,-1,-1,-1};
++    for(unsigned i = 0; i < MAX_SK_PROCESSORS; i++)
++	socket_0.processor_num[i] = -1;
+     socket_1.max_cpu=0;
+     socket_1.socket_num=1;
+-    socket_1.processor_num={-1,-1,-1,-1,-1,-1,-1,-1};
++    for(unsigned i = 0; i < MAX_SK_PROCESSORS; i++)
++	socket_1.processor_num[i] = -1;
+ 
+     construct_CPU_Heirarchy_info(&chi);
+     construct_sibling_list(&chi);
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/i7z/i7z.spec?r1=1.2&r2=1.3&f=u



More information about the pld-cvs-commit mailing list