1 | %global irrxml_version 1.8.1 |
---|
2 | %global irrlicht_version 1.8.1 |
---|
3 | |
---|
4 | Name: irrlicht |
---|
5 | Summary: A high performance realtime 3D engine |
---|
6 | Summary(ja): 高性能なリアルタイム3Dエンジン |
---|
7 | Version: %{irrlicht_version} |
---|
8 | Release: 1%{?_dist_release} |
---|
9 | |
---|
10 | License: zlib |
---|
11 | Group: System Environment/Libraries |
---|
12 | URL: http://irrlicht.sourceforge.net/ |
---|
13 | |
---|
14 | Source0: http://downloads.sourceforge.net/irrlicht/%{name}-%{irrlicht_version}.zip |
---|
15 | # Various fixes, optflags, system libraries/headers |
---|
16 | # http://irrlicht.sourceforge.net/phpBB2/viewtopic.php?t=24076&highlight= |
---|
17 | Patch0: irrlicht-1.8-optflags.patch |
---|
18 | # Get the code compiling |
---|
19 | Patch1: irrlicht-1.8-glext.patch |
---|
20 | # Use system libaesgm |
---|
21 | Patch2: irrlicht18-libaesgm.patch |
---|
22 | # Use improved fastatof from assimp |
---|
23 | # Upstream applied a modified version of most of this. |
---|
24 | # Patch3: irrlicht18-fastatof-improvements-typefixes.patch |
---|
25 | # Make libIrrXML.so |
---|
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 |
---|
31 | |
---|
32 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
33 | BuildRequires: libXxf86vm-devel, mesa-libGL-devel, mesa-libGLU-devel |
---|
34 | BuildRequires: libjpeg-turbo-devel, zlib-devel, libaesgm-devel |
---|
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 |
---|
46 | Summary(ja): irrlicht の開発用ヘッダファイルとライブラリ |
---|
47 | Group: Development/Libraries |
---|
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++ |
---|
58 | Summary(ja): C++ 用のシンプルかつ高速な XML パーサ |
---|
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 |
---|
67 | Summary(ja): irrXML の開発用ヘッダファイルとライブラリ |
---|
68 | Version: %{irrxml_version} |
---|
69 | Group: Development/Libraries |
---|
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 |
---|
80 | # %patch3 -p1 -b .fastatof |
---|
81 | %patch4 -p1 -b .irrXML |
---|
82 | %patch5 -p1 -b .fix-locale-decimal-points |
---|
83 | %patch6 -p1 -b .mesa10 |
---|
84 | |
---|
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 | |
---|
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 | |
---|
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 | |
---|
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 |
---|
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 |
---|
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 |
---|
163 | * Thu Jan 29 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 1.8.1-1 |
---|
164 | - updated to 1.8.1 |
---|
165 | - built on current VineSeed |
---|
166 | |
---|
167 | * Wed Mar 16 2011 Kazutaka HARADA <kazutaka@vinelinux.org> 1.7.2-1 |
---|
168 | - initial build for Vine Linux based of fedora development |
---|
169 | |
---|
170 | * Wed Dec 15 2010 Tom "spot" Callaway <tcallawa@redhat.com> - 1.7.2-4 |
---|
171 | - add post/postun scripts for irrXML |
---|
172 | |
---|
173 | * Wed Dec 15 2010 Tom "spot" Callaway <tcallawa@redhat.com> - 1.7.2-3 |
---|
174 | - fix versioning on irrXML-devel |
---|
175 | |
---|
176 | * Wed Dec 15 2010 Tom "spot" Callaway <tcallawa@redhat.com> - 1.7.2-2 |
---|
177 | - make subpackages for irrXML |
---|
178 | - use assimp patch for performance improvement in IrrXML |
---|
179 | |
---|
180 | * Wed Nov 17 2010 Tom "spot" Callaway <tcallawa@redhat.com> - 1.7.2-1 |
---|
181 | - update to 1.7.2 |
---|
182 | |
---|
183 | * Mon May 24 2010 Tom "spot" Callaway <tcallawa@redhat.com> - 1.7.1-2 |
---|
184 | - rebuild against fixed libaesgm |
---|
185 | |
---|
186 | * Thu Feb 18 2010 Tom "spot" Callaway <tcallawa@redhat.com> - 1.7.1-1 |
---|
187 | - update to 1.7.1 |
---|
188 | |
---|
189 | * Thu Jan 14 2010 Tom "spot" Callaway <tcallawa@redhat.com> - 1.6.1-1 |
---|
190 | - update to 1.6.1 |
---|
191 | |
---|
192 | * Wed Sep 30 2009 Tom "spot" Callaway <tcallawa@redhat.com> - 1.6-1 |
---|
193 | - update to 1.6 |
---|
194 | |
---|
195 | * Wed Aug 19 2009 Tom "spot" Callaway <tcallawa@redhat.com> - 1.5.1-1 |
---|
196 | - update to 1.5.1 |
---|
197 | |
---|
198 | * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5-4 |
---|
199 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild |
---|
200 | |
---|
201 | * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5-3 |
---|
202 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild |
---|
203 | |
---|
204 | * Sat Jan 10 2009 Tom "spot" Callaway <tcallawa@redhat.com> 1.5-2 |
---|
205 | - fix libpng calls so we can use system libpng (thanks to tom lane) |
---|
206 | - fix license tag |
---|
207 | |
---|
208 | * Thu Jan 8 2009 Tom "spot" Callaway <tcallawa@redhat.com> 1.5-1 |
---|
209 | - build against system libpng |
---|
210 | - update to 1.5 final |
---|
211 | |
---|
212 | * Thu Dec 4 2008 Tom "spot" Callaway <tcallawa@redhat.com> 1.5-0.2.beta |
---|
213 | - fix optflags patch so that ldconfig isn't called during make install |
---|
214 | |
---|
215 | * Wed Dec 3 2008 Tom "spot" Callaway <tcallawa@redhat.com> 1.5-0.1.beta |
---|
216 | - Initial package for Fedora |
---|