]>
Commit | Line | Data |
---|---|---|
29e47b7e | 1 | # |
2 | # Conditional build: | |
67ce5da3 | 3 | %bcond_without lua_cairo # without lua cairo bindings |
ab08a686 | 4 | # |
944b0afa | 5 | Summary: A light-weight system monitor |
0249520c | 6 | Summary(pl.UTF-8): Monitor systemu dla środowiska graficznego |
944b0afa | 7 | Name: conky |
c162b621 | 8 | Version: 1.8.1 |
ab08a686 | 9 | Release: 3 |
dce98514 | 10 | License: Distributable (see COPYING doc) |
944b0afa | 11 | Group: X11/Applications |
c162b621 | 12 | Source0: http://downloads.sourceforge.net/conky/%{name}-%{version}.tar.bz2 |
13 | # Source0-md5: 366dc6a5c2ebebfbe6f53da25061b5d6 | |
b0484c99 | 14 | URL: http://conky.sourceforge.net/ |
9e16b06a | 15 | BuildRequires: autoconf |
16 | BuildRequires: automake | |
638247a6 | 17 | %{?with_lua_cairo:BuildRequires:cairo-devel} |
944b0afa | 18 | BuildRequires: expat-devel |
19 | BuildRequires: freetype-devel | |
2204ed93 | 20 | BuildRequires: gettext-devel |
4921c354 | 21 | BuildRequires: glib2-devel >= 2.0 |
0b83a12e | 22 | BuildRequires: libtool |
4921c354 | 23 | BuildRequires: lua51-devel >= 5.1 |
cdb245cb | 24 | BuildRequires: ncurses-devel |
a505d1a4 | 25 | BuildRequires: pkgconfig >= 1:0.19 |
1638ff52 | 26 | BuildRequires: sed >= 4.0 |
bdea8ea0 | 27 | %{?with_lua_cairo:BuildRequires:tolua++ >= 1.0.90} |
2204ed93 | 28 | BuildRequires: xorg-lib-libXdamage-devel |
30dee786 MB |
29 | BuildRequires: xorg-lib-libXext-devel |
30 | BuildRequires: xorg-lib-libXft-devel | |
944b0afa | 31 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
32 | ||
33 | %description | |
34 | Conky is a light-weight system monitor based on the torsmo code. Conky | |
35 | can display arbitrary information (such as the date, CPU temperature | |
36 | from i2c, MPD info, and anything else you desire) to the root window | |
37 | in X11. | |
38 | ||
924a87fc | 39 | %description -l pl.UTF-8 |
c162b621 | 40 | Conky jest niewielkim monitorem systemu opartym na kodzie torsmo. Może |
41 | wyświetlać takie informacje, jak: | |
944b0afa | 42 | - data |
43 | - temperatura CPU | |
924a87fc | 44 | - ilość miejsca na dysku itp. |
944b0afa | 45 | |
bdea8ea0 | 46 | %package lua-cairo |
47 | Summary: Lua Cairo bindings for Conky | |
48 | Summary(pl.UTF-8): Dowiązania Lua Cairo dla Conky | |
49 | Group: Development/Languages | |
50 | ||
51 | %description lua-cairo | |
52 | Lua Cairo bindings for Conky. | |
53 | ||
54 | %description lua-cairo -l pl.UTF-8 | |
55 | Dowiązania Lua Cairo dla Conky. | |
56 | ||
944b0afa | 57 | %prep |
58 | %setup -q | |
1638ff52 | 59 | %{__sed} -i 's,lua5.1,lua51,' configure.ac |
944b0afa | 60 | |
61 | %build | |
e8075f95 | 62 | %{__libtoolize} |
1638ff52 | 63 | %{__aclocal} -I m4 |
9e16b06a | 64 | %{__autoconf} |
65 | %{__autoheader} | |
66 | %{__automake} | |
c162b621 | 67 | %configure \ |
70e0e88f | 68 | CFLAGS="%{rpmcflags} `pkg-config ncurses --cflags`" \ |
67ce5da3 | 69 | LIBS="-ltinfo" \ |
70 | %{?with_lua_cairo:--enable-lua-cairo} | |
944b0afa | 71 | %{__make} |
72 | ||
73 | %install | |
74 | rm -rf $RPM_BUILD_ROOT | |
30dee786 | 75 | |
944b0afa | 76 | %{__make} install \ |
77 | DESTDIR=$RPM_BUILD_ROOT | |
78 | ||
79 | %clean | |
80 | rm -rf $RPM_BUILD_ROOT | |
81 | ||
82 | %files | |
83 | %defattr(644,root,root,755) | |
8d0d3a4a | 84 | # COPYING must be added (see COPYING file) |
85 | %doc AUTHORS ChangeLog COPYING README TODO | |
67ce5da3 | 86 | %attr(755,root,root) %{_bindir}/%{name} |
19807c7c | 87 | %dir %{_sysconfdir}/conky |
c09108ca | 88 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conky/%{name}.conf |
cdb245cb | 89 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conky/%{name}_no_x11.conf |
67ce5da3 | 90 | %dir %{_libdir}/conky |
bdea8ea0 | 91 | %{_mandir}/man1/%{name}.1* |
92 | ||
67ce5da3 | 93 | %if %{with lua_cairo} |
bdea8ea0 | 94 | %files lua-cairo |
95 | %defattr(644,root,root,755) | |
67ce5da3 | 96 | %{_libdir}/conky/libcairo.so.*.*.* |
7ac63b47 | 97 | %{_libdir}/conky/libcairo.so |
67ce5da3 | 98 | %ghost %{_libdir}/conky/libcairo.so.0 |
99 | %endif |