| 1 | Summary: Abraction/convenience libraries |
|---|
| 2 | |
|---|
| 3 | Name: ilmbase |
|---|
| 4 | Version: 1.0.2 |
|---|
| 5 | Release: 1%{?_dist_release} |
|---|
| 6 | |
|---|
| 7 | Group: System Environment/Libraries |
|---|
| 8 | License: BSD |
|---|
| 9 | URL: http://www.openexr.com/ |
|---|
| 10 | |
|---|
| 11 | Source0: http://download.savannah.nongnu.org/releases/openexr/ilmbase-%{version}.tar.gz |
|---|
| 12 | Source1: http://download.savannah.nongnu.org/releases/openexr/ilmbase-%{version}.tar.gz.sig |
|---|
| 13 | |
|---|
| 14 | ## upstreamable patches |
|---|
| 15 | # missing #include <cstring> |
|---|
| 16 | Patch50: ilmbase-1.0.2-cstring.patch |
|---|
| 17 | |
|---|
| 18 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
|---|
| 19 | BuildRequires: pkgconfig |
|---|
| 20 | |
|---|
| 21 | %description |
|---|
| 22 | Half is a class that encapsulates the ilm 16-bit floating-point format. |
|---|
| 23 | |
|---|
| 24 | IlmThread is a thread abstraction library for use with OpenEXR |
|---|
| 25 | and other software packages. |
|---|
| 26 | |
|---|
| 27 | Imath implements 2D and 3D vectors, 3x3 and 4x4 matrices, quaternions |
|---|
| 28 | and other useful 2D and 3D math functions. |
|---|
| 29 | |
|---|
| 30 | Iex is an exception-handling library. |
|---|
| 31 | |
|---|
| 32 | %package devel |
|---|
| 33 | Summary: Headers and libraries for building apps that use %{name} |
|---|
| 34 | Group: Development/Libraries |
|---|
| 35 | Requires: %{name} = %{version}-%{release} |
|---|
| 36 | Requires: libGL-devel libGLU-devel |
|---|
| 37 | Requires: pkgconfig |
|---|
| 38 | %description devel |
|---|
| 39 | %{summary}. |
|---|
| 40 | |
|---|
| 41 | |
|---|
| 42 | %prep |
|---|
| 43 | %setup -q |
|---|
| 44 | |
|---|
| 45 | %patch50 -p1 -b .cstring |
|---|
| 46 | |
|---|
| 47 | |
|---|
| 48 | %build |
|---|
| 49 | %configure --disable-static |
|---|
| 50 | |
|---|
| 51 | make %{?_smp_mflags} |
|---|
| 52 | |
|---|
| 53 | |
|---|
| 54 | %install |
|---|
| 55 | rm -rf $RPM_BUILD_ROOT |
|---|
| 56 | |
|---|
| 57 | make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" |
|---|
| 58 | |
|---|
| 59 | rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.la |
|---|
| 60 | |
|---|
| 61 | |
|---|
| 62 | %check |
|---|
| 63 | export PKG_CONFIG_PATH=%{buildroot}%{_datadir}/pkgconfig:%{buildroot}%{_libdir}/pkgconfig |
|---|
| 64 | test "$(pkg-config --modversion IlmBase)" = "%{version}" |
|---|
| 65 | %ifarch %{ix86} |
|---|
| 66 | make check ||: |
|---|
| 67 | %else |
|---|
| 68 | make check |
|---|
| 69 | %endif |
|---|
| 70 | |
|---|
| 71 | |
|---|
| 72 | %clean |
|---|
| 73 | rm -rf $RPM_BUILD_ROOT |
|---|
| 74 | |
|---|
| 75 | |
|---|
| 76 | %post -p /sbin/ldconfig |
|---|
| 77 | |
|---|
| 78 | %postun -p /sbin/ldconfig |
|---|
| 79 | |
|---|
| 80 | |
|---|
| 81 | %files |
|---|
| 82 | %defattr(-,root,root,-) |
|---|
| 83 | %doc AUTHORS ChangeLog COPYING NEWS README |
|---|
| 84 | %{_libdir}/lib*.so.* |
|---|
| 85 | |
|---|
| 86 | %files devel |
|---|
| 87 | %defattr(-,root,root,-) |
|---|
| 88 | %{_includedir}/OpenEXR/ |
|---|
| 89 | %{_libdir}/lib*.so |
|---|
| 90 | %{_libdir}/pkgconfig/* |
|---|
| 91 | |
|---|
| 92 | |
|---|
| 93 | %changelog |
|---|
| 94 | * Tue Sep 21 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0.2-1 |
|---|
| 95 | - updated to 1.0.2 |
|---|
| 96 | - rebuilt with rpm-4.8.1 |
|---|
| 97 | |
|---|
| 98 | * Mon Oct 06 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.1-1 |
|---|
| 99 | - initial build for Vine Linux |
|---|
| 100 | |
|---|
| 101 | * Fri Feb 08 2008 Rex Dieter <rdieter@fedoraproject.org> 1.0.1-2 |
|---|
| 102 | - respin (gcc43) |
|---|
| 103 | |
|---|
| 104 | * Mon Jan 07 2008 Rex Dieter <rdieter[AT]fedoraproject.org> 1.0.1-1 |
|---|
| 105 | - ilmbase-1.0.1 |
|---|
| 106 | |
|---|
| 107 | * Fri Oct 12 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 1.0.0-3 |
|---|
| 108 | - include *.tar.sig in sources |
|---|
| 109 | |
|---|
| 110 | * Mon Oct 08 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 1.0.0-2 |
|---|
| 111 | - update %%summary |
|---|
| 112 | - -devel: +Requires: libGL-devel libGLU-devel |
|---|
| 113 | - make install ... INSTALL="install -p" to preserve timestamps |
|---|
| 114 | |
|---|
| 115 | |
|---|
| 116 | * Thu Aug 09 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 1.0.0-1 |
|---|
| 117 | - ilmbase-1.0.0 (first try) |
|---|
| 118 | |
|---|