2 # TODO: - bconds for rest of the plugins
3 # - fix build on 64 bits
6 %bcond_with cg # build with cg
8 %ifnarch %{ix86} %{x8664}
12 %define _ver %(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%{_ver}.tar.bz2
21 # Source0-md5: 85083083dc65d49572654ea8c8b5c552
22 URL: http://www.ogre3d.org/
23 BuildRequires: CEGUI-devel
24 BuildRequires: FreeImage-devel
25 BuildRequires: OpenEXR-devel
26 BuildRequires: OpenGL-GLU-devel
27 %{?with_cg:BuildRequires: cg-devel}
29 BuildRequires: cppunit-devel >= 1.10.0
30 BuildRequires: freetype-devel >= 2.1.0
31 BuildRequires: libstdc++-devel
32 BuildRequires: pkgconfig
33 BuildRequires: xorg-lib-libXaw-devel
34 BuildRequires: xorg-lib-libXrandr-devel
35 BuildRequires: xorg-lib-libXxf86vm-devel
36 BuildRequires: xorg-proto-xf86vidmodeproto-devel
37 BuildRequires: zlib-devel
38 BuildRequires: zziplib-devel
39 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
42 Object-oriented Graphics Rendering Engine.
44 %description -l pl.UTF-8
45 OGRE - zorientowany obiektowo silnik renderowania grafiki
48 Summary: Header files for OGRE library
49 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki OGRE
50 Group: Development/Libraries
51 Requires: %{name} = %{version}-%{release}
52 Requires: FreeImage-devel
53 Requires: freetype-devel >= 2.1.0
54 Requires: libstdc++-devel
56 Requires: zziplib-devel
57 # libOgrePlatform additionally: XFree86-devel/xorg-lib-libX11-devel OpenGL-GLU-devel
60 This is the package containing the header files for OGRE library.
62 %description devel -l pl.UTF-8
63 Ten pakiet zawiera pliki nagłówkowe biblioteki OGRE.
67 Summary(pl.UTF-8): Przykłady do OGRE
73 %description examples -l pl.UTF-8
77 %setup -q -n %{name}_src_v%{_ver}
83 -DCMAKE_BUILD_TYPE=%{!?debug:Release}%{?debug:Debug} \
84 -DCMAKE_INSTALL_PREFIX=%{_prefix} \
85 %if "%{_lib}" == "lib64"
92 rm -rf $RPM_BUILD_ROOT
94 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
95 cp -pr Samples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
97 %{__make} -C build install \
98 DESTDIR=$RPM_BUILD_ROOT
100 rm -f $RPM_BUILD_ROOT%{_libdir}/OGRE/*.la
103 rm -rf $RPM_BUILD_ROOT
105 %post -p /sbin/ldconfig
106 %postun -p /sbin/ldconfig
109 %defattr(644,root,root,755)
110 %doc AUTHORS BUGS README
111 %attr(755,root,root) %{_bindir}/Ogre*
113 %attr(755,root,root) %{_libdir}/OGRE/*.so
114 %attr(755,root,root) %{_libdir}/libOgreMain.so.*.*.*
115 %attr(755,root,root) %{_libdir}/libOgrePaging.so.*.*.*
116 %attr(755,root,root) %{_libdir}/libOgreProperty.so.*.*.*
117 %attr(755,root,root) %{_libdir}/libOgreRTShaderSystem.so.*.*.*
118 %attr(755,root,root) %{_libdir}/libOgreTerrain.so.*.*.*
121 %defattr(644,root,root,755)
122 %attr(755,root,root) %{_libdir}/libOgreMain.so
123 %attr(755,root,root) %{_libdir}/libOgrePaging.so
124 %attr(755,root,root) %{_libdir}/libOgreProperty.so
125 %attr(755,root,root) %{_libdir}/libOgreRTShaderSystem.so
126 %attr(755,root,root) %{_libdir}/libOgreTerrain.so
128 %{_pkgconfigdir}/OGRE.pc
129 %{_pkgconfigdir}/OGRE-PCZ.pc
130 %{_pkgconfigdir}/OGRE-Paging.pc
131 %{_pkgconfigdir}/OGRE-Property.pc
132 %{_pkgconfigdir}/OGRE-RTShaderSystem.pc
133 %{_pkgconfigdir}/OGRE-Terrain.pc
136 %defattr(644,root,root,755)
137 %{_examplesdir}/%{name}-%{version}