ilmbase/ilmbase.spec

83 lines
2.4 KiB
RPMSpec
Raw Normal View History

2020-02-17 21:37:54 -05:00
Name: ilmbase
Summary: "Half" precision HDR file format libraries for OpenEXR
2023-06-15 15:53:54 +08:00
Version: 2.3.0
Release: 1
2020-02-17 21:37:54 -05:00
License: BSD
URL: http://www.openexr.com/
2023-06-15 15:53:54 +08:00
Source0: https://github.com/openexr/openexr/releases/download/v%{version}/%{name}-%{version}.tar.gz
Source1: ilmbase-config.h
BuildRequires: gcc-c++ pkgconfig pkgconfig(gl) pkgconfig(glu) make
2020-02-17 21:37:54 -05:00
2023-06-15 15:53:54 +08:00
## upstreamable patches
# explicitly add $(PTHREAD_LIBS) to libIlmThread linkage (helps PTHREAD_LIBS workaround in %%build)
Patch0001: ilmbase-2.2.0-no_undefined.patch
# add Requires.private: gl glu to IlmBase.pc
Patch0002: ilmbase-1.0.3-pkgconfig.patch
# workaround glibc iszero macro
2020-02-17 21:37:54 -05:00
# https://bugzilla.redhat.com/show_bug.cgi?id=1383552
2023-06-15 15:53:54 +08:00
Patch0003: ilmbase-2.2.0-glibc_iszero.patch
2020-02-17 21:37:54 -05:00
%description
Half is a C++ class that encapsulates the ilm 16-bit floating-point format.
IlmThread is a thread abstraction library for OpenEXR and other software packages.
Imath implements 2D and 3D vectors, 3x3 and 4x4 matrices, quaternions and other
useful math functions. Iex is a library for handling exception of ilmbase.
%package devel
Summary: Headers and libraries for building apps that use ilmbase
Requires: %{name} = %{version}-%{release}
%description devel
This package contains headers and libraries for developing apps that use ilmbase.
%prep
%autosetup -n %{name}-%{version} -p1
%build
%configure --disable-static
%make_build PTHREAD_LIBS="-pthread -lpthread"
%install
%make_install
%delete_la
2023-06-15 15:53:54 +08:00
# Fix multilibs header conflict
%ifarch x86_64
%ifarch x86_64
mv %{buildroot}%{_includedir}/OpenEXR/IlmBaseConfig.h \
%{buildroot}%{_includedir}/OpenEXR/IlmBaseConfig-64.h
%else
mv %{buildroot}%{_includedir}/OpenEXR/IlmBaseConfig.h \
%{buildroot}%{_includedir}/OpenEXR/IlmBaseConfig-32.h
%endif
install -pm 0644 %{SOURCE1} %{buildroot}%{_includedir}/OpenEXR/IlmBaseConfig.h
%endif
2020-02-17 21:37:54 -05:00
%check
export PKG_CONFIG_PATH=%{buildroot}%{_libdir}/pkgconfig
test "$(pkg-config --modversion IlmBase)" = "%{version}"
%post
/sbin/ldconfig
%postun
/sbin/ldconfig
%files
2023-06-15 15:53:54 +08:00
%doc AUTHORS ChangeLog NEWS README.md
%license LICENSE
%{_libdir}/lib*.so.24*
2020-02-17 21:37:54 -05:00
%files devel
%{_includedir}/OpenEXR/
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/IlmBase.pc
%changelog
2023-06-15 15:53:54 +08:00
* Thu Jun 15 2023 chenchen <chen_aka_jan@163.com> - 2.3.0-1
- Upgrade to version 2.3.0
2020-02-17 21:37:54 -05:00
* Tue Feb 18 2020 xuxijian<xuxijian@huawei.com> - 2.2.0-16
- Package init