ilmbase-vl.spec 2.6 KB

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