1 |
mikala |
18039 |
%define major 6 |
2 |
|
|
%define libname %mklibname %{name} %{major} |
3 |
|
|
%define develname %mklibname %{name} -d |
4 |
|
|
|
5 |
|
|
Summary: Abraction/convenience libraries for OpenEXR |
6 |
|
|
Name: ilmbase |
7 |
|
|
Version: 1.0.2 |
8 |
|
|
Release: %mkrel 2 |
9 |
|
|
Group: System/Libraries |
10 |
|
|
License: BSD |
11 |
|
|
URL: http://www.openexr.com |
12 |
|
|
Source0: http://download.savannah.nongnu.org/releases/openexr/ilmbase-%{version}.tar.bz2 |
13 |
|
|
Patch0: %{name}-1.0.0-pthread.patch |
14 |
|
|
Patch1: %{name}-1.0.2-gcc43.patch |
15 |
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot |
16 |
|
|
|
17 |
|
|
%description |
18 |
|
|
Half is a class that encapsulates the ilm 16-bit floating-point format. |
19 |
|
|
|
20 |
|
|
IlmThread is a thread abstraction library for use with OpenEXR |
21 |
|
|
and other software packages. |
22 |
|
|
|
23 |
|
|
Imath implements 2D and 3D vectors, 3x3 and 4x4 matrices, quaternions |
24 |
|
|
and other useful 2D and 3D math functions. |
25 |
|
|
|
26 |
|
|
Iex is an exception-handling library. |
27 |
|
|
|
28 |
|
|
%package -n %{libname} |
29 |
|
|
Summary: Abraction/convenience libraries for OpenEXR |
30 |
|
|
Group: System/Libraries |
31 |
|
|
|
32 |
|
|
%description -n %{libname} |
33 |
|
|
Half is a class that encapsulates the ilm 16-bit floating-point format. |
34 |
|
|
|
35 |
|
|
IlmThread is a thread abstraction library for use with OpenEXR |
36 |
|
|
and other software packages. |
37 |
|
|
|
38 |
|
|
Imath implements 2D and 3D vectors, 3x3 and 4x4 matrices, quaternions |
39 |
|
|
and other useful 2D and 3D math functions. |
40 |
|
|
|
41 |
|
|
Iex is an exception-handling library. |
42 |
|
|
|
43 |
|
|
|
44 |
|
|
%package -n %{develname} |
45 |
|
|
Summary: Development files for %{name} |
46 |
|
|
Group: Development/C++ |
47 |
|
|
Requires: %{libname} = %{version}-%{release} |
48 |
|
|
Requires: mesaglu-devel |
49 |
|
|
Provides: lib%{name}-devel = %{version}-%{release} |
50 |
|
|
Provides: %{name}-devel = %{version}-%{release} |
51 |
|
|
Conflicts: OpenEXR-devel < 1.4.1 |
52 |
|
|
|
53 |
|
|
%description -n %{develname} |
54 |
|
|
Development files for %{name}. |
55 |
|
|
|
56 |
|
|
%prep |
57 |
|
|
%setup -q |
58 |
|
|
%patch0 -p1 -b .pthread |
59 |
|
|
%patch1 -p1 -b .gcc43 |
60 |
|
|
|
61 |
|
|
./bootstrap |
62 |
|
|
|
63 |
|
|
%build |
64 |
|
|
%configure2_5x \ |
65 |
|
|
--disable-static |
66 |
|
|
|
67 |
|
|
%make |
68 |
|
|
|
69 |
|
|
%install |
70 |
|
|
rm -rf %{buildroot} |
71 |
|
|
|
72 |
|
|
%makeinstall_std |
73 |
|
|
|
74 |
|
|
rm -f %{buildroot}%{_libdir}/lib*.la |
75 |
|
|
|
76 |
|
|
%clean |
77 |
|
|
rm -rf %{buildroot} |
78 |
|
|
|
79 |
|
|
%if %mdkversion < 200900 |
80 |
|
|
%post -n %{libname} -p /sbin/ldconfig |
81 |
|
|
%endif |
82 |
|
|
|
83 |
|
|
%if %mdkversion < 200900 |
84 |
|
|
%postun -n %{libname} -p /sbin/ldconfig |
85 |
|
|
%endif |
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 |
|
|
|