1 |
fwang |
324933 |
%define major 7 |
2 |
mikala |
18039 |
%define libname %mklibname %{name} %{major} |
3 |
|
|
%define develname %mklibname %{name} -d |
4 |
|
|
|
5 |
|
|
Summary: Abraction/convenience libraries for OpenEXR |
6 |
|
|
Name: ilmbase |
7 |
fwang |
324933 |
Version: 1.0.3 |
8 |
umeabot |
354287 |
Release: %mkrel 3 |
9 |
mikala |
18039 |
Group: System/Libraries |
10 |
|
|
License: BSD |
11 |
|
|
URL: http://www.openexr.com |
12 |
fwang |
324933 |
Source0: https://github.com/downloads/openexr/openexr/%{name}-%{version}.tar.gz |
13 |
mikala |
18039 |
Patch0: %{name}-1.0.0-pthread.patch |
14 |
fwang |
324938 |
Patch1: ilmbase-1.0.3-secondary.patch |
15 |
|
|
Patch2: ilmbase-1.0.3-pkgconfig.patch |
16 |
|
|
Patch3: ilmbase-1.0.3-ucontext.patch |
17 |
cjw |
339206 |
Patch4: ilmbase-1.0.3-automake-1.13.patch |
18 |
mikala |
18039 |
|
19 |
|
|
%description |
20 |
|
|
Half is a class that encapsulates the ilm 16-bit floating-point format. |
21 |
|
|
|
22 |
|
|
IlmThread is a thread abstraction library for use with OpenEXR |
23 |
|
|
and other software packages. |
24 |
|
|
|
25 |
|
|
Imath implements 2D and 3D vectors, 3x3 and 4x4 matrices, quaternions |
26 |
|
|
and other useful 2D and 3D math functions. |
27 |
|
|
|
28 |
|
|
Iex is an exception-handling library. |
29 |
|
|
|
30 |
|
|
%package -n %{libname} |
31 |
|
|
Summary: Abraction/convenience libraries for OpenEXR |
32 |
|
|
Group: System/Libraries |
33 |
|
|
|
34 |
|
|
%description -n %{libname} |
35 |
|
|
Half is a class that encapsulates the ilm 16-bit floating-point format. |
36 |
|
|
|
37 |
|
|
IlmThread is a thread abstraction library for use with OpenEXR |
38 |
|
|
and other software packages. |
39 |
|
|
|
40 |
|
|
Imath implements 2D and 3D vectors, 3x3 and 4x4 matrices, quaternions |
41 |
|
|
and other useful 2D and 3D math functions. |
42 |
|
|
|
43 |
|
|
Iex is an exception-handling library. |
44 |
|
|
|
45 |
|
|
|
46 |
|
|
%package -n %{develname} |
47 |
|
|
Summary: Development files for %{name} |
48 |
|
|
Group: Development/C++ |
49 |
|
|
Requires: %{libname} = %{version}-%{release} |
50 |
|
|
Requires: mesaglu-devel |
51 |
|
|
Provides: lib%{name}-devel = %{version}-%{release} |
52 |
|
|
Provides: %{name}-devel = %{version}-%{release} |
53 |
|
|
Conflicts: OpenEXR-devel < 1.4.1 |
54 |
|
|
|
55 |
|
|
%description -n %{develname} |
56 |
|
|
Development files for %{name}. |
57 |
|
|
|
58 |
|
|
%prep |
59 |
|
|
%setup -q |
60 |
fwang |
324941 |
%patch0 -p1 |
61 |
|
|
%patch1 -p1 |
62 |
|
|
%patch2 -p1 |
63 |
|
|
%if %{__isa_bits} == 32 |
64 |
|
|
%patch3 -p1 |
65 |
|
|
%endif |
66 |
cjw |
339206 |
%patch4 -p1 -b .automake-1_13 |
67 |
mikala |
18039 |
|
68 |
|
|
%build |
69 |
cjw |
339206 |
./bootstrap |
70 |
mikala |
18039 |
%configure2_5x \ |
71 |
|
|
--disable-static |
72 |
|
|
|
73 |
|
|
%make |
74 |
|
|
|
75 |
|
|
%install |
76 |
|
|
rm -rf %{buildroot} |
77 |
|
|
|
78 |
|
|
%makeinstall_std |
79 |
|
|
|
80 |
|
|
rm -f %{buildroot}%{_libdir}/lib*.la |
81 |
|
|
|
82 |
|
|
%clean |
83 |
|
|
rm -rf %{buildroot} |
84 |
|
|
|
85 |
|
|
|
86 |
|
|
|
87 |
|
|
%files -n %{libname} |
88 |
|
|
%defattr(-,root,root,-) |
89 |
|
|
%{_libdir}/lib*.so.%{major}* |
90 |
|
|
|
91 |
|
|
%files -n %{develname} |
92 |
|
|
%defattr(-,root,root,-) |
93 |
|
|
%doc AUTHORS ChangeLog NEWS README |
94 |
|
|
%{_includedir}/OpenEXR/ |
95 |
|
|
%{_libdir}/lib*.so |
96 |
|
|
%{_libdir}/pkgconfig/* |
97 |
|
|
|
98 |
|
|
|