1 |
%define major 7 |
%define major 10 |
2 |
%define libname %mklibname %{name} %{major} |
%define libname %mklibname %{name} %{major} |
3 |
%define develname %mklibname %{name} -d |
%define develname %mklibname %{name} -d |
4 |
|
|
5 |
Summary: Abraction/convenience libraries for OpenEXR |
Summary: Abraction/convenience libraries for OpenEXR |
6 |
Name: ilmbase |
Name: ilmbase |
7 |
Version: 1.0.3 |
Version: 2.0.1 |
8 |
Release: %mkrel 3 |
Release: %mkrel 1 |
9 |
Group: System/Libraries |
Group: System/Libraries |
10 |
License: BSD |
License: BSD |
11 |
URL: http://www.openexr.com |
URL: http://www.openexr.com |
12 |
Source0: https://github.com/downloads/openexr/openexr/%{name}-%{version}.tar.gz |
Source0: http://download.savannah.nongnu.org/releases/openexr/%{name}-%{version}.tar.gz |
13 |
Patch0: %{name}-1.0.0-pthread.patch |
Patch0: %{name}-1.0.0-pthread.patch |
14 |
Patch1: ilmbase-1.0.3-secondary.patch |
Patch1: ilmbase-1.0.3-secondary.patch |
15 |
Patch2: ilmbase-1.0.3-pkgconfig.patch |
Patch2: ilmbase-1.0.3-pkgconfig.patch |
16 |
Patch3: ilmbase-1.0.3-ucontext.patch |
Patch3: ilmbase-1.0.3-ucontext.patch |
|
Patch4: ilmbase-1.0.3-automake-1.13.patch |
|
17 |
|
|
18 |
%description |
%description |
19 |
Half is a class that encapsulates the ilm 16-bit floating-point format. |
Half is a class that encapsulates the ilm 16-bit floating-point format. |
62 |
%if %{__isa_bits} == 32 |
%if %{__isa_bits} == 32 |
63 |
%patch3 -p1 |
%patch3 -p1 |
64 |
%endif |
%endif |
|
%patch4 -p1 -b .automake-1_13 |
|
65 |
|
|
66 |
%build |
%build |
67 |
./bootstrap |
./bootstrap |
71 |
%make |
%make |
72 |
|
|
73 |
%install |
%install |
|
rm -rf %{buildroot} |
|
|
|
|
74 |
%makeinstall_std |
%makeinstall_std |
75 |
|
|
76 |
rm -f %{buildroot}%{_libdir}/lib*.la |
rm -f %{buildroot}%{_libdir}/lib*.la |
77 |
|
|
|
%clean |
|
|
rm -rf %{buildroot} |
|
|
|
|
|
|
|
|
|
|
78 |
%files -n %{libname} |
%files -n %{libname} |
|
%defattr(-,root,root,-) |
|
79 |
%{_libdir}/lib*.so.%{major}* |
%{_libdir}/lib*.so.%{major}* |
80 |
|
|
81 |
%files -n %{develname} |
%files -n %{develname} |
|
%defattr(-,root,root,-) |
|
82 |
%doc AUTHORS ChangeLog NEWS README |
%doc AUTHORS ChangeLog NEWS README |
83 |
%{_includedir}/OpenEXR/ |
%{_includedir}/OpenEXR/ |
84 |
%{_libdir}/lib*.so |
%{_libdir}/lib*.so |
85 |
%{_libdir}/pkgconfig/* |
%{_libdir}/pkgconfig/* |
|
|
|
|
|
|