2 # TODO: - bconds for the rest of the plugins
5 %bcond_with cg # build with cg
6 %bcond_with samples # build samples (not installed anyway)
8 %ifnarch %{ix86} %{x8664}
12 %define fver %(echo %{version} | tr . -)
13 Summary: Object-oriented Graphics Rendering Engine
14 Summary(pl.UTF-8): OGRE - zorientowany obiektowo silnik renderowania grafiki
20 Source0: http://downloads.sourceforge.net/ogre/%{name}_src_v%{fver}.tar.bz2
21 # Source0-md5: b85e3dcf370a46b3a8624d4fdd722d39
22 Patch0: boost-1.50.patch
23 URL: http://www.ogre3d.org/
24 %{?with_samples:BuildRequires: CEGUI-devel}
25 BuildRequires: FreeImage-devel
26 # no makefiles for EXR plugin
27 #BuildRequires: OpenEXR-devel
28 BuildRequires: OpenGL-GLU-devel
29 BuildRequires: boost-devel
30 %{?with_cg:BuildRequires: cg-devel}
31 BuildRequires: cmake >= 2.6.2
32 BuildRequires: cppunit-devel >= 1.10.0
33 BuildRequires: freetype-devel >= 2.1.0
34 BuildRequires: libstdc++-devel
35 BuildRequires: pkgconfig
36 BuildRequires: rpmbuild(macros) >= 1.600
37 BuildRequires: tinyxml-devel
38 BuildRequires: xorg-lib-libXaw-devel
39 BuildRequires: xorg-lib-libXrandr-devel
40 BuildRequires: xorg-lib-libXxf86vm-devel
41 BuildRequires: xorg-proto-xf86vidmodeproto-devel
42 BuildRequires: zlib-devel
43 BuildRequires: zziplib-devel
44 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
47 Object-oriented Graphics Rendering Engine.
49 %description -l pl.UTF-8
50 OGRE - zorientowany obiektowo silnik renderowania grafiki
53 Summary: Header files for OGRE library
54 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki OGRE
55 Group: Development/Libraries
56 Requires: %{name} = %{version}-%{release}
57 Requires: FreeImage-devel
58 Requires: freetype-devel >= 2.1.0
59 Requires: libstdc++-devel
61 Requires: zziplib-devel
62 # libOgrePlatform additionally: XFree86-devel/xorg-lib-libX11-devel OpenGL-GLU-devel
65 This is the package containing the header files for OGRE library.
67 %description devel -l pl.UTF-8
68 Ten pakiet zawiera pliki nagłówkowe biblioteki OGRE.
72 Summary(pl.UTF-8): Przykłady do OGRE
78 %description examples -l pl.UTF-8
82 %setup -q -n %{name}_src_v%{fver}
88 # "None" is an alias for release, but uses plain CMAKE_CXX_FLAGS; "PLD" build type is not supported
90 -DCMAKE_BUILD_TYPE=%{?debug:Debug}%{!?debug:None} \
91 %{!?with_samples:-DOGRE_BUILD_SAMPLES=FALSE}
96 rm -rf $RPM_BUILD_ROOT
98 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
99 cp -pr Samples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
101 %{__make} -C build install \
102 DESTDIR=$RPM_BUILD_ROOT
105 rm -rf $RPM_BUILD_ROOT
107 %post -p /sbin/ldconfig
108 %postun -p /sbin/ldconfig
111 %defattr(644,root,root,755)
112 %doc AUTHORS BUGS COPYING README
113 %attr(755,root,root) %{_bindir}/OgreMeshUpgrader
114 %attr(755,root,root) %{_bindir}/OgreXMLConverter
116 %attr(755,root,root) %{_libdir}/OGRE/*.so*
117 %attr(755,root,root) %{_libdir}/libOgreMain.so.*.*.*
118 %attr(755,root,root) %{_libdir}/libOgrePaging.so.*.*.*
119 %attr(755,root,root) %{_libdir}/libOgreProperty.so.*.*.*
120 %attr(755,root,root) %{_libdir}/libOgreRTShaderSystem.so.*.*.*
121 %attr(755,root,root) %{_libdir}/libOgreTerrain.so.*.*.*
124 %defattr(644,root,root,755)
125 %attr(755,root,root) %{_libdir}/libOgreMain.so
126 %attr(755,root,root) %{_libdir}/libOgrePaging.so
127 %attr(755,root,root) %{_libdir}/libOgreProperty.so
128 %attr(755,root,root) %{_libdir}/libOgreRTShaderSystem.so
129 %attr(755,root,root) %{_libdir}/libOgreTerrain.so
131 %{_pkgconfigdir}/OGRE.pc
132 %{_pkgconfigdir}/OGRE-PCZ.pc
133 %{_pkgconfigdir}/OGRE-Paging.pc
134 %{_pkgconfigdir}/OGRE-Property.pc
135 %{_pkgconfigdir}/OGRE-RTShaderSystem.pc
136 %{_pkgconfigdir}/OGRE-Terrain.pc
138 %{_libdir}/OGRE/cmake
141 %defattr(644,root,root,755)
142 %{_examplesdir}/%{name}-%{version}