| 1 | Summary: Abraction/convenience libraries |
|---|
| 2 | Name: ilmbase |
|---|
| 3 | Version: 2.2.0 |
|---|
| 4 | Release: 2%{?_dist_release} |
|---|
| 5 | |
|---|
| 6 | Group: System Environment/Libraries |
|---|
| 7 | License: BSD |
|---|
| 8 | URL: http://www.openexr.com/ |
|---|
| 9 | |
|---|
| 10 | Source0: http://download.savannah.nongnu.org/releases/openexr/ilmbase-%{version}.tar.gz |
|---|
| 11 | ## upstreamable patches |
|---|
| 12 | # explicitly add $(PTHREAD_LIBS) to libIlmThread linkage (helps PTHREAD_LIBS workaround in %%build) |
|---|
| 13 | Patch51: ilmbase-2.2.0-no_undefined.patch |
|---|
| 14 | # add Requires.private: gl glu to IlmBase.pc |
|---|
| 15 | Patch53: ilmbase-1.0.3-pkgconfig.patch |
|---|
| 16 | |
|---|
| 17 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
|---|
| 18 | BuildRequires: pkgconfig |
|---|
| 19 | # silly rpm, won't pick up rpm dependencies for items not in it's buildroot |
|---|
| 20 | # see http://bugzilla.redhat.com/866302 |
|---|
| 21 | BuildRequires: libGL-devel |
|---|
| 22 | BuildRequires: libGLU-devel |
|---|
| 23 | |
|---|
| 24 | Vendor: Project Vine |
|---|
| 25 | Distribution: Vine Linux |
|---|
| 26 | |
|---|
| 27 | %description |
|---|
| 28 | Half is a class that encapsulates the ilm 16-bit floating-point format. |
|---|
| 29 | |
|---|
| 30 | IlmThread is a thread abstraction library for use with OpenEXR |
|---|
| 31 | and other software packages. |
|---|
| 32 | |
|---|
| 33 | Imath implements 2D and 3D vectors, 3x3 and 4x4 matrices, quaternions |
|---|
| 34 | and other useful 2D and 3D math functions. |
|---|
| 35 | |
|---|
| 36 | Iex is an exception-handling library. |
|---|
| 37 | |
|---|
| 38 | %package devel |
|---|
| 39 | Summary: Headers and libraries for building apps that use %{name} |
|---|
| 40 | Summary(ja): %{name} を使うアプリケーションをビルドするためのヘッダファイル及びライブラリ |
|---|
| 41 | Group: Development/Libraries |
|---|
| 42 | Requires: %{name} = %{version}-%{release} |
|---|
| 43 | Requires: pkgconfig |
|---|
| 44 | |
|---|
| 45 | %description devel |
|---|
| 46 | %{summary}. |
|---|
| 47 | |
|---|
| 48 | |
|---|
| 49 | %prep |
|---|
| 50 | %setup -q |
|---|
| 51 | %patch51 -p1 -b .no_undefined |
|---|
| 52 | %patch53 -p1 -b .pkgconfig |
|---|
| 53 | |
|---|
| 54 | %build |
|---|
| 55 | %configure --disable-static |
|---|
| 56 | |
|---|
| 57 | # manually set PTHREAD_LIBS to include -lpthread until libtool bogosity is fixed, |
|---|
| 58 | # https://bugzilla.redhat.com/show_bug.cgi?id=661333 |
|---|
| 59 | make %{?_smp_mflags} PTHREAD_LIBS="-pthread -lpthread" |
|---|
| 60 | |
|---|
| 61 | |
|---|
| 62 | %install |
|---|
| 63 | rm -rf $RPM_BUILD_ROOT |
|---|
| 64 | make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" |
|---|
| 65 | |
|---|
| 66 | rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.la |
|---|
| 67 | |
|---|
| 68 | |
|---|
| 69 | %check |
|---|
| 70 | export PKG_CONFIG_PATH=$RPM_BUILD_ROOT%{_datadir}/pkgconfig:$RPM_BUILD_ROOT%{_libdir}/pkgconfig |
|---|
| 71 | test "$(pkg-config --modversion IlmBase)" = "%{version}" |
|---|
| 72 | %ifarch %{ix86} |
|---|
| 73 | make check ||: |
|---|
| 74 | %else |
|---|
| 75 | make check |
|---|
| 76 | %endif |
|---|
| 77 | |
|---|
| 78 | |
|---|
| 79 | %clean |
|---|
| 80 | rm -rf $RPM_BUILD_ROOT |
|---|
| 81 | |
|---|
| 82 | |
|---|
| 83 | %post -p /sbin/ldconfig |
|---|
| 84 | |
|---|
| 85 | %postun -p /sbin/ldconfig |
|---|
| 86 | |
|---|
| 87 | |
|---|
| 88 | %files |
|---|
| 89 | %defattr(-,root,root,-) |
|---|
| 90 | %doc AUTHORS ChangeLog COPYING NEWS README |
|---|
| 91 | %{_libdir}/lib*.so.* |
|---|
| 92 | |
|---|
| 93 | %files devel |
|---|
| 94 | %defattr(-,root,root,-) |
|---|
| 95 | %{_includedir}/OpenEXR/ |
|---|
| 96 | %{_libdir}/lib*.so |
|---|
| 97 | %{_libdir}/pkgconfig/* |
|---|
| 98 | |
|---|
| 99 | |
|---|
| 100 | %changelog |
|---|
| 101 | * Tue Jun 28 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.2.0-2 |
|---|
| 102 | - rebuild with gcc-5.4.0 |
|---|
| 103 | |
|---|
| 104 | * Wed Dec 17 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 2.2.0-1 |
|---|
| 105 | - update to 2.2.0 |
|---|
| 106 | - added Patch51 and 53 from Fedora |
|---|
| 107 | |
|---|
| 108 | * Mon Dec 30 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.1.0-1 |
|---|
| 109 | - update to 2.1.0 |
|---|
| 110 | - remove Patch50 |
|---|
| 111 | |
|---|
| 112 | * Tue Sep 21 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0.2-1 |
|---|
| 113 | - updated to 1.0.2 |
|---|
| 114 | - rebuilt with rpm-4.8.1 |
|---|
| 115 | |
|---|
| 116 | * Mon Oct 06 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.1-1 |
|---|
| 117 | - initial build for Vine Linux |
|---|
| 118 | |
|---|
| 119 | * Fri Feb 08 2008 Rex Dieter <rdieter@fedoraproject.org> 1.0.1-2 |
|---|
| 120 | - respin (gcc43) |
|---|
| 121 | |
|---|
| 122 | * Mon Jan 07 2008 Rex Dieter <rdieter[AT]fedoraproject.org> 1.0.1-1 |
|---|
| 123 | - ilmbase-1.0.1 |
|---|
| 124 | |
|---|
| 125 | * Fri Oct 12 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 1.0.0-3 |
|---|
| 126 | - include *.tar.sig in sources |
|---|
| 127 | |
|---|
| 128 | * Mon Oct 08 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 1.0.0-2 |
|---|
| 129 | - update %%summary |
|---|
| 130 | - -devel: +Requires: libGL-devel libGLU-devel |
|---|
| 131 | - make install ... INSTALL="install -p" to preserve timestamps |
|---|
| 132 | |
|---|
| 133 | |
|---|
| 134 | * Thu Aug 09 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 1.0.0-1 |
|---|
| 135 | - ilmbase-1.0.0 (first try) |
|---|
| 136 | |
|---|