1 |
%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 |
|
16 |
%description |
17 |
Half is a class that encapsulates the ilm 16-bit floating-point format. |
18 |
|
19 |
IlmThread is a thread abstraction library for use with OpenEXR |
20 |
and other software packages. |
21 |
|
22 |
Imath implements 2D and 3D vectors, 3x3 and 4x4 matrices, quaternions |
23 |
and other useful 2D and 3D math functions. |
24 |
|
25 |
Iex is an exception-handling library. |
26 |
|
27 |
%package -n %{libname} |
28 |
Summary: Abraction/convenience libraries for OpenEXR |
29 |
Group: System/Libraries |
30 |
|
31 |
%description -n %{libname} |
32 |
Half is a class that encapsulates the ilm 16-bit floating-point format. |
33 |
|
34 |
IlmThread is a thread abstraction library for use with OpenEXR |
35 |
and other software packages. |
36 |
|
37 |
Imath implements 2D and 3D vectors, 3x3 and 4x4 matrices, quaternions |
38 |
and other useful 2D and 3D math functions. |
39 |
|
40 |
Iex is an exception-handling library. |
41 |
|
42 |
|
43 |
%package -n %{develname} |
44 |
Summary: Development files for %{name} |
45 |
Group: Development/C++ |
46 |
Requires: %{libname} = %{version}-%{release} |
47 |
Requires: mesaglu-devel |
48 |
Provides: lib%{name}-devel = %{version}-%{release} |
49 |
Provides: %{name}-devel = %{version}-%{release} |
50 |
Conflicts: OpenEXR-devel < 1.4.1 |
51 |
|
52 |
%description -n %{develname} |
53 |
Development files for %{name}. |
54 |
|
55 |
%prep |
56 |
%setup -q |
57 |
%patch0 -p1 -b .pthread |
58 |
%patch1 -p1 -b .gcc43 |
59 |
|
60 |
./bootstrap |
61 |
|
62 |
%build |
63 |
%configure2_5x \ |
64 |
--disable-static |
65 |
|
66 |
%make |
67 |
|
68 |
%install |
69 |
rm -rf %{buildroot} |
70 |
|
71 |
%makeinstall_std |
72 |
|
73 |
rm -f %{buildroot}%{_libdir}/lib*.la |
74 |
|
75 |
%clean |
76 |
rm -rf %{buildroot} |
77 |
|
78 |
|
79 |
|
80 |
%files -n %{libname} |
81 |
%defattr(-,root,root,-) |
82 |
%{_libdir}/lib*.so.%{major}* |
83 |
|
84 |
%files -n %{develname} |
85 |
%defattr(-,root,root,-) |
86 |
%doc AUTHORS ChangeLog NEWS README |
87 |
%{_includedir}/OpenEXR/ |
88 |
%{_libdir}/lib*.so |
89 |
%{_libdir}/pkgconfig/* |
90 |
|
91 |
|