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