File cegui.spec of Package cegui
#
# spec file for package cegui
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
BuildRequires: DevIL-devel xorg-x11-Mesa-devel freetype2-devel gcc-c++ pcre-devel libfreeimage-devel libxml2-devel pkgconfig lua-devel
%if 0%{?suse_version}
BuildRequires: Xerces-c-devel libexpat-devel
%else
BuildRequires: xerces-c-devel expat-devel
%endif
Name: cegui
%define realname CEGUI
Version: 0.6.2b
Release: 1
Url: http://www.cegui.org.uk/
License: LGPL
Group: System/Libraries
Summary: Crazy Eddie's GUI System
Source: %{realname}-%{version}.tar.bz2
Source1: %{name}-%{version}-rpmlintrc
# lua.pc is required to build SLE-10 package.
Source99: lua.pc
Patch0: %{name}-%{version}-void.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Crazy Eddie's GUI System is a free library providing windowing and widgets for
graphics APIs / engines where such functionality is not natively available, or
severely lacking. The library is object orientated, written in C++, and
targeted at games developers who should be spending their time creating great
games, not building GUI sub-systems!
%package -n lib%{name}
Summary: Crazy Eddie's GUI System
Group: Development/Libraries
%description -n lib%{name}
Crazy Eddie's GUI System is a free library providing windowing and widgets for
graphics APIs / engines where such functionality is not natively available, or
severely lacking. The library is object orientated, written in C++, and
targeted at games developers who should be spending their time creating great
games, not building GUI sub-systems!
%package -n lib%{name}-devel
Summary: Crazy Eddie's GUI System
Group: Development/Libraries
Requires: lib%{name} = %{version} DevIL-devel xorg-x11-Mesa-devel freetype2-devel
%description -n lib%{name}-devel
Crazy Eddie's GUI System is a free library providing windowing and widgets for
graphics APIs / engines where such functionality is not natively available, or
severely lacking. The library is object orientated, written in C++, and
targeted at games developers who should be spending their time creating great
games, not building GUI sub-systems!
This package contains the development libraries and headers.
%package demos
Summary: Crazy Eddie's GUI System
Group: Development/Libraries
Requires: lib%{name} = %{version}
%description demos
Crazy Eddie's GUI System is a free library providing windowing and widgets for
graphics APIs / engines where such functionality is not natively available, or
severely lacking. The library is object orientated, written in C++, and
targeted at games developers who should be spending their time creating great
games, not building GUI sub-systems!
This package contains some example programs.
%debug_package
%prep
%setup -q -n %{realname}-0.6.2
%patch0
%build
%if 0%{?sles_version} == 10
sed -i -e s@##LIB##@%{_libdir}@g $RPM_SOURCE_DIR/lua.pc
export PKG_CONFIG_PATH=$RPM_SOURCE_DIR
%endif
%configure --enable-toluacegui --disable-samples
make %{?jobs:-j%jobs}
%install
make DESTDIR=$RPM_BUILD_ROOT install
mkdir -p $RPM_BUILD_ROOT%{_datadir}/CEGUI/examples
cd Samples
cp -r . $RPM_BUILD_ROOT%{_datadir}/CEGUI/examples
find $RPM_BUILD_ROOT%{_libdir} -name "*.la" -exec rm {} \;
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%{_bindir}/tolua++cegui
%post -n lib%{name}
/sbin/ldconfig
%postun -n lib%{name}
/sbin/ldconfig
%files -n lib%{name}
%defattr(-,root,root)
# the *.so files are in the main packaged because they are often
# dynamically loaded, unversioned. So programs would not run without them
%{_libdir}/libCEGUIBase.so*
%{_libdir}/libCEGUIDevILImageCodec.so*
%{_libdir}/libCEGUIExpatParser.so*
%{_libdir}/libCEGUIFalagardWRBase.so*
%{_libdir}/libCEGUIFreeImageImageCodec.so*
%{_libdir}/libCEGUILibxmlParser.so*
# %{_libdir}/libCEGUISILLYImageCodec.so*
%{_libdir}/libCEGUITGAImageCodec.so*
%{_libdir}/libCEGUITinyXMLParser.so*
%{_libdir}/libCEGUIXercesParser.so*
%{_libdir}/libCEGUIOpenGLRenderer.so*
%{_libdir}/libCEGUILuaScriptModule.so*
%{_libdir}/libCEGUItoluapp.so*
%files -n lib%{name}-devel
%defattr(-,root,root)
%doc AUTHORS README COPYING
%{_includedir}/CEGUI
%{_libdir}/pkgconfig/CEGUI.pc
%{_libdir}/pkgconfig/CEGUI-OPENGL.pc
%files demos
%defattr(-,root,root)
%{_datadir}/CEGUI
%exclude %{_datadir}/CEGUI/examples/*/*/.deps
%exclude %{_datadir}/CEGUI/examples/*/.deps
%changelog