Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37045183
en ru br
Репозитории ALT
S:1.8.5-alt1
5.1: 1.4.2-alt1
4.1: 1.3-alt3
4.0: 1.3-alt3
www.altlinux.org/Changes

Группа :: Система/Библиотеки
Пакет: libirrlicht

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

%define _unpackaged_files_terminate_build 1
%define _stripped_files_terminate_build 1
%set_verify_elf_method strict

%def_disable static
%define realname irrlicht
%define major 1
%define libname %name%major

Name: libirrlicht
Version: 1.8.5
Release: alt1
Summary: Fast Open-source 3D engine
License: zlib
Group: System/Libraries
Url: http://irrlicht.sourceforge.net/

Source: %realname-%version.tar

# Patches from Fedora


# Various fixes, optflags, system libraries/headers

# http://irrlicht.sourceforge.net/phpBB2/viewtopic.php?t=24076&highlight=
Patch0: irrlicht-1.8-optflags.patch

# Get the code compiling

Patch1: irrlicht-1.8-glext.patch

# Use system libaesgm

Patch2: irrlicht18-libaesgm.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

# Use RPM_LD_FLAGS

Patch7: irrlicht-1.8.4-ldflags.patch

BuildRequires: pkg-config unzip gcc-c++ zlib-devel
BuildRequires: ImageMagick
BuildRequires: zlib-devel
BuildRequires: libjpeg-devel
BuildRequires: libpng-devel
BuildRequires: libGLU-devel
BuildRequires: pkgconfig(x11)
BuildRequires: libXext-devel
BuildRequires: libXxf86vm-devel
BuildRequires: libXft-devel
BuildRequires: bzlib-devel
BuildRequires: fontconfig-devel
BuildRequires: libXcursor-devel
BuildRequires: libaesgm-devel

%description
The Irrlicht Engine is a cross-platform high performance realtime 3D
engine written in C++. It is a powerful high level API for creating
complete 3D and 2D applications like games or scientific visualizations.
It comes with an excellent documentation and integrates all the
state-of-the-art features for visual representation like dynamic
shadows, particle systems, character animation, indoor and outdoor
technology, and collision detection. All this is accessible through
a well designed C++ interface, which is extremely easy to use.

%package devel
Summary: Headers for %name
Group: Development/C
Requires: %name = %EVR

%description devel
Headers for building software that uses %name

%package -n %libname
Summary: Shared libraries for Irrlicht 3D engine
Group: System/Libraries

Provides: liblibirrlicht1 = %EVR
Obsoletes: liblibirrlicht1 < %EVR
Provides: libirrlicht = %EVR
Obsoletes: libirrlicht < %EVR

%description -n %libname
Shared libraries for Irrlicht 3D engine.

The Irrlicht Engine is a cross-platform high performance realtime 3D
engine written in C++. It is a powerful high level API for creating
complete 3D and 2D applications like games or scientific visualizations.
It comes with an excellent documentation and integrates all the
state-of-the-art features for visual representation like dynamic
shadows, particle systems, character animation, indoor and outdoor
technology, and collision detection. All this is accessible through
a well designed C++ interface, which is extremely easy to use.

%if_enabled static
%package devel-static
Summary: Static libraries for %name
Group: Development/C
Requires: %name-devel = %EVR

%description devel-static
Static libs for building statically linked software that uses %name
%endif

%prep
%setup -n %realname-%version
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1

# make readme.txt and changes.txt utf8 with LF line endings

sed -i 's/\r//' readme.txt changes.txt
iconv -o readme.txt.utf8 -f iso88591 -t utf8 readme.txt
mv readme.txt.utf8 readme.txt

# use system wide libs

rm -rf source/Irrlicht/{jpeglib,zlib,libpng,bzip2,aesGladman}
# FIXME: Unbundle lzmadec if possible

# https://bugzilla.redhat.com/show_bug.cgi?id=1035757

sed -i -e '/_IRR_MATERIAL_MAX_TEXTURES_/s/4/8/' include/IrrCompileConfig.h

%build
%add_optflags -D_FILE_OFFSET_BITS=64

%make_build -C source/Irrlicht sharedlib NDEBUG=1

%install
#makeinstall
mkdir -p %buildroot%_libdir
make -C source/Irrlicht INSTALL_DIR=%buildroot%_libdir install
ln -s libIrrlicht.so.%version %buildroot%_libdir/libIrrlicht.so.%major

mkdir -p %buildroot%_includedir/%realname
cp -a include/*.h %buildroot%_includedir/%realname/

%files -n %libname
%_libdir/libIrrlicht.so.%{major}
%_libdir/libIrrlicht.so.%{major}.*

%files devel
%doc doc/upgrade-guide.txt
%doc readme.txt changes.txt
%_libdir/libIrrlicht.so
%_includedir/%realname

%if_enabled static
%files -n lib%name-devel-static
%_libdir/lib%name.a
%endif

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin