From a86e3925c3f9af8496ca38ba33e1e35a4da8fd38 Mon Sep 17 00:00:00 2001 From: Jakub Bogusz Date: Sun, 23 Oct 2005 10:26:04 +0000 Subject: [PATCH] - added bcond to build with multi application core - always leave dfbdump and dfbg - seem to do something with single core too Changed files: DirectFB.spec -> 1.58 --- DirectFB.spec | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/DirectFB.spec b/DirectFB.spec index e361325..d97e7b4 100644 --- a/DirectFB.spec +++ b/DirectFB.spec @@ -1,3 +1,7 @@ +# +# Conditional build: +%bcond_with multi # build Multi-application core +# Summary: DirectFB - Hardware graphics acceleration Summary(pl): DirectFB - Wspomaganie grafiki Name: DirectFB @@ -27,6 +31,7 @@ BuildRequires: libjpeg-devel >= 6b BuildRequires: libpng-devel >= 1.0 BuildRequires: libvncserver-devel BuildRequires: libtool +%{?with_multi:BuildRequires: linux-fusion-devel} BuildRequires: sed >= 4.0 BuildRequires: sysfsutils-devel >= 1.3.0-3 BuildRequires: zlib-devel >= 1.1.3 @@ -207,6 +212,7 @@ UWAGA: do dzia --enable-elo-input \ --enable-fast-install \ --enable-linux-input \ + %{?with_multi:--enable-multi} \ --enable-mutouch \ --enable-sdl \ --enable-shared \ @@ -236,9 +242,6 @@ install -d $RPM_BUILD_ROOT{%{_examplesdir}/%{name}-%{version},%{_sysconfdir}} cp -rf DFBTutorials* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} -# dbfdump and dfbg require multi-application core - useless now -rm -f $RPM_BUILD_ROOT{%{_bindir}/{dfbdump,dfbg},%{_mandir}/man1/dfbg.1} - touch %{_sysconfdir}/directfbrc %clean @@ -250,6 +253,8 @@ rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc AUTHORS ChangeLog NEWS README TODO +%attr(755,root,root) %{_bindir}/dfbdump +%attr(755,root,root) %{_bindir}/dfbg %attr(755,root,root) %{_bindir}/dfbinfo %attr(755,root,root) %{_bindir}/dfblayer %attr(755,root,root) %{_bindir}/dfbproxy @@ -308,6 +313,7 @@ rm -rf $RPM_BUILD_ROOT %attr(755,root,root) %{dfbdir}/wm/*.so %{_datadir}/directfb-%{version} %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/directfbrc +%{_mandir}/man1/dfbg.1* %{_mandir}/man5/* %files devel -- 2.44.0