openjpeg-vl.spec 3.2 KB

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