openjpeg-vl.spec 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. Summary: JPEG 2000 codec library
  2. Summary(ja): JPEG 2000 コーデックライブラリ
  3. Name: openjpeg
  4. Version: 1.2
  5. Release: 1%{?_dist_release}
  6. Group: System Environment/Libraries
  7. License: BSD
  8. URL: http://www.openjpeg.org/
  9. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  10. Source0: %{name}_v1_2.tar.gz
  11. Patch1: %{name}-1.2-fix_build.patch
  12. Patch2: %{name}-1.2-dyn_link_binaries.patch
  13. Patch3: %{name}-1.2-upstream_fixes.patch
  14. Patch4: %{name}-1.2-lib64.patch
  15. %description
  16. The OpenJPEG library is an open-source JPEG 2000 codec written in C language.
  17. It has been developed in order to promote the use of JPEG 2000, the new
  18. still-image compression standard from the Joint Photographic Experts Group
  19. (JPEG).
  20. %package devel
  21. Summary: Development files for openjpeg
  22. Group: Development/Libraries
  23. Requires: openjpeg = %{version}-%{release}
  24. %description devel
  25. The openjpeg-devel package contains libraries and header files for
  26. developing applications that use openjpeg.
  27. %prep
  28. %setup -q -n trunk
  29. %patch1 -p1
  30. %patch2 -p1
  31. %patch3 -p1
  32. if [ "lib64" = %{_lib} ]; then
  33. %patch4 -p1
  34. fi
  35. find . -type f|xargs chmod 644
  36. %build
  37. %ifarch i686
  38. make COMPILERFLAGS="%{optflags} -ffast-math -fPIC \
  39. -march=i686 -O3 -fasynchronous-unwind-tables \
  40. -ftree-vectorize -ftree-vectorizer-verbose=5" \
  41. LIBRARIES="-lm" \
  42. %{?_smp_mflags}
  43. %else
  44. make COMPILERFLAGS="%{optflags} -ffast-math -fPIC" \
  45. LIBRARIES="-lm" \
  46. %{?_smp_mflags}
  47. %endif
  48. %install
  49. rm -rf %{buildroot}
  50. make install DESTDIR=%{buildroot} LIBDIR=%{_libdir} INCDIR=%{_includedir}
  51. %clean
  52. rm -rf %{buildroot}
  53. %post -p /sbin/ldconfig
  54. %postun -p /sbin/ldconfig
  55. %files
  56. %defattr(-,root,root,-)
  57. %{_libdir}/libopenjpeg.so.*
  58. %files devel
  59. %defattr(-,root,root,-)
  60. %doc ChangeLog
  61. %{_includedir}/openjpeg.h
  62. %{_libdir}/libopenjpeg.so
  63. %{_libdir}/libopenjpeg.a
  64. %changelog
  65. * Thu Oct 09 2008 Shu KONNO <owa@bg.wakwak.com> 1.2-1vl5
  66. - applied new versioning policy, spec in utf-8
  67. * Sun Jul 29 2007 NAKAMURA Kenta <kenta@vinelinux.org> 1.2-0vl2
  68. - added lib64 patch for x86_64 architecture
  69. * Wed Jun 27 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2-0vl1
  70. - new upstream release
  71. * Sun Apr 01 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 1.1.1-0vl1
  72. - initial build for Vine Linux