]>
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 | |
944b0afa | 17 | BuildRequires: expat-devel |
18 | BuildRequires: freetype-devel | |
2204ed93 | 19 | BuildRequires: gettext-devel |
4921c354 | 20 | BuildRequires: glib2-devel >= 2.0 |
0b83a12e | 21 | BuildRequires: libtool |
4921c354 | 22 | BuildRequires: lua51-devel >= 5.1 |
cdb245cb | 23 | BuildRequires: ncurses-devel |
a505d1a4 | 24 | BuildRequires: pkgconfig >= 1:0.19 |
1638ff52 | 25 | BuildRequires: sed >= 4.0 |
ab08a686 | 26 | %{?with_lua_cairo:BuildRequires: tolua++-devel >= 1.0.90} |
2204ed93 | 27 | BuildRequires: xorg-lib-libXdamage-devel |
30dee786 MB |
28 | BuildRequires: xorg-lib-libXext-devel |
29 | BuildRequires: xorg-lib-libXft-devel | |
944b0afa | 30 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
31 | ||
32 | %description | |
33 | Conky is a light-weight system monitor based on the torsmo code. Conky | |
34 | can display arbitrary information (such as the date, CPU temperature | |
35 | from i2c, MPD info, and anything else you desire) to the root window | |
36 | in X11. | |
37 | ||
924a87fc | 38 | %description -l pl.UTF-8 |
c162b621 | 39 | Conky jest niewielkim monitorem systemu opartym na kodzie torsmo. Może |
40 | wyświetlać takie informacje, jak: | |
944b0afa | 41 | - data |
42 | - temperatura CPU | |
924a87fc | 43 | - ilość miejsca na dysku itp. |
944b0afa | 44 | |
45 | %prep | |
46 | %setup -q | |
1638ff52 | 47 | %{__sed} -i 's,lua5.1,lua51,' configure.ac |
944b0afa | 48 | |
49 | %build | |
e8075f95 | 50 | %{__libtoolize} |
1638ff52 | 51 | %{__aclocal} -I m4 |
9e16b06a | 52 | %{__autoconf} |
53 | %{__autoheader} | |
54 | %{__automake} | |
c162b621 | 55 | %configure \ |
70e0e88f | 56 | CFLAGS="%{rpmcflags} `pkg-config ncurses --cflags`" \ |
67ce5da3 | 57 | LIBS="-ltinfo" \ |
58 | %{?with_lua_cairo:--enable-lua-cairo} | |
944b0afa | 59 | %{__make} |
60 | ||
61 | %install | |
62 | rm -rf $RPM_BUILD_ROOT | |
30dee786 | 63 | |
944b0afa | 64 | %{__make} install \ |
65 | DESTDIR=$RPM_BUILD_ROOT | |
66 | ||
67 | %clean | |
68 | rm -rf $RPM_BUILD_ROOT | |
69 | ||
70 | %files | |
71 | %defattr(644,root,root,755) | |
8d0d3a4a | 72 | # COPYING must be added (see COPYING file) |
73 | %doc AUTHORS ChangeLog COPYING README TODO | |
67ce5da3 | 74 | %attr(755,root,root) %{_bindir}/%{name} |
19807c7c | 75 | %dir %{_sysconfdir}/conky |
c09108ca | 76 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conky/%{name}.conf |
cdb245cb | 77 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conky/%{name}_no_x11.conf |
67ce5da3 | 78 | %dir %{_libdir}/conky |
79 | %if %{with lua_cairo} | |
80 | %{_libdir}/conky/libcairo.so.*.*.* | |
81 | %ghost %{_libdir}/conky/libcairo.so.0 | |
82 | %endif | |
944b0afa | 83 | %{_mandir}/man1/%{name}.1* |