source: projects/specs/trunk/i/irrlicht/irrlicht-vl.spec @ 10570

Revision 10570, 7.0 KB checked in by Takemikaduchi, 6 years ago (diff)

rebuild with gcc-5.4.0

Line 
1%global irrxml_version 1.8.1
2%global irrlicht_version 1.8.1
3
4Name:           irrlicht
5Summary:        A high performance realtime 3D engine
6Summary(ja):    高性能なリアルタイム3Dエンジン
7Version:        %{irrlicht_version}
8Release:        2%{?_dist_release}
9
10License:        zlib
11Group:          System Environment/Libraries
12URL:            http://irrlicht.sourceforge.net/
13
14Source0:        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=
17Patch0:         irrlicht-1.8-optflags.patch
18# Get the code compiling
19Patch1:         irrlicht-1.8-glext.patch
20# Use system libaesgm
21Patch2:         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
26Patch4:         irrlicht-1.8-irrXML-shared-library.patch
27# Fix issue with definition of LOCALE_DECIMAL_POINTS
28Patch5:         irrlicht-1.8-fix-locale-decimal-points.patch
29# Fix build with Mesa 10
30Patch6:         irrlicht-1.8.1-mesa10.patch
31
32BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root
33BuildRequires:  libXxf86vm-devel, mesa-libGL-devel, mesa-libGLU-devel
34BuildRequires:  libjpeg-turbo-devel, zlib-devel, libaesgm-devel
35BuildRequires:  libpng-devel, bzip2-devel, unzip
36
37%description
38The Irrlicht Engine is an open source high performance realtime 3D engine
39written and usable in C++ and also available for .NET languages. It is
40completely cross-platform, using D3D, OpenGL and its own software renderer,
41and has all of the state-of-the-art features which can be found in
42commercial 3d engines.
43
44%package devel
45Summary:        Development headers and libraries for irrlicht
46Summary(ja):    irrlicht の開発用ヘッダファイルとライブラリ
47Group:          Development/Libraries
48Requires:       %{name} = %{version}-%{release}
49Requires:       mesa-libGL-devel, mesa-libGLU-devel, libXxf86vm-devel
50Requires:       libjpeg-devel, zlib-devel, libpng-devel
51Requires:       irrXML-devel = %{irrxml_version}
52
53%description devel
54Development headers and libraries for irrlicht.
55
56%package -n irrXML
57Summary:        Simple and fast XML parser for C++
58Summary(ja):    C++ 用のシンプルかつ高速な XML パーサ
59Group:          System Environment/Libraries
60Version:        %{irrxml_version}
61
62%description -n irrXML
63irrXML is a simple and fast open source xml parser for C++.
64
65%package -n irrXML-devel
66Summary:        Development headers and libraries for irrXML
67Summary(ja):    irrXML の開発用ヘッダファイルとライブラリ
68Version:        %{irrxml_version}
69Group:          Development/Libraries
70Requires:       irrXML = %{irrxml_version}-%{release}
71
72%description -n irrXML-devel
73Development 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
86sed -i 's|VERSION_RELEASE = 0|VERSION_RELEASE = 1|g' source/Irrlicht/Makefile
87
88sed -i 's/\r//' readme.txt
89iconv -o readme.txt.iso88591 -f iso88591 -t utf8 readme.txt
90mv readme.txt.iso88591 readme.txt
91# We don't use any of this. Deleting it so the debuginfo doesn't pick it up.
92rm -rf source/Irrlicht/jpeglib source/Irrlicht/zlib source/Irrlicht/libpng source/Irrlicht/aesGladman
93
94for 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
98done
99
100# https://bugzilla.redhat.com/show_bug.cgi?id=1035757
101sed -i -e '/_IRR_MATERIAL_MAX_TEXTURES_/s/4/8/' include/IrrCompileConfig.h
102
103%build
104cd source/Irrlicht
105make %{?_smp_mflags} sharedlib
106
107%install
108rm -rf %{buildroot}
109mkdir -p %{buildroot}%{_libdir}
110mkdir -p %{buildroot}%{_includedir}/%{name}
111make -C source/Irrlicht INSTALL_DIR=%{buildroot}%{_libdir} install
112cp -a include/*.h %{buildroot}%{_includedir}/%{name}/
113pushd %{buildroot}%{_libdir}
114ln -s libIrrlicht.so.%{irrlicht_version} libIrrlicht.so.1
115ln -s libIrrXML.so.%{irrlicht_version} libIrrXML.so.1
116popd
117
118%clean
119rm -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* Sat Jul 09 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.8.1-2
164- rebuild with gcc-5.4.0
165
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
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
Note: See TracBrowser for help on using the repository browser.