OpenEXR/OpenEXR.spec
2019-11-19 11:51:28 +08:00

67 lines
1.8 KiB
RPMSpec

Name: OpenEXR
Summary: A high dynamic-range (HDR) image file format for use in computer imaging applications
Version: 2.2.0
Release: 16
License: BSD
URL: http://www.openexr.com/
Source0: http://download.savannah.nongnu.org/releases/openexr/openexr-%{version}.tar.gz
Patch0000: openexr-2.1.0-bigendian.patch
Provides: openexr = %{version}-%{release} %{name}-libs = %{version}-%{release}
Obsoletes: openexr < %{version}-%{release} %{name}-libs < %{version}-%{release}
BuildConflicts: %{name}-devel < 2.2.0
BuildRequires: gcc-c++ ilmbase-devel >= %{version} zlib-devel pkgconfig
%description
OpenEXR is a high dynamic-range (HDR) image file format originally developed by Industrial
Light & Magic for use in computer imaging applications.
%package devel
Summary: Development files for %{name}
Provides: openexr-devel = %{version}-%{release}
Obsoletes: openexr-devel < %{version}-%{release}
Requires: %{name} = %{version}-%{release} ilmbase-devel
%description devel
This package contains libraries and header files for development of %{name}.
%prep
%autosetup -n openexr-%{version} -p1
%build
%configure --disable-static
%make_build
%install
%make_install
%delete_la
%check
export PKG_CONFIG_PATH="%{buildroot}%{_libdir}/pkgconfig${PKG_CONFIG_PATH:+:}${PKG_CONFIG_PATH}"
test "$(pkg-config --modversion OpenEXR)" = "%{version}"
%make_build check ||:
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%doc AUTHORS ChangeLog NEWS README
%license LICENSE
%{_libdir}/{libIlmImf-2_2.so.22*,libIlmImfUtil-2_2.so.22*}
%{_bindir}/exr*
%exclude %{_docdir}/%{name}-%{version}
%files devel
%{_datadir}/aclocal/openexr.m4
%{_includedir}/%{name}/*
%{_libdir}/libIlmImf*.so
%{_libdir}/pkgconfig/OpenEXR.pc
%changelog
* Fri Oct 25 2019 huzhiyu <huzhiyu1@huawei.com> - 2.2.0-16
- Package init