Group :: System/Libraries
RPM: openexr25
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
%define rname OpenEXR
%define libsover 25
Name: openexr25
Version: 2.5.6
Release: alt6
%define _cmake__builddir BUILD
%define libilmimf libilmimf%libsover
%define libilmimfutil libilmimfutil%libsover
Group: System/Libraries
Summary: A high-dynamic-range image file library
License: BSD-3-Clause
URL: http://www.openexr.org/
Requires: %libilmimf = %version-%release
Provides: %rname = %version-%release
Obsoletes: %rname < %version-%release
Source: openexr-%version.tar
# upstream
Patch1: oss-fuzz.patch
Patch2000: openexr-e2k-simd.patch
BuildRequires: gcc-c++ glibc-devel ilmbase-devel zlib-devel
BuildRequires: cmake
%description
OpenEXR is an image file format and library developed by Industrial Light
& Magic, and later released to the public. It provides support for high
dynamic range and a 16-bit floating point "half" data type which is
compatible with the half data type in the Cg programming language.
%package -n %libilmimf
Group: System/Libraries
Summary: libIlmImf %rname library
Conflicts: openexr <= 1.6.1-alt1
%description -n %libilmimf
libIlmImf %rname library
%package -n %libilmimfutil
Group: System/Libraries
Summary: libIlmImfUtil %rname library
Conflicts: openexr <= 1.6.1-alt1
%description -n %libilmimfutil
libIlmImfUtil %rname library
%prep
%setup -q -n openexr-%version
%patch1 -p1
%ifarch %e2k
%patch2000 -p2
%endif
%build
%cmake
%cmake_build
%install
make -C BUILD install DESTDIR=%buildroot
rm -fr %buildroot%_bindir/
rm -fr %buildroot%_includedir/%rname/
rm -fr %buildroot%_libdir/cmake/%rname/
rm -fr %buildroot%_libdir/libIlmImf*.so
rm -fr %buildroot%_libdir/pkgconfig/%rname.pc
rm -fr %buildroot%doc/%rname/
rm -fr %buildroot%_defaultdocdir/%rname/
%files -n %libilmimf
%doc PATENTS README*
%_libdir/libIlmImf-*.so.%libsover
%_libdir/libIlmImf-*.so.%libsover.*
%files -n %libilmimfutil
%doc PATENTS README*
%_libdir/libIlmImfUtil-*.so.%libsover
%_libdir/libIlmImfUtil-*.so.%libsover.*
%changelog
…
Full changelog you can see here
%define libsover 25
Name: openexr25
Version: 2.5.6
Release: alt6
%define _cmake__builddir BUILD
%define libilmimf libilmimf%libsover
%define libilmimfutil libilmimfutil%libsover
Group: System/Libraries
Summary: A high-dynamic-range image file library
License: BSD-3-Clause
URL: http://www.openexr.org/
Requires: %libilmimf = %version-%release
Provides: %rname = %version-%release
Obsoletes: %rname < %version-%release
Source: openexr-%version.tar
# upstream
Patch1: oss-fuzz.patch
Patch2000: openexr-e2k-simd.patch
BuildRequires: gcc-c++ glibc-devel ilmbase-devel zlib-devel
BuildRequires: cmake
%description
OpenEXR is an image file format and library developed by Industrial Light
& Magic, and later released to the public. It provides support for high
dynamic range and a 16-bit floating point "half" data type which is
compatible with the half data type in the Cg programming language.
%package -n %libilmimf
Group: System/Libraries
Summary: libIlmImf %rname library
Conflicts: openexr <= 1.6.1-alt1
%description -n %libilmimf
libIlmImf %rname library
%package -n %libilmimfutil
Group: System/Libraries
Summary: libIlmImfUtil %rname library
Conflicts: openexr <= 1.6.1-alt1
%description -n %libilmimfutil
libIlmImfUtil %rname library
%prep
%setup -q -n openexr-%version
%patch1 -p1
%ifarch %e2k
%patch2000 -p2
%endif
%build
%cmake
%cmake_build
%install
make -C BUILD install DESTDIR=%buildroot
rm -fr %buildroot%_bindir/
rm -fr %buildroot%_includedir/%rname/
rm -fr %buildroot%_libdir/cmake/%rname/
rm -fr %buildroot%_libdir/libIlmImf*.so
rm -fr %buildroot%_libdir/pkgconfig/%rname.pc
rm -fr %buildroot%doc/%rname/
rm -fr %buildroot%_defaultdocdir/%rname/
%files -n %libilmimf
%doc PATENTS README*
%_libdir/libIlmImf-*.so.%libsover
%_libdir/libIlmImf-*.so.%libsover.*
%files -n %libilmimfutil
%doc PATENTS README*
%_libdir/libIlmImfUtil-*.so.%libsover
%_libdir/libIlmImfUtil-*.so.%libsover.*
%changelog
…
Full changelog you can see here