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