]> git.pld-linux.org Git - packages/conky.git/blobdiff - conky.spec
- fix files
[packages/conky.git] / conky.spec
index c7a266f9bb41e38fe0f732e2eb30851757734ad7..706d2535df00a50ce687e04ec84cc2eda5bb8273 100644 (file)
@@ -1,12 +1,15 @@
 #
+# TODO: fix build with lua. Now when lua enabled conky requires tolua++-devel when installing
+#
 # Conditional build:
-%bcond_without lua_cairo       # without lua cairo bindings
+%bcond_with    lua_cairo       # without lua cairo bindings
+%bcond_with    lua_imlib2      # without lua imlib2 bindings
 #
 Summary:       A light-weight system monitor
 Summary(pl.UTF-8):     Monitor systemu dla Å›rodowiska graficznego
 Name:          conky
 Version:       1.8.1
-Release:       3
+Release:       5
 License:       Distributable (see COPYING doc)
 Group:         X11/Applications
 Source0:       http://downloads.sourceforge.net/conky/%{name}-%{version}.tar.bz2
@@ -19,15 +22,19 @@ BuildRequires:      automake
 BuildRequires: curl-devel
 BuildRequires: expat-devel
 BuildRequires: freetype-devel
-BuildRequires: gettext-devel
+BuildRequires: gettext-tools
 BuildRequires: glib2-devel >= 2.0
 BuildRequires: imlib2-devel
 BuildRequires: libtool
+BuildRequires: libxml2-devel
 BuildRequires: lua51-devel >= 5.1
 BuildRequires: ncurses-devel
 BuildRequires: pkgconfig >= 1:0.19
 BuildRequires: sed >= 4.0
-%{?with_lua_cairo:BuildRequires:       tolua++-devel >= 1.0.90}
+BuildRequires: sqlite3-devel
+%if %{with lua_cairo} || %{with lua_imlib2}
+BuildRequires: tolua++-devel >= 1.0.90
+%endif
 BuildRequires: xorg-lib-libXdamage-devel
 BuildRequires: xorg-lib-libXext-devel
 BuildRequires: xorg-lib-libXft-devel
@@ -82,11 +89,13 @@ DowiÄ…zania Lua Imlib2 dla Conky.
 %{__automake}
 %configure \
        CFLAGS="%{rpmcflags} `pkg-config ncurses --cflags`" \
-       LIBS="-ltinfo" \
        --enable-curl \
        --enable-imlib2 \
+       --enable-weather-xoap \
+       --enable-wlan \
+       --enable-rss \
        %{?with_lua_cairo:--enable-lua-cairo} \
-       --enable-lua-imlib2
+       %{?with_lua_imlib2:--enable-lua-imlib2}
 
 %{__make}
 
@@ -107,7 +116,9 @@ rm -rf $RPM_BUILD_ROOT
 %dir %{_sysconfdir}/conky
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conky/%{name}.conf
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conky/%{name}_no_x11.conf
+%if %{with lua_cairo} || %{with lua_imlib2}
 %dir %{_libdir}/conky
+%endif
 %{_mandir}/man1/%{name}.1*
 
 %if %{with lua_cairo}
@@ -117,7 +128,9 @@ rm -rf $RPM_BUILD_ROOT
 %{_libdir}/conky/libcairo.so
 %endif
 
+%if %{with lua_imlib2}
 %files lua-imlib2
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/conky/libimlib2.so.*.*.*
 %{_libdir}/conky/libimlib2.so
+%endif
This page took 0.06477 seconds and 4 git commands to generate.