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