Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37424005
en ru br
Репозитории ALT
S:2.5.6-alt2
5.1: 1.0.1-alt4
4.1: 1.0.1-alt1
www.altlinux.org/Changes

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

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


%define rname IlmBase
%define libsover 25
Name: ilmbase
Version: 2.5.6
Release: alt2

%define _cmake__builddir BUILD
%define common %name%libsover-common
%define libhalf libhalf%libsover
%define libiex libiex%libsover
%define libilmthread libilmthread%libsover
%define libimath libimath%libsover
%define libiexmath libiexmath%libsover

Group: System/Libraries
Summary: A high-dynamic-range image file library
License: BSD-3-Clause
URL: http://www.openexr.org/

Requires: %libhalf
Requires: %libiex
Requires: %libilmthread
Requires: %libimath
Requires: %libiexmath
Provides: %rname = %version-%release
Obsoletes: %rname < %version-%release

Source: %name-%version.tar
# FC
Patch1: ilmbase-2.2.0-glibc_iszero.patch
# ALT
Patch10: alt-pkgconfig.patch

BuildRequires: cmake
BuildRequires: gcc-c++ glibc-devel libGLU-devel zlib-devel

%description
Half is a class that encapsulates our 16-bit floating-point format.

IlmThread is a thread abstraction library for use with OpenEXR
and other software packages.  It currently supports pthreads and
Windows threads.

Imath implements 2D and 3D vectors, 3x3 and 4x4 matrices, quaternions
and other useful 2D and 3D math functions.

Iex is an exception-handling library.

%package -n %common
Group: System/Configuration/Other
Summary: Common empty package for %name
%description -n %common
Common empty package for %name

%package -n %libhalf
Group: System/Libraries
Summary: %rname library
Requires: %common = %version-%release
Conflicts: ilmbase <= 1.0.1-alt1
%description -n %libhalf
Half is a class that encapsulates our 16-bit floating-point format.

%package -n %libiex
Group: System/Libraries
Summary: %rname library
Requires: %common = %version-%release
Conflicts: ilmbase <= 1.0.1-alt1
%description -n %libiex
Iex is an exception-handling library.

%package -n %libilmthread
Group: System/Libraries
Summary: %rname library
Requires: %common = %version-%release
Conflicts: ilmbase <= 1.0.1-alt1
%description -n %libilmthread
IlmThread is a thread abstraction library for use with OpenEXR
and other software packages.  It currently supports pthreads and
Windows threads.

%package -n %libimath
Group: System/Libraries
Summary: %rname library
Requires: %common = %version-%release
Conflicts: ilmbase <= 1.0.1-alt1
%description -n %libimath
Imath implements 2D and 3D vectors, 3x3 and 4x4 matrices, quaternions
and other useful 2D and 3D math functions.

%package -n %libiexmath
Group: System/Libraries
Summary: %rname library
Requires: %common = %version-%release
%description -n %libiexmath
Imath implements 2D and 3D vectors, 3x3 and 4x4 matrices, quaternions
and other useful 2D and 3D math functions.

%package devel
Summary: Headers for developing programs that will use %name
Group: Development/Other
Requires: %common = %version-%release
Conflicts: openexr-devel < 1.6
%description devel
This package contains the static libraries and header files needed for
developing applications with %name


%prep
%setup -q -n %name-%version
%patch1 -p1
%patch10 -p1

%build
%cmake
#    -DILMBASE_LIB_SUFFIX=""
%cmake_build

%install
make -C BUILD install DESTDIR=%buildroot

# create compatibility symlinks

#for f in %buildroot/%_libdir/lib*.so ; do
#    fname=`basename $f`
#    newname=`echo $fname | sed 's|-.*|.so|'`
#    [ "$fname" == "$newname" ] \
# || ln -s $fname %buildroot/%_libdir/$newname
#done

%files -n %common

%files
%doc README*

%files -n %libhalf
%_libdir/libHalf-*.so.%libsover
%_libdir/libHalf-*.so.%libsover.*

%files -n %libiex
%_libdir/libIex-*.so.%libsover
%_libdir/libIex-*.so.%libsover.*

%files -n %libilmthread
%_libdir/libIlmThread-*.%libsover
%_libdir/libIlmThread-*.so.%libsover.*

%files -n %libimath
%_libdir/libImath-*.so.%libsover
%_libdir/libImath-*.so.%libsover.*

%files -n %libiexmath
%_libdir/libIexMath-*.so.%libsover
%_libdir/libIexMath-*.so.%libsover.*

%files devel
%doc README*
%_includedir/OpenEXR
%_libdir/*.so
%_libdir/pkgconfig/*
%_libdir/cmake/IlmBase/

%changelog

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

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