]> git.pld-linux.org Git - packages/i7z.git/blob - i7z.spec
6fd11b912f19b2685380f3d6b8bc5d90a5293bbb
[packages/i7z.git] / i7z.spec
1 Summary:        i3, i5 and i7 reporting tool for Linux
2 Summary(pl.UTF-8):      Narzędzie informacyjne dla procesorów i3, i5 i i7 pod Linuksem
3 Name:           i7z
4 Version:        0.27.2
5 Release:        1
6 License:        GPL v2
7 Group:          Applications/System
8 #Source0Download: http://code.google.com/p/i7z/downloads/list
9 Source0:        http://i7z.googlecode.com/files/%{name}-%{version}.tar.gz
10 # Source0-md5:  7f2c4928146b722d67ecdd0d905a4353
11 URL:            http://code.google.com/p/i7z/
12 BuildRequires:  ncurses-devel
13 BuildRequires:  qt4-build
14 BuildRequires:  qt4-qmake
15 BuildRequires:  QtGui-devel
16 ExclusiveArch:  %{ix86} %{x8664}
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %define         specflags       -fomit-frame-pointer
20
21 %description
22 A better i7 (and now i3, i5) reporting tool for Linux.
23
24 %description -l pl.UTF-8
25 Lepsze narzędzie informacyjne dla procesorów i7 (teraz także i3, i5)
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.
39
40 %prep
41 %setup -q
42
43 %build
44 %{__make} clean
45 CFLAGS="%{rpmcflags} %{rpmcppflags} -I/usr/include/ncurses" \
46 %{__make} \
47         CC="%{__cc}" \
48         LDFLAGS="%{rpmldflags}" \
49         LIBS="-lncurses -ltinfo -lpthread -lrt -lm"
50
51 cd GUI
52 qmake-qt4 \
53         QMAKE_CXX="%{__cxx}" \
54         QMAKE_CXXFLAGS_RELEASE="%{rpmcxxflags}" \
55         QMAKE_LFLAGS_RELEASE="%{rpmldflags}"
56 %{__make} clean
57 %{__make}
58
59 %install
60 rm -rf $RPM_BUILD_ROOT
61 install -d $RPM_BUILD_ROOT%{_sbindir}
62
63 install %{name} $RPM_BUILD_ROOT%{_sbindir}
64 install GUI/i7z_GUI $RPM_BUILD_ROOT%{_sbindir}
65
66 %clean
67 rm -rf $RPM_BUILD_ROOT
68
69 %files
70 %defattr(644,root,root,755)
71 %doc README.txt
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
This page took 0.059243 seconds and 2 git commands to generate.