]>
Commit | Line | Data |
---|---|---|
ad64a237 | 1 | Summary: i3, i5 and i7 reporting tool for Linux |
cb26110e | 2 | Summary(pl.UTF-8): Narzędzie informacyjne dla procesorów i3, i5 i i7 pod Linuksem |
ad64a237 | 3 | Name: i7z |
f01b0153 | 4 | Version: 0.27.2 |
3c8e7e2c | 5 | Release: 2 |
ad64a237 TP |
6 | License: GPL v2 |
7 | Group: Applications/System | |
cb26110e | 8 | #Source0Download: http://code.google.com/p/i7z/downloads/list |
ad64a237 | 9 | Source0: http://i7z.googlecode.com/files/%{name}-%{version}.tar.gz |
f01b0153 | 10 | # Source0-md5: 7f2c4928146b722d67ecdd0d905a4353 |
ad64a237 TP |
11 | URL: http://code.google.com/p/i7z/ |
12 | BuildRequires: ncurses-devel | |
13 | BuildRequires: qt4-build | |
14 | BuildRequires: qt4-qmake | |
15 | BuildRequires: QtGui-devel | |
392c1a3c | 16 | ExclusiveArch: %{ix86} %{x8664} |
ad64a237 TP |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
18 | ||
cb26110e JB |
19 | %define specflags -fomit-frame-pointer |
20 | ||
ad64a237 TP |
21 | %description |
22 | A better i7 (and now i3, i5) reporting tool for Linux. | |
23 | ||
cb26110e JB |
24 | %description -l pl.UTF-8 |
25 | Lepsze narzędzie informacyjne dla procesorów i7 (teraz także i3, i5) | |
4dcea2e3 JB |
26 | działające pod Linuksem. |
27 | ||
28 | %package gui | |
29 | Summary: Qt-based graphical i3/i5/i7 CPU reporting tool | |
30 | Summary(pl.UTF-8): Oparte na Qt graficzne narzędzie informacyjne dla procesorów i3/i5/i7 | |
31 | Group: X11/Applications | |
32 | Requires: %{name} = %{version}-%{release} | |
33 | ||
34 | %description gui | |
35 | Qt-based graphical i3/i5/i7 CPU reporting tool. | |
36 | ||
37 | %description gui -l pl.UTF-8 | |
38 | Oparte na Qt graficzne narzędzie informacyjne dla procesorów i3/i5/i7. | |
cb26110e | 39 | |
ad64a237 | 40 | %prep |
3853da27 | 41 | %setup -q |
ad64a237 TP |
42 | |
43 | %build | |
313ab8ef | 44 | %{__make} clean |
f01b0153 | 45 | CFLAGS="%{rpmcflags} %{rpmcppflags} -I/usr/include/ncurses" \ |
ad64a237 | 46 | %{__make} \ |
cb26110e | 47 | CC="%{__cc}" \ |
4dcea2e3 | 48 | LDFLAGS="%{rpmldflags}" \ |
f01b0153 | 49 | LIBS="-lncurses -ltinfo -lpthread -lrt -lm" |
4dcea2e3 JB |
50 | |
51 | cd GUI | |
52 | qmake-qt4 \ | |
53 | QMAKE_CXX="%{__cxx}" \ | |
54 | QMAKE_CXXFLAGS_RELEASE="%{rpmcxxflags}" \ | |
55 | QMAKE_LFLAGS_RELEASE="%{rpmldflags}" | |
313ab8ef | 56 | %{__make} clean |
4dcea2e3 | 57 | %{__make} |
ad64a237 TP |
58 | |
59 | %install | |
60 | rm -rf $RPM_BUILD_ROOT | |
61 | install -d $RPM_BUILD_ROOT%{_sbindir} | |
62 | ||
63 | install %{name} $RPM_BUILD_ROOT%{_sbindir} | |
3853da27 | 64 | install GUI/i7z_GUI $RPM_BUILD_ROOT%{_sbindir} |
ad64a237 TP |
65 | |
66 | %clean | |
67 | rm -rf $RPM_BUILD_ROOT | |
68 | ||
69 | %files | |
70 | %defattr(644,root,root,755) | |
71 | %doc README.txt | |
4dcea2e3 JB |
72 | %attr(755,root,root) %{_sbindir}/i7z |
73 | ||
74 | %files gui | |
75 | %defattr(644,root,root,755) | |
76 | %attr(755,root,root) %{_sbindir}/i7z_GUI |