|
@@ -1,28 +1,37 @@
|
|
-%global irrxml_version 1.2
|
|
+%global irrxml_version 1.8.1
|
|
|
|
+%global irrlicht_version 1.8.1
|
|
|
|
|
|
Name: irrlicht
|
|
Name: irrlicht
|
|
Summary: A high performance realtime 3D engine
|
|
Summary: A high performance realtime 3D engine
|
|
-Version: 1.7.2
|
|
+Summary(ja): 高性能なリアルタイム3Dエンジン
|
|
|
|
+Version: %{irrlicht_version}
|
|
Release: 1%{?_dist_release}
|
|
Release: 1%{?_dist_release}
|
|
|
|
+
|
|
License: zlib
|
|
License: zlib
|
|
Group: System Environment/Libraries
|
|
Group: System Environment/Libraries
|
|
-Source0: http://downloads.sourceforge.net/irrlicht/%{name}-%{version}.zip
|
|
+URL: http://irrlicht.sourceforge.net/
|
|
|
|
+
|
|
|
|
+Source0: http://downloads.sourceforge.net/irrlicht/%{name}-%{irrlicht_version}.zip
|
|
# Various fixes, optflags, system libraries/headers
|
|
# Various fixes, optflags, system libraries/headers
|
|
# http://irrlicht.sourceforge.net/phpBB2/viewtopic.php?t=24076&highlight=
|
|
# http://irrlicht.sourceforge.net/phpBB2/viewtopic.php?t=24076&highlight=
|
|
-Patch0: irrlicht-1.7.1-optflags.patch
|
|
+Patch0: irrlicht-1.8-optflags.patch
|
|
# Get the code compiling
|
|
# Get the code compiling
|
|
-Patch1: irrlicht-1.5.1-glext.patch
|
|
+Patch1: irrlicht-1.8-glext.patch
|
|
# Use system libaesgm
|
|
# Use system libaesgm
|
|
-Patch2: irrlicht-1.7.1-libaesgm.patch
|
|
+Patch2: irrlicht18-libaesgm.patch
|
|
# Use improved fastatof from assimp
|
|
# Use improved fastatof from assimp
|
|
-Patch3: irrlicht-1.7.2-fastatof-improvements.patch
|
|
+# Upstream applied a modified version of most of this.
|
|
|
|
+# Patch3: irrlicht18-fastatof-improvements-typefixes.patch
|
|
# Make libIrrXML.so
|
|
# Make libIrrXML.so
|
|
-Patch4: irrlicht-1.7.2-irrXML-shared-library.patch
|
|
+Patch4: irrlicht-1.8-irrXML-shared-library.patch
|
|
|
|
+# Fix issue with definition of LOCALE_DECIMAL_POINTS
|
|
|
|
+Patch5: irrlicht-1.8-fix-locale-decimal-points.patch
|
|
|
|
+# Fix build with Mesa 10
|
|
|
|
+Patch6: irrlicht-1.8.1-mesa10.patch
|
|
|
|
|
|
-URL: http://irrlicht.sourceforge.net/
|
|
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
|
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
BuildRequires: libXxf86vm-devel, mesa-libGL-devel, mesa-libGLU-devel
|
|
BuildRequires: libXxf86vm-devel, mesa-libGL-devel, mesa-libGLU-devel
|
|
-BuildRequires: libjpeg-devel, zlib-devel, libaesgm-devel
|
|
+BuildRequires: libjpeg-turbo-devel, zlib-devel, libaesgm-devel
|
|
BuildRequires: libpng-devel, bzip2-devel, unzip
|
|
BuildRequires: libpng-devel, bzip2-devel, unzip
|
|
|
|
|
|
%description
|
|
%description
|
|
@@ -34,17 +43,19 @@ commercial 3d engines.
|
|
|
|
|
|
%package devel
|
|
%package devel
|
|
Summary: Development headers and libraries for irrlicht
|
|
Summary: Development headers and libraries for irrlicht
|
|
|
|
+Summary(ja): irrlicht の開発用ヘッダファイルとライブラリ
|
|
|
|
+Group: Development/Libraries
|
|
Requires: %{name} = %{version}-%{release}
|
|
Requires: %{name} = %{version}-%{release}
|
|
Requires: mesa-libGL-devel, mesa-libGLU-devel, libXxf86vm-devel
|
|
Requires: mesa-libGL-devel, mesa-libGLU-devel, libXxf86vm-devel
|
|
Requires: libjpeg-devel, zlib-devel, libpng-devel
|
|
Requires: libjpeg-devel, zlib-devel, libpng-devel
|
|
Requires: irrXML-devel = %{irrxml_version}
|
|
Requires: irrXML-devel = %{irrxml_version}
|
|
-Group: Development/Libraries
|
|
|
|
|
|
|
|
%description devel
|
|
%description devel
|
|
Development headers and libraries for irrlicht.
|
|
Development headers and libraries for irrlicht.
|
|
|
|
|
|
%package -n irrXML
|
|
%package -n irrXML
|
|
Summary: Simple and fast XML parser for C++
|
|
Summary: Simple and fast XML parser for C++
|
|
|
|
+Summary(ja): C++ 用のシンプルかつ高速な XML パーサ
|
|
Group: System Environment/Libraries
|
|
Group: System Environment/Libraries
|
|
Version: %{irrxml_version}
|
|
Version: %{irrxml_version}
|
|
|
|
|
|
@@ -53,9 +64,10 @@ irrXML is a simple and fast open source xml parser for C++.
|
|
|
|
|
|
%package -n irrXML-devel
|
|
%package -n irrXML-devel
|
|
Summary: Development headers and libraries for irrXML
|
|
Summary: Development headers and libraries for irrXML
|
|
|
|
+Summary(ja): irrXML の開発用ヘッダファイルとライブラリ
|
|
Version: %{irrxml_version}
|
|
Version: %{irrxml_version}
|
|
-Requires: irrXML = %{irrxml_version}-%{release}
|
|
|
|
Group: Development/Libraries
|
|
Group: Development/Libraries
|
|
|
|
+Requires: irrXML = %{irrxml_version}-%{release}
|
|
|
|
|
|
%description -n irrXML-devel
|
|
%description -n irrXML-devel
|
|
Development headers and libraries for irrXML.
|
|
Development headers and libraries for irrXML.
|
|
@@ -65,8 +77,13 @@ Development headers and libraries for irrXML.
|
|
%patch0 -p1 -b .optflags
|
|
%patch0 -p1 -b .optflags
|
|
%patch1 -p1 -b .glext
|
|
%patch1 -p1 -b .glext
|
|
%patch2 -p1 -b .libaesgm
|
|
%patch2 -p1 -b .libaesgm
|
|
-%patch3 -p1 -b .fastatof
|
|
+# %patch3 -p1 -b .fastatof
|
|
%patch4 -p1 -b .irrXML
|
|
%patch4 -p1 -b .irrXML
|
|
|
|
+%patch5 -p1 -b .fix-locale-decimal-points
|
|
|
|
+%patch6 -p1 -b .mesa10
|
|
|
|
+
|
|
|
|
+# Upstream forgot to increment VERSION_RELEASE to 1 in 1.8.1
|
|
|
|
+sed -i 's|VERSION_RELEASE = 0|VERSION_RELEASE = 1|g' source/Irrlicht/Makefile
|
|
|
|
|
|
sed -i 's/\r//' readme.txt
|
|
sed -i 's/\r//' readme.txt
|
|
iconv -o readme.txt.iso88591 -f iso88591 -t utf8 readme.txt
|
|
iconv -o readme.txt.iso88591 -f iso88591 -t utf8 readme.txt
|
|
@@ -80,6 +97,9 @@ for i in include/*.h doc/upgrade-guide.txt source/Irrlicht/*.cpp source/Irrlicht
|
|
touch -r changes.txt $i
|
|
touch -r changes.txt $i
|
|
done
|
|
done
|
|
|
|
|
|
|
|
+# https://bugzilla.redhat.com/show_bug.cgi?id=1035757
|
|
|
|
+sed -i -e '/_IRR_MATERIAL_MAX_TEXTURES_/s/4/8/' include/IrrCompileConfig.h
|
|
|
|
+
|
|
%build
|
|
%build
|
|
cd source/Irrlicht
|
|
cd source/Irrlicht
|
|
make %{?_smp_mflags} sharedlib
|
|
make %{?_smp_mflags} sharedlib
|
|
@@ -89,9 +109,11 @@ rm -rf %{buildroot}
|
|
mkdir -p %{buildroot}%{_libdir}
|
|
mkdir -p %{buildroot}%{_libdir}
|
|
mkdir -p %{buildroot}%{_includedir}/%{name}
|
|
mkdir -p %{buildroot}%{_includedir}/%{name}
|
|
make -C source/Irrlicht INSTALL_DIR=%{buildroot}%{_libdir} install
|
|
make -C source/Irrlicht INSTALL_DIR=%{buildroot}%{_libdir} install
|
|
-cp -a include/* %{buildroot}%{_includedir}/%{name}/
|
|
+cp -a include/*.h %{buildroot}%{_includedir}/%{name}/
|
|
-cd %{buildroot}%{_libdir}
|
|
+pushd %{buildroot}%{_libdir}
|
|
-ln -s libIrrlicht.so.%{version} libIrrlicht.so.1
|
|
+ln -s libIrrlicht.so.%{irrlicht_version} libIrrlicht.so.1
|
|
|
|
+ln -s libIrrXML.so.%{irrlicht_version} libIrrXML.so.1
|
|
|
|
+popd
|
|
|
|
|
|
%clean
|
|
%clean
|
|
rm -rf %{buildroot}
|
|
rm -rf %{buildroot}
|
|
@@ -138,6 +160,10 @@ rm -rf %{buildroot}
|
|
%{_libdir}/libIrrXML*.so
|
|
%{_libdir}/libIrrXML*.so
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Thu Jan 29 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 1.8.1-1
|
|
|
|
+- updated to 1.8.1
|
|
|
|
+- built on current VineSeed
|
|
|
|
+
|
|
* Wed Mar 16 2011 Kazutaka HARADA <kazutaka@vinelinux.org> 1.7.2-1
|
|
* Wed Mar 16 2011 Kazutaka HARADA <kazutaka@vinelinux.org> 1.7.2-1
|
|
- initial build for Vine Linux based of fedora development
|
|
- initial build for Vine Linux based of fedora development
|
|
|
|
|