[9308] | 1 | %global irrxml_version 1.8.1 |
---|
| 2 | %global irrlicht_version 1.8.1 |
---|
[3061] | 3 | |
---|
| 4 | Name: irrlicht |
---|
| 5 | Summary: A high performance realtime 3D engine |
---|
[9308] | 6 | Summary(ja): 高性能なリアルタイム3Dエンジン |
---|
| 7 | Version: %{irrlicht_version} |
---|
[10570] | 8 | Release: 2%{?_dist_release} |
---|
[9308] | 9 | |
---|
[3061] | 10 | License: zlib |
---|
| 11 | Group: System Environment/Libraries |
---|
[9308] | 12 | URL: http://irrlicht.sourceforge.net/ |
---|
| 13 | |
---|
| 14 | Source0: http://downloads.sourceforge.net/irrlicht/%{name}-%{irrlicht_version}.zip |
---|
[3061] | 15 | # Various fixes, optflags, system libraries/headers |
---|
| 16 | # http://irrlicht.sourceforge.net/phpBB2/viewtopic.php?t=24076&highlight= |
---|
[9308] | 17 | Patch0: irrlicht-1.8-optflags.patch |
---|
[3061] | 18 | # Get the code compiling |
---|
[9308] | 19 | Patch1: irrlicht-1.8-glext.patch |
---|
[3061] | 20 | # Use system libaesgm |
---|
[9308] | 21 | Patch2: irrlicht18-libaesgm.patch |
---|
[3061] | 22 | # Use improved fastatof from assimp |
---|
[9308] | 23 | # Upstream applied a modified version of most of this. |
---|
| 24 | # Patch3: irrlicht18-fastatof-improvements-typefixes.patch |
---|
[3061] | 25 | # Make libIrrXML.so |
---|
[9308] | 26 | Patch4: irrlicht-1.8-irrXML-shared-library.patch |
---|
| 27 | # Fix issue with definition of LOCALE_DECIMAL_POINTS |
---|
| 28 | Patch5: irrlicht-1.8-fix-locale-decimal-points.patch |
---|
| 29 | # Fix build with Mesa 10 |
---|
| 30 | Patch6: irrlicht-1.8.1-mesa10.patch |
---|
[3061] | 31 | |
---|
[9308] | 32 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
[3061] | 33 | BuildRequires: libXxf86vm-devel, mesa-libGL-devel, mesa-libGLU-devel |
---|
[9308] | 34 | BuildRequires: libjpeg-turbo-devel, zlib-devel, libaesgm-devel |
---|
[3061] | 35 | BuildRequires: libpng-devel, bzip2-devel, unzip |
---|
| 36 | |
---|
| 37 | %description |
---|
| 38 | The Irrlicht Engine is an open source high performance realtime 3D engine |
---|
| 39 | written and usable in C++ and also available for .NET languages. It is |
---|
| 40 | completely cross-platform, using D3D, OpenGL and its own software renderer, |
---|
| 41 | and has all of the state-of-the-art features which can be found in |
---|
| 42 | commercial 3d engines. |
---|
| 43 | |
---|
| 44 | %package devel |
---|
| 45 | Summary: Development headers and libraries for irrlicht |
---|
[9308] | 46 | Summary(ja): irrlicht の開発用ヘッダファイルとライブラリ |
---|
| 47 | Group: Development/Libraries |
---|
[3061] | 48 | Requires: %{name} = %{version}-%{release} |
---|
| 49 | Requires: mesa-libGL-devel, mesa-libGLU-devel, libXxf86vm-devel |
---|
| 50 | Requires: libjpeg-devel, zlib-devel, libpng-devel |
---|
| 51 | Requires: irrXML-devel = %{irrxml_version} |
---|
| 52 | |
---|
| 53 | %description devel |
---|
| 54 | Development headers and libraries for irrlicht. |
---|
| 55 | |
---|
| 56 | %package -n irrXML |
---|
| 57 | Summary: Simple and fast XML parser for C++ |
---|
[9308] | 58 | Summary(ja): C++ 用のシンプルかつ高速な XML パーサ |
---|
[3061] | 59 | Group: System Environment/Libraries |
---|
| 60 | Version: %{irrxml_version} |
---|
| 61 | |
---|
| 62 | %description -n irrXML |
---|
| 63 | irrXML is a simple and fast open source xml parser for C++. |
---|
| 64 | |
---|
| 65 | %package -n irrXML-devel |
---|
| 66 | Summary: Development headers and libraries for irrXML |
---|
[9308] | 67 | Summary(ja): irrXML の開発用ヘッダファイルとライブラリ |
---|
[3061] | 68 | Version: %{irrxml_version} |
---|
[9308] | 69 | Group: Development/Libraries |
---|
[3061] | 70 | Requires: irrXML = %{irrxml_version}-%{release} |
---|
| 71 | |
---|
| 72 | %description -n irrXML-devel |
---|
| 73 | Development headers and libraries for irrXML. |
---|
| 74 | |
---|
| 75 | %prep |
---|
| 76 | %setup -q |
---|
| 77 | %patch0 -p1 -b .optflags |
---|
| 78 | %patch1 -p1 -b .glext |
---|
| 79 | %patch2 -p1 -b .libaesgm |
---|
[9308] | 80 | # %patch3 -p1 -b .fastatof |
---|
[3061] | 81 | %patch4 -p1 -b .irrXML |
---|
[9308] | 82 | %patch5 -p1 -b .fix-locale-decimal-points |
---|
| 83 | %patch6 -p1 -b .mesa10 |
---|
[3061] | 84 | |
---|
[9308] | 85 | # Upstream forgot to increment VERSION_RELEASE to 1 in 1.8.1 |
---|
| 86 | sed -i 's|VERSION_RELEASE = 0|VERSION_RELEASE = 1|g' source/Irrlicht/Makefile |
---|
| 87 | |
---|
[3061] | 88 | sed -i 's/\r//' readme.txt |
---|
| 89 | iconv -o readme.txt.iso88591 -f iso88591 -t utf8 readme.txt |
---|
| 90 | mv readme.txt.iso88591 readme.txt |
---|
| 91 | # We don't use any of this. Deleting it so the debuginfo doesn't pick it up. |
---|
| 92 | rm -rf source/Irrlicht/jpeglib source/Irrlicht/zlib source/Irrlicht/libpng source/Irrlicht/aesGladman |
---|
| 93 | |
---|
| 94 | for i in include/*.h doc/upgrade-guide.txt source/Irrlicht/*.cpp source/Irrlicht/*.h; do |
---|
| 95 | sed -i 's/\r//' $i |
---|
| 96 | chmod -x $i |
---|
| 97 | touch -r changes.txt $i |
---|
| 98 | done |
---|
| 99 | |
---|
[9308] | 100 | # https://bugzilla.redhat.com/show_bug.cgi?id=1035757 |
---|
| 101 | sed -i -e '/_IRR_MATERIAL_MAX_TEXTURES_/s/4/8/' include/IrrCompileConfig.h |
---|
| 102 | |
---|
[3061] | 103 | %build |
---|
| 104 | cd source/Irrlicht |
---|
| 105 | make %{?_smp_mflags} sharedlib |
---|
| 106 | |
---|
| 107 | %install |
---|
| 108 | rm -rf %{buildroot} |
---|
| 109 | mkdir -p %{buildroot}%{_libdir} |
---|
| 110 | mkdir -p %{buildroot}%{_includedir}/%{name} |
---|
| 111 | make -C source/Irrlicht INSTALL_DIR=%{buildroot}%{_libdir} install |
---|
[9308] | 112 | cp -a include/*.h %{buildroot}%{_includedir}/%{name}/ |
---|
| 113 | pushd %{buildroot}%{_libdir} |
---|
| 114 | ln -s libIrrlicht.so.%{irrlicht_version} libIrrlicht.so.1 |
---|
| 115 | ln -s libIrrXML.so.%{irrlicht_version} libIrrXML.so.1 |
---|
| 116 | popd |
---|
[3061] | 117 | |
---|
| 118 | %clean |
---|
| 119 | rm -rf %{buildroot} |
---|
| 120 | |
---|
| 121 | %post -p /sbin/ldconfig |
---|
| 122 | %postun -p /sbin/ldconfig |
---|
| 123 | |
---|
| 124 | %post -n irrXML -p /sbin/ldconfig |
---|
| 125 | %postun -n irrXML -p /sbin/ldconfig |
---|
| 126 | |
---|
| 127 | %files |
---|
| 128 | %defattr(-,root,root,-) |
---|
| 129 | %doc readme.txt |
---|
| 130 | %{_libdir}/libIrrlicht*.so.* |
---|
| 131 | %{_libdir}/libIrrXML*.so.* |
---|
| 132 | |
---|
| 133 | %files devel |
---|
| 134 | %defattr(-,root,root,-) |
---|
| 135 | %doc doc/upgrade-guide.txt |
---|
| 136 | %{_includedir}/%{name}/ |
---|
| 137 | %exclude %{_includedir}/%{name}/fast_atof.h |
---|
| 138 | %exclude %{_includedir}/%{name}/heapsort.h |
---|
| 139 | %exclude %{_includedir}/%{name}/irrArray.h |
---|
| 140 | %exclude %{_includedir}/%{name}/irrString.h |
---|
| 141 | %exclude %{_includedir}/%{name}/irrTypes.h |
---|
| 142 | %exclude %{_includedir}/%{name}/irrXML.h |
---|
| 143 | %{_libdir}/libIrrlicht*.so |
---|
| 144 | %{_libdir}/libIrrXML*.so |
---|
| 145 | |
---|
| 146 | %files -n irrXML |
---|
| 147 | %defattr(-,root,root,-) |
---|
| 148 | %doc readme.txt |
---|
| 149 | %{_libdir}/libIrrXML*.so.* |
---|
| 150 | |
---|
| 151 | %files -n irrXML-devel |
---|
| 152 | %defattr(-,root,root,-) |
---|
| 153 | %dir %{_includedir}/%{name}/ |
---|
| 154 | %{_includedir}/%{name}/fast_atof.h |
---|
| 155 | %{_includedir}/%{name}/heapsort.h |
---|
| 156 | %{_includedir}/%{name}/irrArray.h |
---|
| 157 | %{_includedir}/%{name}/irrString.h |
---|
| 158 | %{_includedir}/%{name}/irrTypes.h |
---|
| 159 | %{_includedir}/%{name}/irrXML.h |
---|
| 160 | %{_libdir}/libIrrXML*.so |
---|
| 161 | |
---|
| 162 | %changelog |
---|
[10570] | 163 | * Sat Jul 09 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.8.1-2 |
---|
| 164 | - rebuild with gcc-5.4.0 |
---|
| 165 | |
---|
[9308] | 166 | * Thu Jan 29 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 1.8.1-1 |
---|
| 167 | - updated to 1.8.1 |
---|
| 168 | - built on current VineSeed |
---|
| 169 | |
---|
[3061] | 170 | * Wed Mar 16 2011 Kazutaka HARADA <kazutaka@vinelinux.org> 1.7.2-1 |
---|
| 171 | - initial build for Vine Linux based of fedora development |
---|
| 172 | |
---|
| 173 | * Wed Dec 15 2010 Tom "spot" Callaway <tcallawa@redhat.com> - 1.7.2-4 |
---|
| 174 | - add post/postun scripts for irrXML |
---|
| 175 | |
---|
| 176 | * Wed Dec 15 2010 Tom "spot" Callaway <tcallawa@redhat.com> - 1.7.2-3 |
---|
| 177 | - fix versioning on irrXML-devel |
---|
| 178 | |
---|
| 179 | * Wed Dec 15 2010 Tom "spot" Callaway <tcallawa@redhat.com> - 1.7.2-2 |
---|
| 180 | - make subpackages for irrXML |
---|
| 181 | - use assimp patch for performance improvement in IrrXML |
---|
| 182 | |
---|
| 183 | * Wed Nov 17 2010 Tom "spot" Callaway <tcallawa@redhat.com> - 1.7.2-1 |
---|
| 184 | - update to 1.7.2 |
---|
| 185 | |
---|
| 186 | * Mon May 24 2010 Tom "spot" Callaway <tcallawa@redhat.com> - 1.7.1-2 |
---|
| 187 | - rebuild against fixed libaesgm |
---|
| 188 | |
---|
| 189 | * Thu Feb 18 2010 Tom "spot" Callaway <tcallawa@redhat.com> - 1.7.1-1 |
---|
| 190 | - update to 1.7.1 |
---|
| 191 | |
---|
| 192 | * Thu Jan 14 2010 Tom "spot" Callaway <tcallawa@redhat.com> - 1.6.1-1 |
---|
| 193 | - update to 1.6.1 |
---|
| 194 | |
---|
| 195 | * Wed Sep 30 2009 Tom "spot" Callaway <tcallawa@redhat.com> - 1.6-1 |
---|
| 196 | - update to 1.6 |
---|
| 197 | |
---|
| 198 | * Wed Aug 19 2009 Tom "spot" Callaway <tcallawa@redhat.com> - 1.5.1-1 |
---|
| 199 | - update to 1.5.1 |
---|
| 200 | |
---|
| 201 | * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5-4 |
---|
| 202 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild |
---|
| 203 | |
---|
| 204 | * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5-3 |
---|
| 205 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild |
---|
| 206 | |
---|
| 207 | * Sat Jan 10 2009 Tom "spot" Callaway <tcallawa@redhat.com> 1.5-2 |
---|
| 208 | - fix libpng calls so we can use system libpng (thanks to tom lane) |
---|
| 209 | - fix license tag |
---|
| 210 | |
---|
| 211 | * Thu Jan 8 2009 Tom "spot" Callaway <tcallawa@redhat.com> 1.5-1 |
---|
| 212 | - build against system libpng |
---|
| 213 | - update to 1.5 final |
---|
| 214 | |
---|
| 215 | * Thu Dec 4 2008 Tom "spot" Callaway <tcallawa@redhat.com> 1.5-0.2.beta |
---|
| 216 | - fix optflags patch so that ldconfig isn't called during make install |
---|
| 217 | |
---|
| 218 | * Wed Dec 3 2008 Tom "spot" Callaway <tcallawa@redhat.com> 1.5-0.1.beta |
---|
| 219 | - Initial package for Fedora |
---|