Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:MJHutchinson:mono-games
ogre
ogre.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File ogre.spec of Package ogre
# Spec file originated from the "games" OBS project # Edited and updated by Michael Hutchinson # # Contains portions from the PackMan spec file, and these are # copyright (c) 2007-2008 oc2pus <toni@links2linux.de> # # This file and all modifications and additions to the pristine # package are under the same license as the package itself. %define name ogre %define major 1 %define minor 4 %define micro 9 %define version %{major}.%{minor}.%{micro} %define release 1 %ifarch %ix86 x86_64 %define _with_Cg 1 %else %define _with_Cg 0 %endif %define _with_FreeImage 1 Summary: Ogre 3D: an open source graphics engine Name: %{name} Url: http://www.ogre3d.org/ Version: %{version} Release: %{release} License: LGPL v 2.1 Group: Development/Libraries Source: %{name}-v%{major}-%{minor}-%{micro}.tar.bz2 Patch0: %{name}-1.2.1-rpath.patch BuildRequires: zziplib-devel xorg-x11-Mesa-devel gcc-c++ pkg-config libcegui-devel >= 0.5 libois-devel OpenEXR-devel %if "%{_with_Cg}" == "1" BuildRequires: libCg-devel %endif %if "%{_with_FreeImage}" == "0" BuildRequires: libdevil-devel %else BuildRequires: libfreeimage-devel %endif BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot %description OGRE (Object-Oriented Graphics Rendering Engine) is a scene-oriented, flexible 3D engine written in C++ designed to make it easier and more intuitive for developers to produce applications utilising hardware-accelerated 3D graphics. The class library abstracts all the details of using the underlying system libraries like Direct3D and OpenGL and provides an interface based on world objects and other intuitive classes. %package -n %{name}-devel Summary: Ogre 3D: an open source graphics engine Group: Development/Libraries Requires: %{name} = %{version} libois-devel zziplib-devel %if "%{_with_Cg}" == "1" Requires: libCg-devel %endif %if "%{_with_FreeImage}" == "0" Requires: libdevil-devel %else Requires: libfreeimage-devel %endif %description -n %{name}-devel OGRE (Object-Oriented Graphics Rendering Engine) is a scene-oriented, flexible 3D engine written in C++ designed to make it easier and more intuitive for developers to produce applications utilising hardware-accelerated 3D graphics. The class library abstracts all the details of using the underlying system libraries like Direct3D and OpenGL and provides an interface based on world objects and other intuitive classes. This package contains the development headers. %package -n %{name}-demos-media Summary: Ogre 3D: an open source graphics engine Group: Development Requires: %{name} = %{version} %description -n %{name}-demos-media OGRE (Object-Oriented Graphics Rendering Engine) is a scene-oriented, flexible 3D engine written in C++ designed to make it easier and more intuitive for developers to produce applications utilising hardware-accelerated 3D graphics. The class library abstracts all the details of using the underlying system libraries like Direct3D and OpenGL and provides an interface based on world objects and other intuitive classes. This package contains media files for the OGRE demos. %package -n %{name}-demos Summary: Ogre 3D: an open source graphics engine Group: Development Requires: %{name}-demos-media = %{version} libcegui %if "%{_with_Cg}" == "1" Requires: Cg ogre-plugin-Cg %endif %description -n %{name}-demos OGRE (Object-Oriented Graphics Rendering Engine) is a scene-oriented, flexible 3D engine written in C++ designed to make it easier and more intuitive for developers to produce applications utilising hardware-accelerated 3D graphics. The class library abstracts all the details of using the underlying system libraries like Direct3D and OpenGL and provides an interface based on world objects and other intuitive classes. This package contains the OGRE demos applications. NOTE: to run the demos Ogre-*, copy all cfg files from /usr/share/ogre/Media to a user-writable directory. %package -n %{name}-tools Summary: Ogre 3D: an open source graphics engine Group: Development Requires: %{name} = %{version} OpenEXR %description -n %{name}-tools OGRE (Object-Oriented Graphics Rendering Engine) is a scene-oriented, flexible 3D engine written in C++ designed to make it easier and more intuitive for developers to produce applications utilising hardware-accelerated 3D graphics. The class library abstracts all the details of using the underlying system libraries like Direct3D and OpenGL and provides an interface based on world objects and other intuitive classes. This package contains various tools that make working with ogre easier. %package -n %{name}-doc Summary: Ogre 3D: an open source graphics engine Group: Development %description -n %{name}-doc OGRE (Object-Oriented Graphics Rendering Engine) is a scene-oriented, flexible 3D engine written in C++ designed to make it easier and more intuitive for developers to produce applications utilising hardware-accelerated 3D graphics. The class library abstracts all the details of using the underlying system libraries like Direct3D and OpenGL and provides an interface based on world objects and other intuitive classes. This package contains documentation for OGRE %package -n %{name}-devel-doc Summary: Development documentation for Ogre 3D Group: Development %description -n %{name}-devel-doc OGRE (Object-Oriented Graphics Rendering Engine) is a scene-oriented, flexible 3D engine written in C++ designed to make it easier and more intuitive for developers to produce applications utilising hardware-accelerated 3D graphics. The class library abstracts all the details of using the underlying system libraries like Direct3D and OpenGL and provides an interface based on world objects and other intuitive classes. This package contains development documentation for OGRE %package -n %{name}-plugin-Cg Summary: Ogre 3D: an open source graphics engine Group: Development Requires: %{name} = %{version} libCg %description -n %{name}-plugin-Cg OGRE (Object-Oriented Graphics Rendering Engine) is a scene-oriented, flexible 3D engine written in C++ designed to make it easier and more intuitive for developers to produce applications utilising hardware-accelerated 3D graphics. The class library abstracts all the details of using the underlying system libraries like Direct3D and OpenGL and provides an interface based on world objects and other intuitive classes. This package contains the Cg plugin %package -n %{name}-plugin-OpenEXR Summary: Ogre 3D: an open source graphics engine Group: Development Requires: %{name} = %{version} OpenEXR %description -n %{name}-plugin-OpenEXR OGRE (Object-Oriented Graphics Rendering Engine) is a scene-oriented, flexible 3D engine written in C++ designed to make it easier and more intuitive for developers to produce applications utilising hardware-accelerated 3D graphics. The class library abstracts all the details of using the underlying system libraries like Direct3D and OpenGL and provides an interface based on world objects and other intuitive classes. This package contains the OpenEXR plugin %debug_package %prep %setup -q -n ogre %patch -p1 # fix line-endings of Docs %__sed -i 's/\r//g' \ Docs/ChangeLog.html \ Docs/manual/*.html # remove execute bits from src-files for -debuginfo package %__chmod -x `find RenderSystems/GL -type f` \ `find Samples/DeferredShading -type f` \ Samples/DynTex/src/DynTex.cpp # remove spurious execute bits from some Media files %__chmod -x `find Samples/Media/DeferredShadingMedia -type f` \ Samples/Media/overlays/Example-DynTex.overlay \ Samples/Media/gui/TaharezLook.looknfeel \ Samples/Media/gui/Falagard.xsd \ Samples/Media/materials/scripts/Example-DynTex.material # create a clean version of the api docs %__install -dm 755 api %__cp Docs/api/html/*.html \ Docs/api/html/*.gif \ Docs/api/html/*.png \ Docs/api/html/*.css api for i in api/OgreParticleEmitter_8h-source.html \ api/classOgre_1_1ParticleSystem.html \ api/classOgre_1_1DynLib.html \ api/classOgre_1_1ParticleEmitter.html; do iconv -f ISO_8859-2 -t UTF8 $i > api/tmp %__mv api/tmp $i done %build %if 0%{?suse_version} <= 1010 export LDFLAGS="$LDFLAGS -L/usr/X11R6/%{_lib}" %endif %configure \ --enable-shared \ --enable-static \ --enable-openexr \ --with-platform=GLX \ %if "%{_with_FreeImage}" == "0" --disable-freeimage \ %else --disable-devil \ %endif %if "%{_with_Cg}" == "0" --disable-cg %endif # --enable-threading # Don't use rpath! %__sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \ libtool %__sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' \ libtool # Stop ogre from linking the GL render plugin against the system libOgre # instead of the just build one. %__sed -i 's|-L%{_libdir}||g' `find -name Makefile` %__make %{?jobs:-j%{jobs}} %install %makeinstall # copy some forgotten headers ... (ogre4j needs them) %__install -dm 755 %{buildroot}%{_includedir}/OGRE %__install -m 644 OgreMain/include/OgreOptimisedUtil.h \ %{buildroot}%{_includedir}/OGRE %__install -m 644 OgreMain/include/OgrePlatformInformation.h \ %{buildroot}%{_includedir}/OGRE # move demos and create new name pushd %{buildroot}/usr/src/packages/BUILD/ogre/Samples/Common/bin demo_list=`ls -1` for i in $demo_list; do %__install -m 755 $i \ %{buildroot}%{_bindir}/Ogre-$i done popd %__rm -r %{buildroot}/usr/src #install media files %__install -dm 755 %{buildroot}%{_datadir}/%{name}/Media %__cp -R Samples/Media/* %{buildroot}%{_datadir}/%{name}/Media #fix the paths in the .cfg files # TODO: make cfg's writable for group game ??? %__sed -i -e 's|/usr/local/lib|%{_libdir}|g' Samples/Common/bin/plugins.cfg %__sed -i -e 's|../../|%{_datadir}/%{name}/|g' Samples/Common/bin/resources.cfg %__sed -i -e 's|\\|/|g;s|../../|/usr/share/ogre/|g' Samples/Common/bin/quake3settings.cfg %__install -m 644 Samples/Common/bin/*.cfg %{buildroot}%{_datadir}/%{name}/Media # remove unwanted files %__rm %{buildroot}%{_libdir}/*.la %__rm %{buildroot}%{_libdir}/OGRE/*.a %__rm %{buildroot}%{_libdir}/OGRE/*.la # remove sources from docs %__rm -r Docs/src %__rm -r Docs/shadows/src %__install -dm 755 %{buildroot}%{_docdir}/%{name}-devel %__mv Docs/api %{buildroot}%{_docdir}/%{name}-devel %__mv LINUX.DEV %{buildroot}%{_docdir}/%{name}-devel %clean [ -d %{buildroot} -a "%{buildroot}" != "" ] && %__rm -rf %{buildroot} %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root) %doc AUTHORS BUGS COPYING README %{_libdir}/libCEGUIOgreRenderer-%{version}.so %{_libdir}/libOgreMain-%{version}.so %dir %{_libdir}/OGRE %{_libdir}/OGRE/Plugin_BSPSceneManager.so %{_libdir}/OGRE/Plugin_OctreeSceneManager.so %{_libdir}/OGRE/Plugin_ParticleFX.so %{_libdir}/OGRE/RenderSystem_GL.so %files -n %{name}-devel %defattr(-,root,root) %dir %{_includedir}/OGRE %{_includedir}/OGRE/* %{_libdir}/libOgreMain.so %{_libdir}/libOgreMain.a %{_libdir}/pkgconfig/OGRE.pc %{_libdir}/libCEGUIOgreRenderer.so %{_libdir}/libCEGUIOgreRenderer.a %{_libdir}/pkgconfig/CEGUI-OGRE.pc %files -n %{name}-devel-doc %defattr(-,root,root) %doc %{_docdir}/ogre-devel/* #%doc LINUX.DEV api Docs/manual Docs/vbo-update Docs/style.css %files -n %{name}-demos-media %defattr(-,root,root) %dir %{_datadir}/ogre/Media %{_datadir}/ogre/Media %files -n %{name}-demos %defattr(-,root,root) %doc Samples/ReadMe.html %{_bindir}/Ogre-* %files tools %defattr(-,root,root) %doc Tools/CommandLineTools_Readme.txt %doc Tools/XMLConverter/docs/* %{_bindir}/OgreMaterialUpgrade %{_bindir}/OgreMeshUpgrade %{_bindir}/OgreXMLConverter %files -n %{name}-doc %defattr(-,root,root) %doc Docs/* %if "%{_with_Cg}" == "1" %files -n %{name}-plugin-Cg %defattr(-,root,root) %dir %{_libdir}/OGRE %{_libdir}/OGRE/Plugin_CgProgramManager.so %endif %files -n %{name}-plugin-OpenEXR %defattr(-,root,root) %dir %{_libdir}/OGRE %{_libdir}/OGRE/Plugin_EXRCodec.so %changelog * Thu Aug 28 2008 Michael Hutchinson <mhutchinson@novell.com> - 1.4.9.1 - Merged much of oc2pus's PackMan spec file. * Mon Aug 25 2008 Michael Hutchinson <mhutchinson@novell.com> - 1.4.9 - Updated to OGRE 1.4.9. * Wed Mar 26 2008 Pavol Matt Williams <matt@milliams.com> - Build with DevIL rather than FreeImage to avoid conflicts with system libraries * Thu Mar 13 2008 Pavol Rusnak <prusnak@suse.cz> - Updated to OGRE 1.4.7 * Thu Jan 24 2008 Pavol Rusnak <prusnak@suse.cz> - Updated to OGRE 1.4.6 - drop includes.patch * Wed Dec 18 2007 Pavol Rusnak <prusnak@suse.cz> - Updated to OGRE 1.4.5 - Fix missing includes (includes.patch) * Wed Aug 8 2007 Matt Williams <matt@milliams.com> - Updated to OGRE 1.4.4 * Wed Aug 8 2007 Matt Williams <matt@milliams.com> - Updated to OGRE 1.4.3 - Renamed ogre(-devel) package to libogre(-devel) * Wed Jan 10 2007 Kai Blin <kai.blin@gmail.com> - Initial spec file for ogre 1.2.4
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor