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