openjpeg-vl.spec 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. Name: openjpeg
  2. Summary: JPEG 2000 codec library
  3. Summary(ja): JPEG 2000 コーデックライブラリ
  4. Version: 1.4
  5. Release: 4%{?_dist_release}
  6. Group: System Environment/Libraries
  7. License: BSD
  8. URL: http://www.openjpeg.org/
  9. Source0: http://openjpeg.googlecode.com/files/%{name}_v1_4_sources_r697.tgz
  10. ## upstreamable patches
  11. # libopenjpeg has undefined references, http://bugzilla.redhat.com/467661
  12. # http://groups.google.com/group/openjpeg/browse_thread/thread/fba9ad2a35b12e6a
  13. Patch50: openjpeg-1.4-no_undefined.patch
  14. # fix autoconf buildsys (+DESTDIR support mostly)
  15. # http://groups.google.com/group/openjpeg/browse_thread/thread/6326363ebb969a99
  16. Patch52: openjpeg-1.4-autoconf.patch
  17. # Security
  18. Patch100: openjpeg-1.4_CVE-2012-3535.patch
  19. Patch110: openjpeg-cve-2009-5030.patch
  20. Patch120: openjpeg-1.4_CVE-2012-3358.patch
  21. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  22. BuildRequires: automake libtool
  23. BuildRequires: libtiff-devel
  24. BuildRequires: lcms-devel
  25. BuildRequires: libjpeg-devel, libpng-devel
  26. Vendor: Project Vine
  27. Distribution: Vine Linux
  28. %description
  29. The OpenJPEG library is an open-source JPEG 2000 codec written in C language.
  30. It has been developed in order to promote the use of JPEG 2000, the new
  31. still-image compression standard from the Joint Photographic Experts Group
  32. (JPEG).
  33. %package devel
  34. Summary: Development files for openjpeg
  35. Group: Development/Libraries
  36. Requires: %{name} = %{version}-%{release}
  37. %description devel
  38. The openjpeg-devel package contains libraries and header files for
  39. developing applications that use openjpeg.
  40. %package tools
  41. Summary: Command-line tools using the JPEG 2000 library
  42. Group: Applications/Graphics
  43. Requires: %{name} = %{version}-%{release}
  44. %description tools
  45. The openjpeg-tools package provides with command-line tools allowing
  46. for conversions between several formats.
  47. %prep
  48. %setup -q -n openjpeg_v1_4_sources_r697 %{?runcheck:-a 1}
  49. # Make sure we use system libraries
  50. rm -rf libs
  51. %patch50 -p1 -b .no_undefined
  52. %patch52 -p1 -b .autoconf
  53. %patch110 -p1 -b .cve-2009-5030
  54. %patch120 -p1 -b .CVE-2012-3358
  55. %patch100 -p1 -b .CVE-2012-3535
  56. autoreconf -i -f
  57. %build
  58. %configure \
  59. --enable-shared \
  60. --disable-static \
  61. --enable-lcms2=no \
  62. --enable-lcms1=yes
  63. make
  64. %install
  65. rm -rf $RPM_BUILD_ROOT
  66. make install DESTDIR=$RPM_BUILD_ROOT
  67. rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.la
  68. ln -s openjpeg-1.4 $RPM_BUILD_ROOT%{_includedir}/openjpeg
  69. %clean
  70. rm -rf %{buildroot}
  71. %post -p /sbin/ldconfig
  72. %postun -p /sbin/ldconfig
  73. %files
  74. %defattr(-,root,root,-)
  75. %doc CHANGES LICENSE
  76. %{_libdir}/libopenjpeg.so.*
  77. %{_mandir}/man3/*
  78. %files devel
  79. %defattr(-,root,root,-)
  80. %{_includedir}/openjpeg-1.4/
  81. %{_libdir}/libopenjpeg.so
  82. %{_libdir}/pkgconfig/lib*.pc
  83. # legacy/compat header locations
  84. %{_includedir}/openjpeg.h
  85. %{_includedir}/openjpeg
  86. %files tools
  87. %defattr(-,root,root,-)
  88. %{_bindir}/*
  89. %{_mandir}/man1/*
  90. %changelog
  91. * Tue Dec 24 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.4-4
  92. - fix %%files devel
  93. * Tue Feb 26 2013 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.4-3
  94. - add patch110 for fix CVE-2009-5030 (Gray16 TIFF)
  95. - add patch120 for fix CVE-2012-3358 (j2k)
  96. (Both patches are based on RHEL6, thanks)
  97. * Thu Sep 20 2012 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.4-2
  98. - add patch100 for fix CVE-2012-3535 (sanity-check an image header)
  99. (based on RHEL6, thanks)
  100. - add Vendor/Distri tags
  101. - add BR: libjpeg-devel, libpng-devel
  102. * Thu Apr 14 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.4-1
  103. - updated to 1.4
  104. - built with current VineSeed
  105. - added tools subpackage
  106. * Thu Oct 09 2008 Shu KONNO <owa@bg.wakwak.com> 1.2-1vl5
  107. - applied new versioning policy, spec in utf-8
  108. * Sun Jul 29 2007 NAKAMURA Kenta <kenta@vinelinux.org> 1.2-0vl2
  109. - added lib64 patch for x86_64 architecture
  110. * Wed Jun 27 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2-0vl1
  111. - new upstream release
  112. * Sun Apr 01 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 1.1.1-0vl1
  113. - initial build for Vine Linux