packages: CEGUI/CEGUI.spec - bcond and spare package for OpenGLRenderer
lisu
lisu at pld-linux.org
Wed May 12 13:36:46 CEST 2010
Author: lisu Date: Wed May 12 11:36:46 2010 GMT
Module: packages Tag: HEAD
---- Log message:
- bcond and spare package for OpenGLRenderer
---- Files affected:
packages/CEGUI:
CEGUI.spec (1.28 -> 1.29)
---- Diffs:
================================================================
Index: packages/CEGUI/CEGUI.spec
diff -u packages/CEGUI/CEGUI.spec:1.28 packages/CEGUI/CEGUI.spec:1.29
--- packages/CEGUI/CEGUI.spec:1.28 Wed May 12 11:10:53 2010
+++ packages/CEGUI/CEGUI.spec Wed May 12 13:36:40 2010
@@ -7,7 +7,8 @@
#
# Conditional build:
%bcond_without xercesc # build XercesParser
-%bcond_without ogre # build samples with ogre3d
+%bcond_without ogre # build without Ogre renderer
+%bcond_without opengl # build without OpenGL renderer
%bcond_with samples # build samples
#
Summary: CEGUI - a free library providing windowing and widgets
@@ -26,8 +27,10 @@
BuildRequires: DevIL-devel
BuildRequires: DirectFB-devel
BuildRequires: FreeImage-devel
+%if %{with opengl}
BuildRequires: OpenGL-GLU-devel
BuildRequires: OpenGL-glut-devel
+%endif
BuildRequires: SILLY-devel >= 0.1.0
BuildRequires: autoconf >= 2.59
BuildRequires: automake
@@ -97,6 +100,17 @@
%description docs -l pl.UTF-8
Dokumentacja CEGUI.
+%package OPENGL
+Summary: OpenGLRenderer library for CEGUI
+Summary(pl.UTF-8): Biblioteka OpenGLRenderer dla CEGUI
+Group: Libraries
+Requires: %{name} = %{version}-%{release}
+
+%description OPENGL
+OpenGLRenderer library for CEGUI.
+
+%description OPENGL -l pl.UTF-8
+Biblioteka OpenGLRenderer dla CEGUI.
%prep
%setup -q -a 1
@@ -113,6 +127,7 @@
--with-default-xml-parser=LibxmlParser \
%{!?with_samples:--disable-samples} \
--%{?with_ogre:en}%{!?with_ogre:dis}able-ogre-renderer \
+ --%{?with_opengl:en}%{!?with_opengl:dis}able-opengl-renderer \
--%{?with_xercesc:en}%{!?with_xercesc:dis}able-xerces-c
%{__make}
@@ -132,9 +147,7 @@
%files
%defattr(644,root,root,755)
%doc doc/README
-# libs
%attr(755,root,root) %{_libdir}/libCEGUIBase-%{version}.so
-%attr(755,root,root) %{_libdir}/libCEGUIOpenGLRenderer-%{version}.so
# plugins
%attr(755,root,root) %{_libdir}/libCEGUICoronaImageCodec-%{version}.so
%attr(755,root,root) %{_libdir}/libCEGUICoronaImageCodec.so
@@ -173,9 +186,7 @@
%files devel
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/libCEGUIBase.so
-%attr(755,root,root) %{_libdir}/libCEGUIOpenGLRenderer.so
%{_libdir}/libCEGUIBase.la
-%{_libdir}/libCEGUIOpenGLRenderer.la
# plugins - but as their headers are included...
%{_libdir}/libCEGUICoronaImageCodec.la
%{_libdir}/libCEGUIDevILImageCodec.la
@@ -194,12 +205,23 @@
%{_pkgconfigdir}/CEGUI.pc
%{_pkgconfigdir}/CEGUI-OPENGL.pc
+%if %{with opengl}
+%files OPENGL
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libCEGUIOpenGLRenderer-%{version}.so
+%attr(755,root,root) %{_libdir}/libCEGUIOpenGLRenderer.so
+%{_libdir}/libCEGUIOpenGLRenderer.la
+%endif
+
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
* %{date} PLD Team <feedback at pld-linux.org>
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.29 2010/05/12 11:36:40 lisu
+- bcond and spare package for OpenGLRenderer
+
Revision 1.28 2010/05/12 09:10:53 lisu
- build ogre renderer by default
- use --(dis,en)able instead of --with(out) for ogre bcond
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/CEGUI/CEGUI.spec?r1=1.28&r2=1.29&f=u
More information about the pld-cvs-commit
mailing list