lcms-vl.spec 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
  2. Name: lcms
  3. Summary: Little CMS - color management engine
  4. Summary(ja): Little CMS - カラーマネージメントエンジン
  5. Version: 1.18
  6. Release: 3%{?_dist_release}
  7. License: MIT
  8. Group: System Environment/Libraries
  9. URL: http://www.littlecms.com/
  10. Source0: http://www.littlecms.com/%{name}-%{version}.tar.gz
  11. Patch100: lcms-1.18_cmsxfrom_CVE-2009-0793.patch
  12. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  13. BuildPrereq: zlib-devel libtiff-devel libjpeg-devel pkgconfig
  14. %description
  15. Little cms intends to be a small-footprint, speed optimized color management
  16. engine in open source form.
  17. %package devel
  18. Summary: Header files and library for development with LCMS
  19. Group: Development/Libraries
  20. PreReq: %{name} = %{version}-%{release}
  21. %description devel
  22. Development files for development with LCMS
  23. %package static
  24. Summary: Static library for development with LCMS
  25. Group: Development/Libraries
  26. PreReq: %{name}-devel = %{version}-%{release}
  27. %description static
  28. Static libraries for development with LCMS
  29. %package utils
  30. Summary: Additional Command Line Utilities for littlecms
  31. Group: Applications/Multimedia
  32. PreReq: %{name} = %{version}-%{release}
  33. %description utils
  34. Command line utilities which can perform icc transforms and provide info
  35. about icc profiles.
  36. # compat32
  37. %package -n compat32-%{name}
  38. Summary: Little CMS - color management engine
  39. Summary(ja): Little CMS - カラーマネージメントエンジン
  40. Group: Development/Libraries
  41. Requires: %{name} = %{version}-%{release}
  42. %description -n compat32-%{name}
  43. Little cms intends to be a small-footprint, speed optimized color management
  44. engine in open source form.
  45. %package -n compat32-%{name}-devel
  46. Summary: Header files and library for development with LCMS
  47. Group: Development/Libraries
  48. Requires: %{name}-devel = %{version}-%{release}
  49. Requires: compat32-%{name} = %{version}-%{release}
  50. %description -n compat32-%{name}-devel
  51. Development files for development with LCMS
  52. %prep
  53. %setup -q
  54. %patch100 -p1 -b .CVE-2009-0793
  55. %build
  56. %configure
  57. make all
  58. %install
  59. rm -rf $RPM_BUILD_ROOT
  60. make install DESTDIR=$RPM_BUILD_ROOT
  61. rm $RPM_BUILD_ROOT%{_libdir}/*.la
  62. %clean
  63. rm -rf $RPM_BUILD_ROOT
  64. %post -p /sbin/ldconfig
  65. %postun -p /sbin/ldconfig
  66. %post -n compat32-%{name} -p /sbin/ldconfig
  67. %postun -n compat32-%{name} -p /sbin/ldconfig
  68. %files
  69. %defattr(-,root,root)
  70. %doc AUTHORS COPYING ChangeLog README.1ST doc/
  71. %{_libdir}/*.so.*
  72. %files devel
  73. %defattr(-,root,root)
  74. %{_includedir}/*
  75. %{_libdir}/*.so
  76. %{_libdir}/pkgconfig/lcms.pc
  77. %files static
  78. %defattr(-,root,root)
  79. %{_libdir}/*.a
  80. %files utils
  81. %defattr(-,root,root)
  82. %{_bindir}/*
  83. %{_mandir}/man1/*.gz
  84. # compat32
  85. %if %{build_compat32}
  86. %files -n compat32-%{name}
  87. %defattr(-,root,root)
  88. %{_libdir}/*.so.*
  89. %files -n compat32-%{name}-devel
  90. %defattr(-,root,root)
  91. %{_libdir}/*.so
  92. %{_libdir}/pkgconfig/lcms.pc
  93. %endif
  94. %changelog
  95. * Mon Jul 20 2009 NAKAMURA Kenta <kenta@vinelinux.org> 1.18-3
  96. - added compat32 package for x86_64 arch support
  97. * Sat Apr 11 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.18-2
  98. - add patch100 for fix CVE-2009-0793 (Monochrome Profiles Transform DoS)
  99. * Tue Apr 04 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.18-1
  100. - new upstream release with security fixes (CVE-2009-0581, 0723, 0733)
  101. * Fri Mar 27 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 1.17-2
  102. - add lcms-static which is needed by tuxonice-userui
  103. * Wed Mar 19 2008 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 1.17-1
  104. - new upstream release
  105. - delete *.la
  106. - add --disable-static
  107. * Wed May 16 2007 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 1.16-0vl1
  108. - new upstream release
  109. * Mon Mar 6 2006 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 1.15-0vl2
  110. - rebuid for VineSeed
  111. * Mon Mar 6 2006 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 1.15-0vl1
  112. - new upstream release
  113. - add %%{_mandir}/man1/*.gz to utils package
  114. * Wed May 11 2005 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 1.14-0vl1
  115. - new upstream release
  116. * Tue Aug 10 2004 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 1.13-0vl1
  117. - source upgrade
  118. - add BuildPrereq: pkgconfig
  119. - add %%{_libdir}/pkgconfig/lcms.pc to devel package
  120. * Sat May 1 2004 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 1.12-0vl1
  121. - source upgrade
  122. - change build method, %%files and Group for VineSeed
  123. * Sat May 10 2003 Peter Linnell
  124. - more spec file tweaks
  125. - no need to patch makefiles - wtpt executible is obsoleted per Marti
  126. * Sat Apr 26 2003 Peter Linnell
  127. - split out and compile utils separately
  128. - add RH80 versioning to avoid confusion with 9 packages
  129. - needs patched samples makefile
  130. * Wed Apr 23 2003 Peter Linnell
  131. - new package with 1.10 final
  132. - takeout profiles - add later
  133. * Fri Mar 14 2003 Peter Linnell
  134. - rebuild - test target= option works