OpenEXR-vl.spec 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211
  1. Summary: A high dynamic-range (HDR) image file format
  2. Summary(ja): 高ダイナミックレンジ(HDR)画像ファイルフォーマット
  3. Name: OpenEXR
  4. Version: 1.6.1
  5. Release: 2%{?_dist_release}
  6. Group: System Environment/Libraries
  7. License: BSD
  8. URL: http://www.openexr.com/
  9. Source0: http://download.savannah.nongnu.org/releases/openexr/openexr-%{version}.tar.gz
  10. Source1: http://download.savannah.nongnu.org/releases/openexr/openexr-%{version}.tar.gz.sig
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  12. Obsoletes: openexr < %{version}-%{release}
  13. Provides: openexr = %{version}-%{release}
  14. Patch1: OpenEXR-1.6.1-pkgconfig.patch
  15. Patch2: openexr-1.6.1-gcc43.patch
  16. ## security fix patches
  17. Patch100: openexr-1.6.1-CVE-2009-1720-1.patch
  18. Patch101: openexr-1.6.1-CVE-2009-1720-2.patch
  19. Patch102: openexr-1.6.1-CVE-2009-1721.patch
  20. BuildRequires: automake libtool
  21. BuildRequires: ilmbase-devel
  22. BuildRequires: zlib-devel
  23. Requires: %{name}-libs = %{version}-%{release}
  24. %description
  25. OpenEXR is a high dynamic-range (HDR) image file format developed by Industrial
  26. Light & Magic for use in computer imaging applications. This package contains
  27. libraries and sample applications for handling the format.
  28. %package devel
  29. Summary: Development files for %{name}
  30. Summary(ja): %{name} の開発ファイル
  31. Group: Development/Libraries
  32. Obsoletes: openexr-devel < %{version}-%{release}
  33. Provides: openexr-devel = %{version}-%{release}
  34. Requires: %{name}-libs = %{version}-%{release}
  35. Requires: ilmbase-devel
  36. Requires: pkgconfig
  37. %description devel
  38. %{summary}.
  39. %package libs
  40. Summary: %{name} runtime libraries
  41. Summary(ja): %{name} runtime libraries
  42. Group: System Environment/Libraries
  43. %description libs
  44. %{summary}.
  45. %prep
  46. %setup -q -n openexr-%{version}
  47. %patch1 -p1 -b .pkgconfig
  48. %patch2 -p1 -b .gcc43
  49. %patch100 -p1 -b .CVE-2009-1720-1
  50. %patch101 -p1 -b .CVE-2009-1720-2
  51. %patch102 -p1 -b .CVE-2009-1721
  52. # work to remove rpaths, recheck on new releases
  53. aclocal -Im4
  54. libtoolize --force
  55. rm -f configure
  56. autoconf
  57. %build
  58. %configure --disable-static
  59. # hack to omit unused-direct-shlib-dependencies
  60. sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool
  61. make %{?_smp_mflags}
  62. %install
  63. rm -rf $RPM_BUILD_ROOT
  64. make install DESTDIR=$RPM_BUILD_ROOT
  65. # unpackaged files
  66. rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
  67. rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.la
  68. # prepare docs
  69. mkdir -p rpmdocs
  70. cp -a IlmImfExamples rpmdocs/examples
  71. rm -rf rpmdocs/examples/.deps
  72. %check
  73. # Not enabled, by default, takes a *very* long time. -- Rex
  74. %{?_with_check:make check}
  75. %clean
  76. rm -rf $RPM_BUILD_ROOT
  77. %post libs -p /sbin/ldconfig
  78. %postun libs -p /sbin/ldconfig
  79. %files
  80. %defattr(-,root,root,-)
  81. %{_bindir}/*
  82. %files libs
  83. %defattr(-,root,root,-)
  84. %doc AUTHORS ChangeLog LICENSE NEWS README
  85. %{_libdir}/lib*.so.*
  86. %files devel
  87. %defattr(-,root,root,-)
  88. %{_datadir}/aclocal/*
  89. %{_includedir}/OpenEXR/*
  90. %{_libdir}/lib*.so
  91. %{_libdir}/pkgconfig/*
  92. %changelog
  93. * Wed Aug 5 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.6.1-2
  94. - add Patch100,101 for fix CVE-2009-1720 (Integer BOF)
  95. - add Patch102 for fix CVE-2009-1721
  96. - Patch100-102 are from FC11
  97. * Mon Oct 06 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 1.6.1-1
  98. - initial build for Vine Linux
  99. * Fri May 09 2008 Rex Dieter <rdieter@fedoraproject.org> 1.6.1-4
  100. - drop: Obsoletes: OpenEXR-utils (see OpenEXR_Viewers review, bug #428228c3)
  101. * Fri Feb 01 2008 Rex Dieter <rdieter@fedoraproject.org> 1.6.1-3
  102. - gcc43 patch
  103. - purge rpaths
  104. * Wed Jan 09 2008 Rex Dieter <rdieter[AT]fedoraproject.org> 1.6.1-2
  105. - hack to omit unused-direct-shlib-dependencies
  106. - conditionalize -libs (f8+)
  107. * Mon Jan 07 2008 Rex Dieter <rdieter[AT]fedoraproject.org> 1.6.1-1
  108. - openexr-1.6.1
  109. * Mon Oct 30 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 1.6.0-5
  110. - multiarch conflicts in OpenEXR (#342781)
  111. - don't own %%_includedir/OpenEXR (leave that to ilmbase)
  112. * Mon Oct 15 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 1.6.0-4
  113. - -libs: %%post/%%postun -p /sbin/ldconfig
  114. * Fri Oct 12 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 1.6.0-2
  115. - openexr-1.6.0
  116. * Mon Sep 17 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 1.4.0a-6
  117. - libs: -Requires: %%name
  118. * Wed Aug 22 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 1.4.0a-5
  119. - -libs: new subpkg to be multilib friendly
  120. - -utils: package exrdisplay separately (separate fltk dep)
  121. * Sat Oct 28 2006 Rex Dieter <rexdieter[AT]users.sf.net> 1.4.0a-4
  122. - Obsoletes/Provides: openexr(-devel) (rpmforge compatibility)
  123. * Thu Sep 14 2006 Rex Dieter <rexdieter[AT]users.sf.net> 1.4.0a-3
  124. - pkgconfig patch to use Libs.private
  125. * Thu Sep 14 2006 Rex Dieter <rexdieter[AT]users.sf.net> 1.4.0a-2
  126. - -devel: +Requires: pkgconfig
  127. * Tue Aug 29 2006 Rex Dieter <rexdieter[AT]users.sf.net> 1.4.0a-1
  128. - openexr-1.4.0a
  129. * Sat Feb 18 2006 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 1.2.2-7
  130. - Further zlib fixes (#165729)
  131. * Mon Feb 13 2006 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 1.2.2-6
  132. - Rebuild for Fedora Extras 5
  133. * Wed Aug 17 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 1.2.2-5
  134. - Remove *.a from %%files devel
  135. * Tue Aug 16 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 1.2.2-4
  136. - Removed -devel dep on zlib-devel (#165729)
  137. - Added --disable-static to %%configure
  138. - Fixed build with GCC 4.0.1
  139. - Added .so links to -devel
  140. * Wed May 18 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 1.2.2-3
  141. - Add zlib-devel to BR
  142. - Delete all .la files (#157652)
  143. * Mon May 9 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 1.2.2-2
  144. - Add disttag
  145. * Sun May 8 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 1.2.2-2
  146. - Fix BuildRequires
  147. - Fix Requires on -devel
  148. - Add %%post[un] scriptlets
  149. - Fix ownership in -devel
  150. - Don't have .deps files in %%doc
  151. * Wed Mar 30 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 1.2.2-1
  152. - Initial RPM release