# Conditional build: %bcond_with gtk3 # build GTK+3 disables GTK+2 %bcond_without gtk2 # build with GTK+2 %if %{with gtk3} %undefine with_gtk2 %endif Summary: Lightweight task manager Name: lxtask Version: 0.1.8 Release: 1 License: GPL v2 Group: X11/Applications Source0: http://downloads.sourceforge.net/lxde/%{name}-%{version}.tar.xz # Source0-md5: dd4f423dda192cb50618c6b1e76ec6b7 URL: http://wiki.lxde.org/en/LXTask BuildRequires: gettext-tools %{?with_gtk2:BuildRequires: gtk+2-devel >= 2:2.12.0} %{?with_gtk3:BuildRequires: gtk+3-devel} BuildRequires: intltool BuildRequires: pkgconfig BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description LXTask - lightweight and desktop-independent task manager derived from xfce4-taskmanager with all dependencies on xfce removed, new features, and some improvement of the user interface. %prep %setup -q %build %configure \ %{?with_gtk3:--enable-gtk3} %{__make} %install rm -rf $RPM_BUILD_ROOT %{__make} install \ DESTDIR=$RPM_BUILD_ROOT # duplicate of ur %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/locale/ur_PK # unsupported by glibc %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/locale/frp %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/locale/tt_RU %find_lang %{name} %clean rm -rf $RPM_BUILD_ROOT %files -f %{name}.lang %defattr(644,root,root,755) %doc AUTHORS README %attr(755,root,root) %{_bindir}/lxtask %{_desktopdir}/lxtask.desktop %{_mandir}/man1/lxtask.1.*