]> git.pld-linux.org Git - packages/conky.git/blob - conky.spec
- add lua_cairo bcond which enables lua cairo bindings for conky
[packages/conky.git] / conky.spec
1 %bcond_without  lua_cairo       # without lua cairo bindings
2 Summary:        A light-weight system monitor
3 Summary(pl.UTF-8):      Monitor systemu dla środowiska graficznego
4 Name:           conky
5 Version:        1.8.1
6 Release:        2
7 License:        Distributable (see COPYING doc)
8 Group:          X11/Applications
9 Source0:        http://downloads.sourceforge.net/conky/%{name}-%{version}.tar.bz2
10 # Source0-md5:  366dc6a5c2ebebfbe6f53da25061b5d6
11 URL:            http://conky.sourceforge.net/
12 BuildRequires:  autoconf
13 BuildRequires:  automake
14 BuildRequires:  expat-devel
15 BuildRequires:  freetype-devel
16 BuildRequires:  gettext-devel
17 BuildRequires:  glib2-devel >= 2.0
18 BuildRequires:  libtool
19 BuildRequires:  lua51-devel >= 5.1
20 BuildRequires:  ncurses-devel
21 BuildRequires:  pkgconfig >= 1:0.19
22 BuildRequires:  sed >= 4.0
23 %{?with_lua_cairo:BuildRequires:        tolua++-libs >= 1.0.90}
24 BuildRequires:  xorg-lib-libXdamage-devel
25 BuildRequires:  xorg-lib-libXext-devel
26 BuildRequires:  xorg-lib-libXft-devel
27 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29 %description
30 Conky is a light-weight system monitor based on the torsmo code. Conky
31 can display arbitrary information (such as the date, CPU temperature
32 from i2c, MPD info, and anything else you desire) to the root window
33 in X11.
34
35 %description -l pl.UTF-8
36 Conky jest niewielkim monitorem systemu opartym na kodzie torsmo. Może
37 wyświetlać takie informacje, jak:
38 - data
39 - temperatura CPU
40 - ilość miejsca na dysku itp.
41
42 %prep
43 %setup -q
44 %{__sed} -i 's,lua5.1,lua51,' configure.ac
45
46 %build
47 %{__libtoolize}
48 %{__aclocal} -I m4
49 %{__autoconf}
50 %{__autoheader}
51 %{__automake}
52 %configure \
53         CFLAGS="%{rpmcflags} `pkg-config ncurses --cflags`" \
54         LIBS="-ltinfo" \
55         %{?with_lua_cairo:--enable-lua-cairo}
56 %{__make}
57
58 %install
59 rm -rf $RPM_BUILD_ROOT
60
61 %{__make} install \
62         DESTDIR=$RPM_BUILD_ROOT
63
64 %clean
65 rm -rf $RPM_BUILD_ROOT
66
67 %files
68 %defattr(644,root,root,755)
69 # COPYING must be added (see COPYING file)
70 %doc AUTHORS ChangeLog COPYING README TODO
71 %attr(755,root,root) %{_bindir}/%{name}
72 %dir %{_sysconfdir}/conky
73 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conky/%{name}.conf
74 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conky/%{name}_no_x11.conf
75 %dir %{_libdir}/conky
76 %if %{with lua_cairo}
77 %{_libdir}/conky/libcairo.so.*.*.*
78 %ghost %{_libdir}/conky/libcairo.so.0
79 %endif
80 %{_mandir}/man1/%{name}.1*
This page took 0.069802 seconds and 4 git commands to generate.