|
@@ -1,21 +1,22 @@
|
|
-Name: OpenEXR
|
|
|
|
-Summary: A high dynamic-range (HDR) image file format
|
|
|
|
-Summary(ja): 高ダイナミックレンジ(HDR)画像ファイルフォーマット
|
|
|
|
-Version: 2.2.0
|
|
|
|
-Release: 2%{?_dist_release}
|
|
|
|
|
|
+%bcond_with check
|
|
|
|
|
|
-License: BSD
|
|
|
|
-Group: Applications/Graphics
|
|
|
|
-URL: http://www.openexr.com/
|
|
|
|
|
|
+Name: OpenEXR
|
|
|
|
+Summary: A high dynamic-range (HDR) image file format
|
|
|
|
+Summary(ja): 高ダイナミックレンジ(HDR)画像ファイルフォーマット
|
|
|
|
+Version: 2.4.0
|
|
|
|
+Release: 1%{?_dist_release}
|
|
|
|
|
|
-Source0: http://download.savannah.nongnu.org/releases/openexr/openexr-%{version}.tar.gz
|
|
|
|
|
|
+License: BSD
|
|
|
|
+Group: Applications/Graphics
|
|
|
|
+URL: http://www.openexr.com/
|
|
|
|
|
|
-## security fix patches
|
|
|
|
-Patch100: openexr-2.1.0-CVE-2009-1720-1.patch
|
|
|
|
-Patch101: openexr-2.1.0-CVE-2009-1720-2.patch
|
|
|
|
|
|
+Vendor: Project Vine
|
|
|
|
+Distribution: Vine Linux
|
|
|
|
+
|
|
|
|
+Source0: https://github.com/openexr/openexr/archive/v%{version}.tar.gz#/openexr-%{version}.tar.gz
|
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
|
-BuildRequires: ilmbase-devel >= %{version}
|
|
|
|
|
|
+BuildRequires: cmake
|
|
BuildRequires: zlib-devel
|
|
BuildRequires: zlib-devel
|
|
BuildRequires: pkgconfig
|
|
BuildRequires: pkgconfig
|
|
# https://github.com/openexr/openexr/issues/130
|
|
# https://github.com/openexr/openexr/issues/130
|
|
@@ -31,62 +32,119 @@ OpenEXR is a high dynamic-range (HDR) image file format developed by Industrial
|
|
Light & Magic for use in computer imaging applications. This package contains
|
|
Light & Magic for use in computer imaging applications. This package contains
|
|
sample applications for handling the format.
|
|
sample applications for handling the format.
|
|
|
|
|
|
-%package libs
|
|
|
|
-Summary: %{name} runtime libraries
|
|
|
|
-Summary(ja): %{name} のランタイムライブラリ
|
|
|
|
-Group: System Environment/Libraries
|
|
|
|
|
|
+%package libs
|
|
|
|
+Summary: %{name} runtime libraries
|
|
|
|
+Summary(ja): %{name} のランタイムライブラリ
|
|
|
|
+Group: System Environment/Libraries
|
|
|
|
|
|
-%description libs
|
|
|
|
|
|
+%description libs
|
|
%{summary}.
|
|
%{summary}.
|
|
|
|
|
|
-%package devel
|
|
|
|
-Summary: Development files for %{name}
|
|
|
|
-Summary(ja): %{name} の開発用ファイル
|
|
|
|
-Group: Development/Libraries
|
|
|
|
-Requires: %{name}-libs = %{version}-%{release}
|
|
|
|
-Requires: ilmbase-devel
|
|
|
|
-Obsoletes: openexr-devel < %{version}-%{release}
|
|
|
|
-Provides: openexr-devel = %{version}-%{release}
|
|
|
|
|
|
+
|
|
|
|
+%package devel
|
|
|
|
+Summary: Development files for %{name}
|
|
|
|
+Summary(ja): %{name} の開発用ファイル
|
|
|
|
+Group: Development/Libraries
|
|
|
|
+Requires: %{name}-libs = %{version}-%{release}
|
|
|
|
+Requires: ilmbase-devel
|
|
|
|
+Obsoletes: openexr-devel < %{version}-%{release}
|
|
|
|
+Provides: openexr-devel = %{version}-%{release}
|
|
|
|
|
|
%description devel
|
|
%description devel
|
|
%{summary}.
|
|
%{summary}.
|
|
|
|
|
|
|
|
+
|
|
|
|
+%package -n ilmbase
|
|
|
|
+Summary: Abraction/convenience libraries
|
|
|
|
+Group: System Environment/Libraries
|
|
|
|
+BuildRequires: libGL-devel
|
|
|
|
+BuildRequires: libGLU-devel
|
|
|
|
+
|
|
|
|
+%description -n ilmbase
|
|
|
|
+Half is a class that encapsulates the ilm 16-bit floating-point format.
|
|
|
|
+
|
|
|
|
+IlmThread is a thread abstraction library for use with OpenEXR
|
|
|
|
+and other software packages.
|
|
|
|
+
|
|
|
|
+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 ilmbase-devel
|
|
|
|
+Summary: Headers and libraries for building apps that use ilmbase
|
|
|
|
+Summary(ja): ilmbaseを使うアプリケーションをビルドするためのヘッダファイル及びライブラリ
|
|
|
|
+Group: Development/Libraries
|
|
|
|
+Requires: ilmbase = %{version}-%{release}
|
|
|
|
+Requires: pkgconfig
|
|
|
|
+Requires: libGL-devel
|
|
|
|
+Requires: libGLU-devel
|
|
|
|
+
|
|
|
|
+%description -n ilmbase-devel
|
|
|
|
+Headers and libraries for building apps that use ilmbase.
|
|
|
|
+
|
|
|
|
+
|
|
%prep
|
|
%prep
|
|
%setup -q -n openexr-%{version}
|
|
%setup -q -n openexr-%{version}
|
|
|
|
|
|
-%build
|
|
|
|
-%configure --disable-static
|
|
|
|
|
|
+pushd IlmBase
|
|
|
|
+echo "Requires.private: gl glu" >> IlmBase.pc.in
|
|
|
|
+popd
|
|
|
|
|
|
-# hack to omit unused-direct-shlib-dependencies
|
|
|
|
-sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool
|
|
|
|
|
|
+# *.pc built by cmake is broken
|
|
|
|
+# https://github.com/openexr/openexr/issues/595
|
|
|
|
+sed -i \
|
|
|
|
+ -e 's,@exec_prefix@,${prefix}/@exec_prefix@,' \
|
|
|
|
+ -e 's,@libdir@,\${prefix}/@libdir@,' \
|
|
|
|
+ -e 's,@includedir@,${prefix}/@includedir@,' \
|
|
|
|
+ IlmBase/IlmBase.pc.in
|
|
|
|
+sed -i \
|
|
|
|
+ -e 's,@exec_prefix@,${prefix}/@exec_prefix@,' \
|
|
|
|
+ -e 's,@libdir@,\${prefix}/@libdir@,' \
|
|
|
|
+ -e 's,@includedir@,${prefix}/@includedir@,' \
|
|
|
|
+ OpenEXR/OpenEXR.pc.in
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+%build
|
|
|
|
|
|
|
|
+mkdir build
|
|
|
|
+pushd build
|
|
|
|
+%cmake \
|
|
|
|
+ -DPYILMBASE_ENABLE=no \
|
|
|
|
+ -DOPENEXR_VIEWERS_ENABLE=no \
|
|
|
|
+ ..
|
|
make %{?_smp_mflags}
|
|
make %{?_smp_mflags}
|
|
|
|
+popd
|
|
|
|
|
|
|
|
|
|
%install
|
|
%install
|
|
-rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
+rm -rf %{buildroot}
|
|
|
|
|
|
-make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
-
|
|
|
|
-# unpackaged files
|
|
|
|
-rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
|
|
|
|
-rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.la
|
|
|
|
|
|
+pushd build
|
|
|
|
+make install DESTDIR=%{buildroot}
|
|
|
|
+popd
|
|
|
|
|
|
# prepare docs
|
|
# prepare docs
|
|
mkdir -p rpmdocs
|
|
mkdir -p rpmdocs
|
|
-cp -a IlmImfExamples rpmdocs/examples
|
|
|
|
-rm -rf rpmdocs/examples/.deps
|
|
|
|
|
|
+cp -a %{buildroot}%{_docdir}/OpenEXR/* rpmdocs/
|
|
|
|
+rm -rf %{buildroot}%{_docdir}/OpenEXR
|
|
|
|
|
|
|
|
|
|
|
|
+%if %{with check}
|
|
%check
|
|
%check
|
|
-# Not enabled, by default, takes a *very* long time. -- Rex
|
|
|
|
-%{?_with_check:export PKG_CONFIG_PATH=%{buildroot}%{_libdir}/pkgconfig}
|
|
|
|
-%{?_with_check:test "$(pkg-config --modversion OpenEXR)" = "%{version}"}
|
|
|
|
-%{?_with_check:make check ||:}
|
|
|
|
|
|
+pushd build
|
|
|
|
+%ifarch %{ix86}
|
|
|
|
+make %{_smp_mflags} test ||:
|
|
|
|
+%else
|
|
|
|
+make %{_smp_mflags} test
|
|
|
|
+%endif
|
|
|
|
+popd
|
|
|
|
+%endif
|
|
|
|
|
|
|
|
|
|
%clean
|
|
%clean
|
|
-rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
+rm -rf %{buildroot}
|
|
|
|
|
|
|
|
|
|
%post libs -p /sbin/ldconfig
|
|
%post libs -p /sbin/ldconfig
|
|
@@ -96,22 +154,52 @@ rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
%files
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%defattr(-,root,root,-)
|
|
|
|
+%license LICENSE.md
|
|
|
|
+%doc README.md
|
|
%{_bindir}/*
|
|
%{_bindir}/*
|
|
|
|
|
|
%files libs
|
|
%files libs
|
|
%defattr(-,root,root,-)
|
|
%defattr(-,root,root,-)
|
|
-%doc AUTHORS ChangeLog LICENSE NEWS README
|
|
|
|
-%{_libdir}/lib*.so.*
|
|
|
|
|
|
+%license LICENSE.md
|
|
|
|
+%doc OpenEXR/README.md
|
|
|
|
+%doc rpmdocs/*
|
|
|
|
+%{_libdir}/libIlmImf*.so.*
|
|
|
|
|
|
%files devel
|
|
%files devel
|
|
%defattr(-,root,root,-)
|
|
%defattr(-,root,root,-)
|
|
-%{_datadir}/aclocal/*
|
|
|
|
-%{_includedir}/OpenEXR/*
|
|
|
|
|
|
+%{_includedir}/OpenEXR/Imf*.h
|
|
|
|
+%{_includedir}/OpenEXR/OpenEXRConfig.h
|
|
%{_libdir}/lib*.so
|
|
%{_libdir}/lib*.so
|
|
-%{_libdir}/pkgconfig/*
|
|
|
|
|
|
+%dir %{_libdir}/pkgconfig
|
|
|
|
+%{_libdir}/pkgconfig/OpenEXR.pc
|
|
|
|
+%dir %{_libdir}/cmake
|
|
|
|
+%{_libdir}/cmake/OpenEXR
|
|
|
|
+
|
|
|
|
+%files -n ilmbase
|
|
|
|
+%doc IlmBase/README.md
|
|
|
|
+%license LICENSE.md
|
|
|
|
+%{_libdir}/lib*.so.*
|
|
|
|
+%exclude %{_libdir}/libIlmImf*.so.*
|
|
|
|
+
|
|
|
|
+%files -n ilmbase-devel
|
|
|
|
+%dir %{_includedir}/OpenEXR/
|
|
|
|
+%{_includedir}/OpenEXR/Iex*.h
|
|
|
|
+%{_includedir}/OpenEXR/Ilm*.h
|
|
|
|
+%{_includedir}/OpenEXR/Imath*.h
|
|
|
|
+%{_includedir}/OpenEXR/half*.h
|
|
|
|
+%{_libdir}/lib*.so
|
|
|
|
+%exclude %{_libdir}/libIlmImf*.so
|
|
|
|
+%dir %{_libdir}/pkgconfig
|
|
|
|
+%{_libdir}/pkgconfig/IlmBase.pc
|
|
|
|
+%dir %{_libdir}/cmake
|
|
|
|
+%{_libdir}/cmake/IlmBase
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Fri Oct 25 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.4.0-1
|
|
|
|
+- new upstream release.
|
|
|
|
+- unified IlmBase into OpenEXR.
|
|
|
|
+
|
|
* Tue Jun 28 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.2.0-2
|
|
* Tue Jun 28 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.2.0-2
|
|
- rebuild with gcc-5.4.0
|
|
- rebuild with gcc-5.4.0
|
|
|
|
|