openjpeg-vl.spec 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. Name: openjpeg
  2. Summary: JPEG 2000 codec library
  3. Summary(ja): JPEG 2000 コーデックライブラリ
  4. Version: 1.4
  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}_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. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  18. BuildRequires: automake libtool
  19. BuildRequires: libtiff-devel
  20. BuildRequires: lcms-devel
  21. %description
  22. The OpenJPEG library is an open-source JPEG 2000 codec written in C language.
  23. It has been developed in order to promote the use of JPEG 2000, the new
  24. still-image compression standard from the Joint Photographic Experts Group
  25. (JPEG).
  26. %package devel
  27. Summary: Development files for openjpeg
  28. Group: Development/Libraries
  29. Requires: %{name} = %{version}-%{release}
  30. %description devel
  31. The openjpeg-devel package contains libraries and header files for
  32. developing applications that use openjpeg.
  33. %package tools
  34. Summary: Command-line tools using the JPEG 2000 library
  35. Group: Applications/Graphics
  36. Requires: %{name} = %{version}-%{release}
  37. %description tools
  38. The openjpeg-tools package provides with command-line tools allowing
  39. for conversions between several formats.
  40. %prep
  41. %setup -q -n openjpeg_v1_4_sources_r697 %{?runcheck:-a 1}
  42. # Make sure we use system libraries
  43. rm -rf libs
  44. %patch50 -p1 -b .no_undefined
  45. %patch52 -p1 -b .autoconf
  46. autoreconf -i -f
  47. %build
  48. %configure \
  49. --enable-shared \
  50. --disable-static \
  51. --enable-lcms2=no \
  52. --enable-lcms1=yes
  53. make
  54. %install
  55. rm -rf $RPM_BUILD_ROOT
  56. make install DESTDIR=$RPM_BUILD_ROOT
  57. rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.la
  58. ln -s openjpeg-1.4 $RPM_BUILD_ROOT%{_includedir}/openjpeg
  59. %clean
  60. rm -rf %{buildroot}
  61. %post -p /sbin/ldconfig
  62. %postun -p /sbin/ldconfig
  63. %files
  64. %defattr(-,root,root,-)
  65. %doc CHANGES LICENSE
  66. %{_libdir}/libopenjpeg.so.*
  67. %{_mandir}/man3/*
  68. %files devel
  69. %defattr(-,root,root,-)
  70. %{_includedir}/openjpeg-1.4/
  71. %{_libdir}/libopenjpeg.so
  72. %{_libdir}/pkgconfig/lib*.pc
  73. # legacy/compat header locations
  74. %{_includedir}/openjpeg.h
  75. %{_includedir}/openjpeg/
  76. %files tools
  77. %defattr(-,root,root,-)
  78. %{_bindir}/*
  79. %{_mandir}/man1/*
  80. %changelog
  81. * Thu Apr 14 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.4-1
  82. - updated to 1.4
  83. - built with current VineSeed
  84. - added tools subpackage
  85. * Thu Oct 09 2008 Shu KONNO <owa@bg.wakwak.com> 1.2-1vl5
  86. - applied new versioning policy, spec in utf-8
  87. * Sun Jul 29 2007 NAKAMURA Kenta <kenta@vinelinux.org> 1.2-0vl2
  88. - added lib64 patch for x86_64 architecture
  89. * Wed Jun 27 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2-0vl1
  90. - new upstream release
  91. * Sun Apr 01 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 1.1.1-0vl1
  92. - initial build for Vine Linux