ilmbase-vl.spec 3.4 KB

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